Frame 1
_accProps = new Object();
_accProps.silent = false;
stop();
_root.scythe = 1;
_root.buttonleft = 37;
_root.buttonright = 39;
_root.buttonup = 38;
_root.buttondown = 40;
_root.buttonaction = 32;
_root.walkingdisabled = false;
Instance of Symbol 33 MovieClip in Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(67)) {
k++;
if (k > 50) {
_visible = true;
}
}
}
Instance of Symbol 38 MovieClip "ball" in Frame 1
onClipEvent (load) {
i = 0;
gravity = 1.1;
friction = 0.8;
timespentinair = 5;
}
onClipEvent (enterFrame) {
foldy = _y;
if (i == 0) {
timespentinair = timespentinair * gravity;
xdiffrence = xdiffrence * friction;
ydiffrence = ydiffrence * friction;
_x = (_x - xdiffrence);
_y = ((_y - ydiffrence) + timespentinair);
if (_y < 0) {
timespentinair = 2;
_y = 0;
ydiffrence = (-ydiffrence) * friction;
}
if (_y > 346) {
timespentinair = 2;
_y = 346;
}
if (_x < 60) {
timespentinair = 2;
_x = 60;
xdiffrence = (-xdiffrence) * friction;
}
if (_x > 360) {
timespentinair = 2;
_x = 360;
xdiffrence = (-xdiffrence) * friction;
}
if (hitTest(_root.sandman) & (_root.sandman._currentframe == 5)) {
timespentinair = 2;
ydiffrence = 20;
xdiffrence = (Math.random() * 50) - 25;
}
}
if (i == 1) {
timespentinair = 2;
xdiffrence = Math.round(oldx - _x);
ydiffrence = Math.round(oldy - _y);
oldx = _x;
oldy = _y;
_y = _root._ymouse;
_x = _root._xmouse;
if ((((_y < 0) | (_y > 380)) | (_x < 60)) | (_x > 360)) {
i = 0;
}
}
force = Math.round(foldy - _y);
this.onMouseUp = function () {
i = 0;
};
this.onMouseDown = function () {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
i = 1;
}
};
}
Instance of Symbol 46 MovieClip "sandman" in Frame 1
onClipEvent (enterFrame) {
if (_currentframe != 6) {
_root.ball._visible = true;
}
if (_currentframe == 8) {
i++;
if (i >= 120) {
i = 0;
gotoAndPlay (1);
}
}
speed = 5;
if ((_root.ball._x > (_x + (speed * 2))) & (_currentframe <= 6)) {
_x = (_x + speed);
_xscale = -100;
if (_currentframe > 3) {
gotoAndPlay (1);
}
} else if ((_root.ball._x < (_x - (speed * 2))) & (_currentframe <= 6)) {
if (_currentframe > 3) {
gotoAndPlay (1);
}
_xscale = 100;
_x = (_x - speed);
} else if (_currentframe < 6) {
gotoAndStop (4);
if ((hitTest(_root.ball) & (_root.ball.force == 0)) & (_currentframe != 5)) {
gotoAndStop (6);
_root.ball._visible = false;
}
if (hitTest(_root.ball) & (_root.ball.force < -5)) {
gotoAndStop (5);
}
if (hitTest(_root.ball) & (_root.ball.force < -13)) {
gotoAndPlay (7);
}
}
}
Frame 2
function shouldobjshow(x, y) {
if ((((y > 0) & (y < 400)) & (x > 0)) & (x < 550)) {
return(1);
}
return(0);
}
function playfootstepsound(xvaluea, yvaluea, typeofsound) {
if ((_root.walkingdisabled == false) & (_root.soundoff == false)) {
if (((Key.isDown(_root.buttonleft) | Key.isDown(_root.buttonright)) | Key.isDown(_root.buttondown)) | Key.isDown(_root.buttonup)) {
timer++;
if ((timer == 4) & (_root._currentframe >= 4)) {
if (typeofsound == "concrete") {
}
if (typeofsound == "glass") {
footglass.start(0, 0);
}
if (typeofsound == "carpet") {
foot.attachSound("foot");
}
if (typeofsound == "gravel") {
foot.attachSound("footgr");
}
if (typeofsound == "grass") {
foot.attachSound("footgrass");
}
foot.setPan((xvaluea - 300) / 3);
foot.setVolume(yvaluea / 4);
timer = 0;
}
}
}
}
function startsound() {
if (playing) {
_root.pos = enginesound.position;
_root.posb = nonenginesound.position;
enginesound.stop();
if (currentsoundplaying == "a") {
if (_root.soundfilea == musicname[0]) {
nonenginesound.stop();
enginesound.attachSound("Home");
enginesound.start(_root.pos / 1000, 1);
} else {
loadsound(_root.soundfilea, "a");
}
}
if (currentsoundplaying == "b") {
if (_root.soundfileb == musicname[1]) {
nonenginesound.stop();
enginesound.attachSound("forest");
enginesound.start(_root.pos / 1000, 1);
} else {
loadsound(_root.soundfileb, "b");
}
}
if (currentsoundplaying == "c") {
if (_root.soundfilec == musicname[2]) {
nonenginesound.stop();
enginesound.attachSound("victory");
enginesound.start(_root.pos / 1000, 1);
} else {
loadsound(_root.soundfilec, "c");
}
}
if (currentsoundplaying == "d") {
if (_root.soundfiled == musicname[3]) {
nonenginesound.stop();
enginesound.attachSound("forest");
enginesound.start(_root.pos / 1000, 1);
} else {
loadsound(_root.soundfiled, "d");
}
}
if (currentsoundplaying == "e") {
if (_root.soundfilee == musicname[4]) {
nonenginesound.stop();
enginesound.attachSound("forest");
enginesound.start(_root.pos / 1000, 1);
} else {
loadsound(_root.soundfilee, "e");
}
}
if (currentsoundplaying == "f") {
if (_root.soundfilef == musicname[1]) {
nonenginesound.stop();
enginesound.attachSound("forest");
enginesound.start(_root.pos / 1000, 1);
} else {
loadsound(_root.soundfilef, "f");
}
}
}
}
function playa() {
_root.posb = nonenginesound.position;
_root.pos = enginesound.position;
enginesound.setVolume(mastervol);
nonenginesound.setVolume(mastervol);
if (enginesound.position >= enginesound.duration) {
enginesound.stop();
_root.pos = enginesound.position;
_root.pos = 0;
enginesound.start(1, 1);
}
if ((nonenginesound.position >= nonenginesound.duration) & (nonenginesound.duration > 100)) {
nonenginesound.stop();
_root.posb = nonenginesound.position;
_root.posb = 0;
nonenginesound.start(1, 1);
}
}
function loadsound(url, storename) {
if (playing) {
_root.posb = nonenginesound.position;
_root.pos = enginesound.position;
enginesound.stop();
nonengineSound.loadSound(url, false);
nonenginesound.start(_root.posb / 1000, 1);
if ((storename == "a") & (nonenginesound.duration > 100)) {
nonenginesound.start(_root.posb / 1000, 1);
_root.soundfilea = url;
}
if ((storename == "b") & (nonenginesound.duration > 100)) {
nonenginesound.start(_root.posb / 1000, 1);
_root.soundfileb = url;
}
if ((storename == "c") & (nonenginesound.duration > 100)) {
nonenginesound.start(_root.posb / 1000, 1);
_root.soundfilec = url;
}
if ((storename == "d") & (nonenginesound.duration > 100)) {
nonenginesound.start(_root.posb / 1000, 1);
_root.soundfiled = url;
}
if ((storename == "e") & (nonenginesound.duration > 100)) {
nonenginesound.start(_root.posb / 1000, 1);
_root.soundfilee = url;
}
if ((storename == "f") & (nonenginesound.duration > 100)) {
nonenginesound.start(_root.posb / 1000, 1);
_root.soundfilef = url;
}
}
}
function stopa() {
_root.pos = 0;
enginesound.stop();
nonenginesound.stop();
playing = false;
}
function pause() {
if (playing) {
_root.pos = enginesound.position;
_root.posb = nonenginesound.position;
enginesound.stop();
nonenginesound.stop();
playing = false;
}
}
function levelchange(numberdestination, changetowhart) {
if (changetowhart == true) {
_root.mainplayersquarex = _root.player._x - _root.restxposofplayer;
_root.mainplayersquarey = _root.player._y - _root.restyposofplayer;
_root.restxposofplayer = 0;
_root.restyposofplayer = 0;
}
_root.numberdestinationgoto = numberdestination;
_root.gotoAndStop(3);
}
function superhittest(name, numberdestination, X, Y) {
name._visible = false;
with (_root.player) {
if (name.hitTest(_root.player.hiter)) {
if (name.hitTest(_x, hiter.getBounds(_root).yMax, true)) {
_root.mainplayersquarex = X;
_root.mainplayersquarey = Y;
_root.numberdestinationgoto = numberdestination;
_root.gotoAndStop(3);
}
if (name.hitTest(hiter.getBounds(_root).xMax, _y, true)) {
_root.mainplayersquarex = X;
_root.mainplayersquarey = Y;
_root.numberdestinationgoto = numberdestination;
_root.gotoAndStop(3);
}
if (name.hitTest(hiter.getBounds(_root).xMin, _y, true)) {
_root.mainplayersquarex = X;
_root.mainplayersquarey = Y;
_root.numberdestinationgoto = numberdestination;
_root.gotoAndStop(3);
}
}
}
}
function playerscale(whattodo, ystopingpiont, stopingpiont, changedistance, xplayerscalex, yplayerscaley) {
d--;
_root.mainbuttondowna = false;
if (Key.isDown(_root.buttonaction)) {
d = 3;
_root.mainbuttondowna = false;
}
if ((d == 2) | ((_root.player._currentframe == 2) & (_root.player.down._currentframe == 4))) {
_root.mainbuttondowna = true;
}
if (whattodo == true) {
_root.player._yscale = ((_root.player._y - ystopingpiont) / stopingpiont) * 15;
_root.player._xscale = ((_root.player._y - ystopingpiont) / stopingpiont) * 15;
_root.player.yspeed = ((_root.player._y - ystopingpiont) / stopingpiont) * _root.speedtimes;
_root.player.xspeed = ((_root.player._y - ystopingpiont) / stopingpiont) * _root.speedtimes;
}
if (whattodo == false) {
_root.player._yscale = yplayerscaley;
_root.player._xscale = xplayerscalex;
_root.player.yspeed = ystopingpiont * _root.speedtimes;
_root.player.xspeed = stopingpiont * _root.speedtimes;
if (_root.player._y > 400) {
placeinfo(0, 0, "");
_root.restyposofplayer = _root.restyposofplayer - changedistance;
_root.changelevel._y = _root.changelevel._y - changedistance;
_root.changelevela._y = _root.changelevela._y - changedistance;
_root.changelevelb._y = _root.changelevelb._y - changedistance;
_root.changelevelc._y = _root.changelevelc._y - changedistance;
_root.changeleveld._y = _root.changeleveld._y - changedistance;
_root.changelevele._y = _root.changelevele._y - changedistance;
_root.changelevelf._y = _root.changelevelf._y - changedistance;
_root.changelevelg._y = _root.changelevelg._y - changedistance;
_root.changelevelh._y = _root.changelevelh._y - changedistance;
_root.movea._y = _root.movea._y - changedistance;
_root.moveb._y = _root.moveb._y - changedistance;
_root.movec._y = _root.movec._y - changedistance;
_root.moved._y = _root.moved._y - changedistance;
_root.obja._y = _root.obja._y - changedistance;
_root.objb._y = _root.objb._y - changedistance;
_root.objc._y = _root.objc._y - changedistance;
_root.objd._y = _root.objd._y - changedistance;
_root.obje._y = _root.obje._y - changedistance;
_root.objf._y = _root.objf._y - changedistance;
_root.objg._y = _root.objg._y - changedistance;
_root.objh._y = _root.objh._y - changedistance;
_root.obji._y = _root.obji._y - changedistance;
_root.objj._y = _root.objj._y - changedistance;
_root.objk._y = _root.objk._y - changedistance;
_root.objl._y = _root.objl._y - changedistance;
_root.objm._y = _root.objm._y - changedistance;
_root.objn._y = _root.objn._y - changedistance;
_root.objo._y = _root.objo._y - changedistance;
_root.objp._y = _root.objp._y - changedistance;
_root.objq._y = _root.objq._y - changedistance;
_root.objr._y = _root.objr._y - changedistance;
_root.objs._y = _root.objs._y - changedistance;
_root.objt._y = _root.objt._y - changedistance;
_root.obju._y = _root.obju._y - changedistance;
_root.objv._y = _root.objv._y - changedistance;
_root.objw._y = _root.objw._y - changedistance;
_root.objx._y = _root.objx._y - changedistance;
_root.objy._y = _root.objy._y - changedistance;
_root.objz._y = _root.objz._y - changedistance;
_root.back._y = _root.back._y - changedistance;
_root.door._y = _root.door._y - changedistance;
_root.walls._y = _root.walls._y - changedistance;
_root.squareb._y = _root.squareb._y - changedistance;
_root.mainplayersquare._y = _root.mainplayersquare._y - changedistance;
_root.orba._y = _root.orba._y - changedistance;
_root.orbb._y = _root.orbb._y - changedistance;
_root.orbc._y = _root.orbc._y - changedistance;
_root.orbd._y = _root.orbd._y - changedistance;
_root.orbe._y = _root.orbe._y - changedistance;
_root.orbf._y = _root.orbf._y - changedistance;
_root.orbg._y = _root.orbg._y - changedistance;
_root.orbh._y = _root.orbh._y - changedistance;
_root.orbi._y = _root.orbi._y - changedistance;
_root.orbj._y = _root.orbj._y - changedistance;
_root.orbk._y = _root.orbk._y - changedistance;
_root.orbl._y = _root.orbl._y - changedistance;
_root.aa._y = _root.aa._y - changedistance;
_root.bb._y = _root.bb._y - changedistance;
_root.cc._y = _root.cc._y - changedistance;
_root.dd._y = _root.dd._y - changedistance;
_root.ee._y = _root.ee._y - changedistance;
_root.ff._y = _root.ff._y - changedistance;
_root.gg._y = _root.gg._y - changedistance;
_root.hh._y = _root.hh._y - changedistance;
_root.arro._y = _root.arro._y - changedistance;
_root.player._y = _root.player._y - changedistance;
}
if (_root.player._y < 175) {
placeinfo(0, 0, "");
_root.restyposofplayer = _root.restyposofplayer + changedistance;
_root.changelevel._y = _root.changelevel._y + changedistance;
_root.changelevela._y = _root.changelevela._y + changedistance;
_root.changelevelb._y = _root.changelevelb._y + changedistance;
_root.changelevelc._y = _root.changelevelc._y + changedistance;
_root.changeleveld._y = _root.changeleveld._y + changedistance;
_root.changelevele._y = _root.changelevele._y + changedistance;
_root.changelevelf._y = _root.changelevelf._y + changedistance;
_root.changelevelg._y = _root.changelevelg._y + changedistance;
_root.changelevelh._y = _root.changelevelh._y + changedistance;
_root.movea._y = _root.movea._y + changedistance;
_root.moveb._y = _root.moveb._y + changedistance;
_root.movec._y = _root.movec._y + changedistance;
_root.moved._y = _root.moved._y + changedistance;
_root.obja._y = _root.obja._y + changedistance;
_root.objb._y = _root.objb._y + changedistance;
_root.objc._y = _root.objc._y + changedistance;
_root.objd._y = _root.objd._y + changedistance;
_root.obje._y = _root.obje._y + changedistance;
_root.objf._y = _root.objf._y + changedistance;
_root.objg._y = _root.objg._y + changedistance;
_root.objh._y = _root.objh._y + changedistance;
_root.obji._y = _root.obji._y + changedistance;
_root.objj._y = _root.objj._y + changedistance;
_root.objk._y = _root.objk._y + changedistance;
_root.objl._y = _root.objl._y + changedistance;
_root.objm._y = _root.objm._y + changedistance;
_root.objn._y = _root.objn._y + changedistance;
_root.objo._y = _root.objo._y + changedistance;
_root.objp._y = _root.objp._y + changedistance;
_root.objq._y = _root.objq._y + changedistance;
_root.objr._y = _root.objr._y + changedistance;
_root.objs._y = _root.objs._y + changedistance;
_root.objt._y = _root.objt._y + changedistance;
_root.obju._y = _root.obju._y + changedistance;
_root.objv._y = _root.objv._y + changedistance;
_root.objw._y = _root.objw._y + changedistance;
_root.objx._y = _root.objx._y + changedistance;
_root.objy._y = _root.objy._y + changedistance;
_root.objz._y = _root.objz._y + changedistance;
_root.back._y = _root.back._y + changedistance;
_root.door._y = _root.door._y + changedistance;
_root.walls._y = _root.walls._y + changedistance;
_root.squareb._y = _root.squareb._y + changedistance;
_root.mainplayersquare._y = _root.mainplayersquare._y + changedistance;
_root.orba._y = _root.orba._y + changedistance;
_root.orbb._y = _root.orbb._y + changedistance;
_root.orbc._y = _root.orbc._y + changedistance;
_root.orbd._y = _root.orbd._y + changedistance;
_root.orbe._y = _root.orbe._y + changedistance;
_root.orbf._y = _root.orbf._y + changedistance;
_root.orbg._y = _root.orbg._y + changedistance;
_root.orbh._y = _root.orbh._y + changedistance;
_root.orbi._y = _root.orbi._y + changedistance;
_root.orbj._y = _root.orbj._y + changedistance;
_root.orbk._y = _root.orbk._y + changedistance;
_root.orbl._y = _root.orbl._y + changedistance;
_root.aa._y = _root.aa._y + changedistance;
_root.bb._y = _root.bb._y + changedistance;
_root.cc._y = _root.cc._y + changedistance;
_root.dd._y = _root.dd._y + changedistance;
_root.ee._y = _root.ee._y + changedistance;
_root.ff._y = _root.ff._y + changedistance;
_root.gg._y = _root.gg._y + changedistance;
_root.hh._y = _root.hh._y + changedistance;
_root.arro._y = _root.arro._y + changedistance;
_root.player._y = _root.player._y + changedistance;
}
if (_root.player._x < 100) {
placeinfo(0, 0, "");
_root.restxposofplayer = _root.restxposofplayer + changedistance;
_root.changelevel._x = _root.changelevel._x + changedistance;
_root.changelevela._x = _root.changelevela._x + changedistance;
_root.changelevelb._x = _root.changelevelb._x + changedistance;
_root.changelevelc._x = _root.changelevelc._x + changedistance;
_root.changeleveld._x = _root.changeleveld._x + changedistance;
_root.changelevele._x = _root.changelevele._x + changedistance;
_root.changelevelf._x = _root.changelevelf._x + changedistance;
_root.changelevelg._x = _root.changelevelg._x + changedistance;
_root.changelevelh._x = _root.changelevelh._x + changedistance;
_root.movea._x = _root.movea._x + changedistance;
_root.moveb._x = _root.moveb._x + changedistance;
_root.movec._x = _root.movec._x + changedistance;
_root.moved._x = _root.moved._x + changedistance;
_root.obja._x = _root.obja._x + changedistance;
_root.objb._x = _root.objb._x + changedistance;
_root.objc._x = _root.objc._x + changedistance;
_root.objd._x = _root.objd._x + changedistance;
_root.obje._x = _root.obje._x + changedistance;
_root.objf._x = _root.objf._x + changedistance;
_root.objg._x = _root.objg._x + changedistance;
_root.objh._x = _root.objh._x + changedistance;
_root.obji._x = _root.obji._x + changedistance;
_root.objj._x = _root.objj._x + changedistance;
_root.objk._x = _root.objk._x + changedistance;
_root.objl._x = _root.objl._x + changedistance;
_root.objm._x = _root.objm._x + changedistance;
_root.objn._x = _root.objn._x + changedistance;
_root.objo._x = _root.objo._x + changedistance;
_root.objp._x = _root.objp._x + changedistance;
_root.objq._x = _root.objq._x + changedistance;
_root.objr._x = _root.objr._x + changedistance;
_root.objs._x = _root.objs._x + changedistance;
_root.objt._x = _root.objt._x + changedistance;
_root.obju._x = _root.obju._x + changedistance;
_root.objv._x = _root.objv._x + changedistance;
_root.objw._x = _root.objw._x + changedistance;
_root.objx._x = _root.objx._x + changedistance;
_root.objy._x = _root.objy._x + changedistance;
_root.objz._x = _root.objz._x + changedistance;
_root.back._x = _root.back._x + changedistance;
_root.door._x = _root.door._x + changedistance;
_root.walls._x = _root.walls._x + changedistance;
_root.squareb._x = _root.squareb._x + changedistance;
_root.mainplayersquare._x = _root.mainplayersquare._x + changedistance;
_root.orba._x = _root.orba._x + changedistance;
_root.orbb._x = _root.orbb._x + changedistance;
_root.orbc._x = _root.orbc._x + changedistance;
_root.orbd._x = _root.orbd._x + changedistance;
_root.orbe._x = _root.orbe._x + changedistance;
_root.orbf._x = _root.orbf._x + changedistance;
_root.orbg._x = _root.orbg._x + changedistance;
_root.orbh._x = _root.orbh._x + changedistance;
_root.orbi._x = _root.orbi._x + changedistance;
_root.orbj._x = _root.orbj._x + changedistance;
_root.orbk._x = _root.orbk._x + changedistance;
_root.orbl._x = _root.orbl._x + changedistance;
_root.aa._x = _root.aa._x + changedistance;
_root.bb._x = _root.bb._x + changedistance;
_root.cc._x = _root.cc._x + changedistance;
_root.dd._x = _root.dd._x + changedistance;
_root.ee._x = _root.ee._x + changedistance;
_root.ff._x = _root.ff._x + changedistance;
_root.gg._x = _root.gg._x + changedistance;
_root.hh._x = _root.hh._x + changedistance;
_root.arro._x = _root.arro._x + changedistance;
_root.player._x = _root.player._x + changedistance;
}
if (_root.player._x > 440) {
placeinfo(0, 0, "");
_root.restxposofplayer = _root.restxposofplayer - changedistance;
_root.changelevel._x = _root.changelevel._x - changedistance;
_root.changelevela._x = _root.changelevela._x - changedistance;
_root.changelevelb._x = _root.changelevelb._x - changedistance;
_root.changelevelc._x = _root.changelevelc._x - changedistance;
_root.changeleveld._x = _root.changeleveld._x - changedistance;
_root.changelevele._x = _root.changelevele._x - changedistance;
_root.changelevelf._x = _root.changelevelf._x - changedistance;
_root.changelevelg._x = _root.changelevelg._x - changedistance;
_root.changelevelh._x = _root.changelevelh._x - changedistance;
_root.movea._x = _root.movea._x - changedistance;
_root.moveb._x = _root.moveb._x - changedistance;
_root.movec._x = _root.movec._x - changedistance;
_root.moved._x = _root.moved._x - changedistance;
_root.obja._x = _root.obja._x - changedistance;
_root.objb._x = _root.objb._x - changedistance;
_root.objc._x = _root.objc._x - changedistance;
_root.objd._x = _root.objd._x - changedistance;
_root.obje._x = _root.obje._x - changedistance;
_root.objf._x = _root.objf._x - changedistance;
_root.objg._x = _root.objg._x - changedistance;
_root.objh._x = _root.objh._x - changedistance;
_root.obji._x = _root.obji._x - changedistance;
_root.objj._x = _root.objj._x - changedistance;
_root.objk._x = _root.objk._x - changedistance;
_root.objl._x = _root.objl._x - changedistance;
_root.objm._x = _root.objm._x - changedistance;
_root.objn._x = _root.objn._x - changedistance;
_root.objo._x = _root.objo._x - changedistance;
_root.objp._x = _root.objp._x - changedistance;
_root.objq._x = _root.objq._x - changedistance;
_root.objr._x = _root.objr._x - changedistance;
_root.objs._x = _root.objs._x - changedistance;
_root.objt._x = _root.objt._x - changedistance;
_root.obju._x = _root.obju._x - changedistance;
_root.objv._x = _root.objv._x - changedistance;
_root.objw._x = _root.objw._x - changedistance;
_root.objx._x = _root.objx._x - changedistance;
_root.objy._x = _root.objy._x - changedistance;
_root.objz._x = _root.objz._x - changedistance;
_root.back._x = _root.back._x - changedistance;
_root.door._x = _root.door._x - changedistance;
_root.walls._x = _root.walls._x - changedistance;
_root.squareb._x = _root.squareb._x - changedistance;
_root.mainplayersquare._x = _root.mainplayersquare._x - changedistance;
_root.orba._x = _root.orba._x - changedistance;
_root.orbb._x = _root.orbb._x - changedistance;
_root.orbc._x = _root.orbc._x - changedistance;
_root.orbd._x = _root.orbd._x - changedistance;
_root.orbe._x = _root.orbe._x - changedistance;
_root.orbf._x = _root.orbf._x - changedistance;
_root.orbg._x = _root.orbg._x - changedistance;
_root.orbh._x = _root.orbh._x - changedistance;
_root.orbi._x = _root.orbi._x - changedistance;
_root.orbj._x = _root.orbj._x - changedistance;
_root.orbk._x = _root.orbk._x - changedistance;
_root.orbl._x = _root.orbl._x - changedistance;
_root.aa._x = _root.aa._x - changedistance;
_root.bb._x = _root.bb._x - changedistance;
_root.cc._x = _root.cc._x - changedistance;
_root.dd._x = _root.dd._x - changedistance;
_root.ee._x = _root.ee._x - changedistance;
_root.ff._x = _root.ff._x - changedistance;
_root.gg._x = _root.gg._x - changedistance;
_root.hh._x = _root.hh._x - changedistance;
_root.arro._x = _root.arro._x - changedistance;
_root.player._x = _root.player._x - changedistance;
}
}
}
function remove3dobjects() {
removeMovieClip(_root.slude);
removeMovieClip(_root.obja);
removeMovieClip(_root.objb);
removeMovieClip(_root.objc);
removeMovieClip(_root.objd);
removeMovieClip(_root.obje);
removeMovieClip(_root.objf);
removeMovieClip(_root.objg);
removeMovieClip(_root.objh);
removeMovieClip(_root.obji);
removeMovieClip(_root.objj);
removeMovieClip(_root.objk);
removeMovieClip(_root.objl);
removeMovieClip(_root.objm);
removeMovieClip(_root.objn);
removeMovieClip(_root.objo);
removeMovieClip(_root.objp);
removeMovieClip(_root.objq);
removeMovieClip(_root.objr);
removeMovieClip(_root.objs);
removeMovieClip(_root.objt);
removeMovieClip(_root.obju);
removeMovieClip(_root.objv);
removeMovieClip(_root.objw);
removeMovieClip(_root.objx);
removeMovieClip(_root.objy);
removeMovieClip(_root.objz);
removeMovieClip(_root.orba);
removeMovieClip(_root.orbb);
removeMovieClip(_root.orbc);
removeMovieClip(_root.orbd);
removeMovieClip(_root.orbe);
removeMovieClip(_root.orbf);
removeMovieClip(_root.orbg);
removeMovieClip(_root.orbh);
removeMovieClip(_root.orbi);
removeMovieClip(_root.orbj);
removeMovieClip(_root.orbk);
removeMovieClip(_root.orbl);
removeMovieClip(_root.mainbar);
removeMovieClip(_root.squareb);
removeMovieClip(_root.bubble);
removeMovieClip(_root.aa);
removeMovieClip(_root.bb);
removeMovieClip(_root.cc);
removeMovieClip(_root.dd);
removeMovieClip(_root.ee);
removeMovieClip(_root.ff);
removeMovieClip(_root.gg);
removeMovieClip(_root.hh);
removeMovieClip(_root.ii);
removeMovieClip(_root.jj);
removeMovieClip(_root.kk);
removeMovieClip(_root.arro);
removeMovieClip(_root.mainbar);
removeMovieClip(_root.kirbygame);
removeMovieClip(_root.game1);
removeMovieClip(_root.player);
removeMovieClip(_root.main);
removeMovieClip(_root.clock);
}
function clearwords() {
if (bubblewords != "") {
_root.bubblename = "";
_root.bubblewords = "";
_root.main.image.image.gotoAndStop(1);
_root.main.image.gotoAndStop(1);
}
}
function getwords(wordsa, imagenumberb, currentname) {
_root.main.image.play();
_root.main.gotoAndStop(1);
if (((wordsa != _root.bubblewords) & (wordsa != "")) & (_root.soundoff == false)) {
getwordsa = new Sound(this);
getwordsa.attachSound("arcade2");
getwordsa.start(0, 0);
}
_root.bubblewords = wordsa;
_root.bubblename = currentname add ":";
if (_root.main.image.image._currentframe != imagenumberb) {
_root.main.image.gotoAndPlay(1);
_root.main.image.image.gotoAndStop(imagenumberb);
}
if (_root.main.image._currentframe < 8) {
_root.main.image.play();
}
if (wordsa == "") {
_root.main.image.image.gotoAndStop(1);
_root.main.image.gotoAndStop(1);
_root.bubblename = "";
_root.bubblewords = "";
}
}
gotoAndPlay (3);
musicname = ["Main theme", "Dream theme", "Wining theme", "fourth theme", "School theme", "Scary theme"];
_root.soundfilea = musicname[0];
_root.soundfileb = musicname[1];
_root.soundfilec = musicname[2];
_root.soundfiled = musicname[3];
_root.soundfilee = musicname[4];
_root.soundfilef = musicname[5];
_root.gemtypeget = 0;
_root.buttonnumber = 1;
_root.soundoff = false;
playing = true;
_root.mastervol = 80;
_root.money = 0;
_root.mainplayersquarex = 343;
_root.mainplayersquarey = 325;
_root.numberdestinationgoto = 4;
_root.timeofday = 1;
_root.drawk = true;
_root.screenclose = false;
_root.screeneffectb = false;
_root.p1 = 0;
_root.p2 = 0;
_root.p3 = 0;
_root.p4 = 0;
_root.p5 = 0;
_root.p6 = 0;
_root.p7 = 0;
_root.aiwalka = false;
_root.aiwalkb = false;
_root.aiwalkc = false;
_root.aiwalkd = false;
_root.aiwalke = false;
_root.aiwalkf = false;
_root.aiwalkg = false;
_root.aiwalkh = false;
_root.aiwalki = false;
_root.aiwalkj = false;
_root.buttonleft = 37;
_root.buttonright = 39;
_root.buttonup = 38;
_root.buttondown = 40;
_root.buttonaction = 32;
_root.walkingdisabled = false;
_root.gem1 = false;
_root.gem2 = false;
_root.gem3 = false;
_root.gem4 = false;
_root.gem5 = false;
_root.gem6 = false;
_root.gem7 = false;
_root.keya = true;
_root.keyb = true;
_root.keyc = true;
_root.keyd = true;
_root.keye = false;
_root.keyf = false;
_root.keyg = false;
_root.keyh = false;
_root.keyi = false;
_root.keyj = false;
_root.keyk = false;
_root.keyl = false;
_root.knowledge = 2;
_root.accuracy = 2;
_root.health = 100;
_root.sand = 0;
_root.sanda = 0;
_root.sandb = 0;
_root.sandc = 0;
_root.scythe = 1;
_root.timeofday = 1;
_root.speedtimes = 1;
concrete = new Sound();
concrete.start(0, 0);
concrete.attachSound("concrete");
footglass = new Sound();
footglass.attachSound("footglass");
nonenginesound = new Sound();
enginesound = new Sound();
Frame 3
_root.main.gotoAndStop(1);
_root.bubblewords = "";
_root.bubblename = "";
wordsa = "";
remove3dobjects();
_root.walkingdisabled = false;
_root.restyposofplayer = 0;
_root.restxposofplayer = 0;
if (_root._framesloaded >= _root.numberdestinationgoto) {
gotoAndStop(_root.numberdestinationgoto);
} else {
stop();
}
Frame 4
gemtypeget = 0;
stop();
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 57 MovieClip "objb" in Frame 4
onClipEvent (enterFrame) {
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (hitTest(_root.player) & (hitTest(_root.obja) == false)) {
if (hitTest(_root.player.scythehit)) {
_root.getwords("Yes I am a opium bong. do ya like the opiate, ah?", 4, "Opium bong");
}
hh = 0;
} else {
hh++;
if (hh == 1) {
_root.clearwords();
}
}
}
Instance of Symbol 59 MovieClip "obja" in Frame 4
onClipEvent (enterFrame) {
if (hitTest(_root.player.hit) & (_root.mainbuttondowna == true)) {
i++;
}
if ((hitTest(_root.player.hit) == false) | _root.objb.hitTest(_root.player)) {
i = 0;
k++;
if (k == 1) {
_root.clearwords();
}
}
if (i == 1) {
_root.getwords("Scytheing again will result in restoration of your HP, If its late.. Sleeping will help you to reap in the day.", 6, "Restore HP?");
k = 0;
}
if ((i == 3) & (_root.timeofday == 4)) {
_root.screenclose = true;
_root.getwords("Have a good night!", 5, "Fairy");
k = 0;
}
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
}
Instance of Symbol 63 MovieClip "objc" in Frame 4
onClipEvent (enterFrame) {
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
gotoAndStop(_root.timeofday);
if (_root.timeofday == 4) {
this.swapDepths(204);
}
}
Instance of Symbol 81 MovieClip "obje" in Frame 4
onClipEvent (load) {
this.swapDepths(_y);
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player.hiter) == false) & (_currentframe == 50)) {
gotoAndPlay (53);
}
if ((_currentframe > 12) & (_currentframe < 52)) {
_root.getwords("Hello, Miss Sandman. Hover the mouse over the bottom of the screen to view the menu (when your not talking). Inventory is where your objects are, options for loading and saving, sound for uploading your music, and progress, too see how much you've done! Goto the castle to get started!", 5, "Fairy");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
if (hitTest(_root.player.scythehit)) {
if (Key.isDown(32) & (_currentframe == 1)) {
play();
}
}
}
Instance of Symbol 83 MovieClip "walls" in Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_root.playerscale(false, 5, 10, 5, 100, 100);
}
Instance of Symbol 89 MovieClip "orba" in Frame 4
onClipEvent (load) {
if (_root.drawk == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
swapDepths(_y);
}
Instance of Symbol 99 MovieClip "changelevela" in Frame 4
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 5, 350, 215);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 101 MovieClip in Frame 4
onClipEvent (load) {
this.swapDepths(1000);
}
Instance of Symbol 106 MovieClip "slude" in Frame 4
onClipEvent (load) {
_alpha = 100;
if (_root.screeneffectb == 0) {
_root.slude.swapDepths(1000);
_alpha = 75;
this._x = 0;
this._y = 400;
gotoAndStop (1);
}
if (_root.screeneffectb == 1) {
this._x = 0;
this._y = 400;
play();
}
if (_root.screeneffectb == 3) {
gotoAndStop (5);
}
}
onClipEvent (enterFrame) {
_root.slude.swapDepths(_y + 200);
if ((_root.screeneffectb == 0) & (_root.screenclose == false)) {
_alpha = (_alpha - 25);
if (_alpha < 1) {
_alpha = 100;
gotoAndStop (5);
}
}
if (_root.screenclose == true) {
gotoAndStop (1);
_alpha = (_alpha + 2);
_root.walkingdisabled = true;
if (_alpha >= 100) {
_root.timeofday = 1;
_root.obja.i = 0;
_root.walkingdisabled = false;
_alpha = 100;
_root.screenclose = false;
}
}
}
Instance of Symbol 312 MovieClip "main" in Frame 4
onClipEvent (load) {
_root.main.soundnamea = _root.soundfilea;
_root.main.soundnameb = _root.soundfileb;
_root.main.soundnamec = _root.soundfilec;
_root.main.soundnamed = _root.soundfiled;
_root.main.soundnamee = _root.soundfilee;
_root.main.soundnamef = _root.soundfilef;
}
onClipEvent (enterFrame) {
if ((image.image._currentframe != 1) & (image._currentframe == 1)) {
image.play();
}
_root.playa();
if (_root.keya == true) {
a1._visible = true;
} else {
a1._visible = false;
}
if (_root.keyb == true) {
a2._visible = true;
} else {
a2._visible = false;
}
if (_root.keyc == true) {
a3._visible = true;
} else {
a3._visible = false;
}
if (_root.keyd == true) {
a4._visible = true;
} else {
a4._visible = false;
}
if (_root.keye == true) {
a5._visible = true;
} else {
a5._visible = false;
}
if (_root.keyf == true) {
a6._visible = true;
} else {
a6._visible = false;
}
if (_root.keyg == true) {
a7._visible = true;
} else {
a7._visible = false;
}
if (_root.keyh == true) {
a8._visible = true;
} else {
a8._visible = false;
}
if (_root.keyi == true) {
a9._visible = true;
} else {
a9._visible = false;
}
if (_root.keyj == true) {
a10._visible = true;
} else {
a10._visible = false;
}
if (_root.keyk == true) {
a11._visible = true;
} else {
a11._visible = false;
}
if (_root.keyl == true) {
a12._visible = true;
} else {
a12._visible = false;
}
if (_root._currentframe <= 3) {
removeMovieClip(this);
} else {
this.swapDepths(2000);
}
if (_root.bubblewords == "") {
if (_root._ymouse > 270) {
buttons.gotoAndStop(6);
}
if (_root._ymouse > 369) {
buttons.gotoAndStop(2);
} else {
buttons.gotoAndStop(1);
}
if (Key.isDown(73)) {
gotoAndStop (2);
}
if (Key.isDown(79)) {
gotoAndStop (3);
}
if (Key.isDown(83) | Key.isDown(85)) {
gotoAndStop (4);
}
if (Key.isDown(80)) {
gotoAndStop (5);
}
if (Key.isDown(89)) {
gotoAndStop (8);
}
if (hitTest(_root.player._x, _root.player._y, false) & (_currentframe == 1)) {
gotoAndStop (7);
}
if (((Key.isDown(_root.buttonleft) | Key.isDown(_root.buttonright)) | Key.isDown(_root.buttondown)) | (Key.isDown(_root.buttonup) & (_currentframe != 1))) {
gotoAndStop (8);
}
}
}
Instance of Symbol 456 MovieClip "player" in Frame 4
onClipEvent (load) {
function allhide() {
down._visible = false;
up._visible = false;
left._visible = false;
right._visible = false;
upright._visible = false;
upleft._visible = false;
downright._visible = false;
downleft._visible = false;
}
_y = _root.mainplayersquarey;
_x = _root.mainplayersquarex;
gotoAndStop(_root.currantdress);
_root.walls._visible = false;
allhide();
down._visible = true;
i = 1;
}
onClipEvent (enterFrame) {
if (((Key.isDown(_root.buttonleft) | Key.isDown(_root.buttonright)) | Key.isDown(_root.buttondown)) | Key.isDown(_root.buttonup)) {
bu = 0;
thought.gotoAndStop(1);
} else {
bu++;
if (bu > 200) {
thought.play();
}
}
_root.playfootstepsound(_x, _y, "carpet");
this.swapdepths(_y);
oldframe = _currentframe;
if ((Key.isDown(32) & (_currentframe == 1)) & (_root.bubblewords == "")) {
gotoAndStop (2);
}
if (_currentframe == 2) {
kk++;
if (kk >= 5) {
gotoAndStop (1);
kk = 0;
}
}
if (_root.walkingdisabled == true) {
left.gotoAndStop(1);
right.gotoAndStop(1);
upright.gotoAndStop(1);
downright.gotoAndStop(1);
upleft.gotoAndStop(1);
downleft.gotoAndStop(1);
down.gotoAndStop(1);
up.gotoAndStop(1);
}
if ((_root.walkingdisabled == false) & (_currentframe != 2)) {
if (Key.isDown(_root.buttonleft)) {
if (Key.isDown(_root.buttonleft)) {
this.left.play();
allhide();
left._visible = true;
i = 7;
}
} else if (_currentframe != 2) {
left.gotoAndStop(1);
}
if (Key.isDown(_root.buttonright)) {
if (Key.isDown(_root.buttonright)) {
allhide();
right.play();
right._visible = true;
i = 3;
}
} else if (_currentframe != 2) {
right.gotoAndStop(1);
}
if (Key.isDown(_root.buttondown)) {
if (Key.isDown(_root.buttondown)) {
down.play();
allhide();
down._visible = true;
i = 5;
}
if (Key.isDown(_root.buttonright)) {
downright.play();
allhide();
downright._visible = true;
i = 4;
}
if (Key.isDown(_root.buttonleft)) {
downleft.play();
allhide();
downleft._visible = true;
i = 6;
}
} else if (_currentframe != 2) {
down.gotoAndStop(1);
downleft.gotoAndStop(1);
downright.gotoAndStop(1);
}
if (Key.isDown(_root.buttonup)) {
if (Key.isDown(_root.buttonup)) {
up.Play();
allhide();
up._visible = true;
i = 1;
}
if (Key.isDown(_root.buttonright)) {
upright.play();
allhide();
upright._visible = true;
i = 2;
}
if (Key.isDown(_root.buttonleft)) {
upleft.play();
allhide();
upleft._visible = true;
i = 8;
}
} else if (_currentframe != 2) {
upright.gotoAndStop(1);
upleft.gotoAndStop(1);
up.gotoAndStop(1);
}
if (Key.isDown(_root.buttonup) & Key.isDown(_root.buttondown)) {
down.stop();
allhide();
down._visible = true;
i = 1;
}
if (Key.isDown(_root.buttonright) & Key.isDown(_root.buttonleft)) {
down.stop();
allhide();
down._visible = true;
i = 1;
}
}
framediff = oldframe - _currentframe;
if (framediff != 0) {
downleft._visible = 0;
downright._visible = 0;
right._visible = 0;
up._visible = 0;
down._visible = 0;
upleft._visible = 0;
upright._visible = 0;
left._visible = 0;
if (i == 8) {
upleft._visible = 1;
}
if (i == 7) {
left._visible = 1;
}
if (i == 6) {
downleft._visible = 1;
}
if (i == 5) {
down._visible = 1;
}
if (i == 4) {
downright._visible = 1;
}
if (i == 3) {
right._visible = 1;
}
if (i == 2) {
upright._visible = 1;
}
if (i == 1) {
up._visible = 1;
}
}
if ((_root.walkingdisabled == false) & (_currentframe != 2)) {
if (_root.walls.hitTest(_x, hiter.getBounds(_root).yMax, true)) {
} else if (Key.isDown(_root.buttondown)) {
this._y = this._y + yspeed;
}
if (_root.walls.hitTest(_x, hiter.getBounds(_root).yMin, true)) {
} else if (Key.isDown(_root.buttonup)) {
this._y = this._y - yspeed;
}
if (_root.walls.hitTest(hiter.getBounds(_root).xMin, _y, true)) {
} else if (Key.isDown(_root.buttonleft)) {
this._x = this._x - xspeed;
}
if (_root.walls.hitTest(hiter.getBounds(_root).xMax, _y, true)) {
} else if (Key.isDown(_root.buttonright)) {
this._x = this._x + xspeed;
}
}
}
Instance of Symbol 463 MovieClip "clock" in Frame 4
onClipEvent (enterFrame) {
clock.gotoAndStop(_root.timeofday);
if (_root.timeofday >= 5) {
_root.timeofday = 4;
}
if ((_root._currentframe >= 3) & (_root._currentframe <= 11)) {
this.swapDepths(_y + 1000);
} else {
removeMovieClip(this);
}
}
Frame 5
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 470 MovieClip "back" in Frame 5
onClipEvent (enterFrame) {
gotoAndStop(_root.timeofday);
}
Instance of Symbol 478 MovieClip "obja" in Frame 5
onClipEvent (enterFrame) {
_root.superhittest(_root.obja.hitb, 6, 351, 280);
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (black.hitTest(_root.player._x, _root.player._y, true)) {
_root.getwords("Go to the castle to earn maji sand", 2, "Devil guy");
play();
hh = 0;
} else {
hh++;
if (hh == 1) {
_root.main.gotoAndStop(6);
_root.clearwords();
}
gotoAndStop (1);
}
}
Instance of Symbol 481 MovieClip "objb" in Frame 5
onClipEvent (enterFrame) {
_root.superhittest(_root.objb.hitc, 4, 178, 226);
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (black.hitTest(_root.player._x, _root.player._y, true)) {
_root.getwords("Go to home to rest, and resore your HP", 2, "Devil guy");
play();
hh = 0;
} else {
hh++;
if (hh == 1) {
_root.main.gotoAndStop(6);
_root.clearwords();
}
gotoAndStop (1);
}
}
Instance of Symbol 484 MovieClip "objc" in Frame 5
onClipEvent (enterFrame) {
_root.superhittest(_root.objc.hitb, 7, 286, 380);
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (black.hitTest(_root.player._x, _root.player._y, true)) {
_root.getwords("Go to the Golden sphinx to buy new items", 2, "Devil guy");
play();
hh = 0;
} else {
hh++;
if (hh == 1) {
_root.main.gotoAndStop(6);
_root.clearwords();
}
gotoAndStop (1);
}
}
Instance of Symbol 487 MovieClip "objd" in Frame 5
onClipEvent (enterFrame) {
_root.superhittest(_root.objd.hitb, 19, 286, 380);
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (black.hitTest(_root.player._x, _root.player._y, true)) {
_root.getwords("Go to the Red pillar to sell me sand", 2, "Devil guy");
play();
hh = 0;
} else {
hh++;
if (hh == 1) {
_root.main.gotoAndStop(6);
_root.clearwords();
}
gotoAndStop (1);
}
}
Instance of Symbol 489 MovieClip "walls" in Frame 5
onClipEvent (enterFrame) {
_root.playerscale(false, 2.5, 5, 1, 70, 70);
}
onClipEvent (load) {
_visible = false;
}
Frame 6
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 493 MovieClip "back" in Frame 6
onClipEvent (load) {
if ((((((_root.gem1 & _root.gem2) & _root.gem3) & _root.gem4) & _root.gem5) & _root.gem6) & (_root.gem7 == false)) {
_root.gemtypeget = 7;
_root.levelchange(21, false);
}
if ((((_root.p1 >= 3) & (_root.p2 >= 3)) & (_root.p3 >= 3)) & (_root.p4 >= 3)) {
_root.levelchange(22, false);
}
}
Instance of Symbol 504 MovieClip "objc" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.p1 + 2);
}
Instance of Symbol 504 MovieClip "objb" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.p2 + 2);
if (_root.p1 == 0) {
gotoAndStop (1);
}
}
Instance of Symbol 504 MovieClip "obja" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.p3 + 2);
if (_root.p2 == 0) {
gotoAndStop (1);
}
}
Instance of Symbol 511 MovieClip "objd" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.p4 + 2);
if (_root.p3 == 0) {
gotoAndStop (1);
}
}
Instance of Symbol 531 MovieClip "objf" in Frame 6
onClipEvent (enterFrame) {
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (this.hitTest(_root.player)) {
_root.getwords("Hey! scythe me for in depth help!", 14, "Little sister");
if (_root.mainbuttondowna == true) {
play();
}
hh = 0;
} else {
hh++;
if (hh == 1) {
_root.clearwords();
}
}
}
Instance of Symbol 99 MovieClip "changelevela" in Frame 6
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 5, 272, 250);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 89 MovieClip "orba" in Frame 6
onClipEvent (load) {
if (_root.drawk == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
swapDepths(_y);
}
Instance of Symbol 89 MovieClip "orbb" in Frame 6
onClipEvent (load) {
if (_root.drawk == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
swapDepths(_y);
}
Instance of Symbol 89 MovieClip "orbc" in Frame 6
onClipEvent (load) {
if (_root.drawk == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
swapDepths(_y);
}
Instance of Symbol 89 MovieClip "orbd" in Frame 6
onClipEvent (load) {
if (_root.drawk == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
swapDepths(_y);
}
Instance of Symbol 89 MovieClip "orbe" in Frame 6
onClipEvent (load) {
if (_root.drawk == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
swapDepths(_y);
}
Instance of Symbol 99 MovieClip "changelevelb" in Frame 6
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevelb, 8, 400, 320);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevelc" in Frame 6
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevelc, 9, 400, 320);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changeleveld" in Frame 6
onClipEvent (enterFrame) {
_root.superhittest(_root.changeleveld, 10, 400, 320);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevele" in Frame 6
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevele, 11, 400, 320);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 536 MovieClip "walls" in Frame 6
onClipEvent (enterFrame) {
_root.playerscale(false, 5, 10, 2, 90, 90);
if (_root.p1) {
gotoAndStop (2);
}
if (_root.p2) {
gotoAndStop (3);
}
if (_root.p3) {
gotoAndStop (4);
}
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevelf" in Frame 6
onClipEvent (enterFrame) {
if ((((((_root.gem1 | _root.gem2) | _root.gem3) | _root.gem4) | _root.gem5) | _root.gem6) | _root.gem7) {
_root.superhittest(_root.changelevelf, 18, 370, 170);
}
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 89 MovieClip "orbf" in Frame 6
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((((((_root.gem1 | _root.gem2) | _root.gem3) | _root.gem4) | _root.gem5) | _root.gem6) | _root.gem7) {
if (_root.drawk == false) {
_visible = false;
} else {
_visible = true;
}
} else {
_visible = false;
}
swapDepths(_y);
}
Frame 7
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 542 MovieClip in Frame 7
onClipEvent (load) {
gotoAndStop(_root.timeofday);
}
Instance of Symbol 585 MovieClip "obja" in Frame 7
onClipEvent (enterFrame) {
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (hitTest(_root.player.hit) == false) {
b++;
if (b == 5) {
_root.clearwords();
}
}
if (hitTest(_root.player.scythehit)) {
i = 1;
b = 0;
_root.getwords("What will it be?", 8, "Store lady");
}
if (hitTest(_root.player.hiter) & (i == 1)) {
w._visible = true;
} else {
w._visible = false;
}
}
Instance of Symbol 587 MovieClip "walls" in Frame 7
onClipEvent (enterFrame) {
_root.playerscale(true, 140, 25);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 589 MovieClip "changelevela" in Frame 7
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 5, 274, 180);
}
onClipEvent (load) {
_visible = false;
}
Frame 8
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 591 MovieClip "back" in Frame 8
onClipEvent (load) {
_root.gemtypeget = 0;
}
Instance of Symbol 595 MovieClip "objc" in Frame 8
onClipEvent (enterFrame) {
gotoAndStop(_root.p1 + 1);
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
}
Instance of Symbol 81 MovieClip "objb" in Frame 8
onClipEvent (load) {
this.swapDepths(_y);
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player.hiter) == false) & (_currentframe == 50)) {
gotoAndPlay (53);
}
if ((_currentframe > 12) & (_currentframe <= 52)) {
_root.getwords("This man has a fear of speed. Your goal is to stop troopers from shooting him of his speed racer. You can scythe the troopers or collect the bags to earn sand . Use the Directional buttons to control your horse, and space to scythe.", 5, "Fairy");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
if (hitTest(_root.player.scythehit) & (_currentframe == 1)) {
play();
}
}
Instance of Symbol 600 MovieClip "obja" in Frame 8
onClipEvent (enterFrame) {
timeout++;
if (hitTest(_root.player.scythehit) & (_root.timeofday == 4)) {
_root.getwords("You must rest before you can enter another dream!", 7, "Warning");
}
if (((hitTest(_root.player.scythehit) & (_root.timeofday < 4)) & (_root.p1 <= 2)) & (timeout > 30)) {
_root.levelchange(16, true);
_root.timeofday = _root.timeofday + 1;
}
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (_root.p1 == 3) {
gotoAndStop (2);
if (hitTest(_root.player.hit)) {
_root.getwords("Whoa! I think I craped my pants!", 10, "Horsophoic");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 602 MovieClip "walls" in Frame 8
onClipEvent (enterFrame) {
_root.playerscale(false, 5, 10, 5, 100, 100);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevela" in Frame 8
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 6, 256, 180);
}
onClipEvent (load) {
_visible = false;
}
Frame 9
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 591 MovieClip "back" in Frame 9
onClipEvent (load) {
_root.gemtypeget = 0;
}
Instance of Symbol 595 MovieClip "objc" in Frame 9
onClipEvent (enterFrame) {
gotoAndStop(_root.p2 + 1);
if (_root.shouldobjshow(_x, _y) == 1) {
this.swapDepths(this._y);
}
}
Instance of Symbol 81 MovieClip "objb" in Frame 9
onClipEvent (load) {
this.swapDepths(_y);
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player.hiter) == false) & (_currentframe == 50)) {
gotoAndPlay (53);
}
if ((_currentframe > 12) & (_currentframe < 52)) {
_root.getwords("Here we have a girl with a fear of falling. You must pull her out using your scythe, but be carefull, dont slash her ballon!", 5, "Fairy");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
if (hitTest(_root.player.scythehit) & (_currentframe == 1)) {
play();
}
}
Instance of Symbol 605 MovieClip "obja" in Frame 9
onClipEvent (enterFrame) {
timeout++;
if (hitTest(_root.player.scythehit) & (_root.timeofday == 4)) {
_root.getwords("You must rest before you can enter another dream!", 7, "Warning");
}
if (_root.p2 == 3) {
gotoAndStop (2);
if (hitTest(_root.player.hit)) {
_root.getwords("Thanks for saveing me from my nightmare!", 11, "Simplephobia");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
} else {
gotoAndStop (1);
}
if (((hitTest(_root.player.scythehit) & (_root.timeofday < 4)) & (timeout > 20)) & (_root.p2 <= 2)) {
_root.levelchange(13, true);
_root.timeofday = _root.timeofday + 1;
}
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
}
Instance of Symbol 607 MovieClip "walls" in Frame 9
onClipEvent (enterFrame) {
_root.playerscale(false, 5, 10, 5, 100, 100);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevela" in Frame 9
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 6, 160, 270);
}
onClipEvent (load) {
_visible = false;
}
Frame 10
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 595 MovieClip "objc" in Frame 10
onClipEvent (enterFrame) {
gotoAndStop(_root.p3 + 1);
if (_root.shouldobjshow(_x, _y) == 1) {
this.swapDepths(this._y);
}
}
Instance of Symbol 610 MovieClip "obja" in Frame 10
onClipEvent (enterFrame) {
timeout++;
if (hitTest(_root.player.scythehit) & (_root.timeofday == 4)) {
_root.getwords("You must rest before you can enter another dream!", 7, "Warning");
}
if (((hitTest(_root.player.scythehit) & (_root.timeofday < 4)) & (_root.p3 <= 2)) & (timeout > 20)) {
_root.levelchange(17, true);
_root.timeofday = _root.timeofday + 1;
}
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (_root.p3 == 3) {
gotoAndStop (2);
if (hitTest(_root.player.hit)) {
_root.getwords("Hello there cute pie!", 12, "Swamp girl");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 81 MovieClip "objb" in Frame 10
onClipEvent (load) {
this.swapDepths(_y);
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player.hiter) == false) & (_currentframe == 50)) {
gotoAndPlay (53);
}
if ((_currentframe > 12) & (_currentframe < 52)) {
_root.getwords("Her childhood phobia of her local swap causes this girl to fear what lies Beneath. Slaughter the beast to earn sand, and of course, collect sand bags. Don't get the timed bombs, either.", 5, "Fairy");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
if (hitTest(_root.player.scythehit) & (_currentframe == 1)) {
play();
}
}
Instance of Symbol 612 MovieClip "walls" in Frame 10
onClipEvent (enterFrame) {
_root.playerscale(false, 5, 10, 5, 100, 100);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevela" in Frame 10
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 6, 50, 280);
}
onClipEvent (load) {
_visible = false;
}
Frame 11
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 595 MovieClip "objc" in Frame 11
onClipEvent (enterFrame) {
gotoAndStop(_root.p4 + 1);
if (_root.shouldobjshow(_x, _y) == 1) {
this.swapDepths(this._y);
}
}
Instance of Symbol 81 MovieClip "objb" in Frame 11
onClipEvent (load) {
this.swapDepths(_y);
}
onClipEvent (enterFrame) {
if ((hitTest(_root.player.hiter) == false) & (_currentframe == 50)) {
gotoAndPlay (53);
}
if ((_currentframe > 12) & (_currentframe < 52)) {
_root.getwords("This man has a fear of drowning. You must save him by collecting him after he hits the water, while avoiding the rocks.", 5, "Fairy");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
if (hitTest(_root.player.scythehit) & (_currentframe == 1)) {
play();
}
}
Instance of Symbol 615 MovieClip "obja" in Frame 11
onClipEvent (enterFrame) {
timeout++;
if (hitTest(_root.player.scythehit) & (_root.timeofday == 4)) {
_root.getwords("You must rest before you can enter another dream!", 7, "Warning");
}
if (((hitTest(_root.player.scythehit) & (_root.timeofday < 4)) & (_root.p4 <= 2)) & (timeout > 20)) {
_root.levelchange(12, true);
_root.timeofday = _root.timeofday + 1;
}
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (_root.p4 == 3) {
gotoAndStop (2);
if (hitTest(_root.player.hit)) {
_root.getwords("Hey, thanks mate. I'm sweet as now.", 13, "Water phobic");
i = 0;
} else {
i++;
if (i == 1) {
_root.clearwords();
}
}
} else {
gotoAndStop (1);
}
}
Instance of Symbol 607 MovieClip "walls" in Frame 11
onClipEvent (enterFrame) {
_root.playerscale(false, 5, 10, 5, 100, 100);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevela" in Frame 11
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 6, 501, 310);
}
onClipEvent (load) {
_visible = false;
}
Frame 12
currentsoundplaying = "b";
_root.startsound();
gameaframe = 12;
if (_root.p1 == 0) {
rockspeed = 10;
} else if (_root.p1 == 1) {
rockspeed = 15;
} else {
rockspeed = 20;
}
Instance of Symbol 634 MovieClip "playar" in Frame 12
onClipEvent (enterFrame) {
if (shield._currentframe == 1) {
if ((((((((((hit.hitTest(_root.rocka.hit) | hit.hitTest(_root.rockb.hit)) | hit.hitTest(_root.rockc.hit)) | hit.hitTest(_root.rockd.hit)) | hit.hitTest(_root.rocke.hit)) | hit.hitTest(_root.rockf.hit)) | hit.hitTest(_root.rockg.hit)) | hit.hitTest(_root.rockh.hit)) | hit.hitTest(_root.rocki.hit)) | hit.hitTest(_root.rockj.hit)) | hit.hitTest(_root.rockk.hit)) {
exp._visible = true;
bad = new Sound();
bad.attachSound("bad");
bad.start();
if (_root.p4 == 0) {
_root.sanda--;
}
if (_root.p4 == 1) {
_root.sandb--;
}
if (_root.p4 == 2) {
_root.sandc--;
}
} else {
exp._visible = false;
}
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
speed = (5 * _root.scythe) / 2;
if (Key.isDown(40) & (_y <= 270)) {
_y = (_y + speed);
}
if (Key.isDown(38) & (_y >= 110)) {
_y = (_y - speed);
}
if (Key.isDown(39) & (_x <= 540)) {
_x = (_x + speed);
}
if (Key.isDown(37) & (_x >= 20)) {
_x = (_x - speed);
}
}
Instance of Symbol 638 MovieClip "rocka" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rockb" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rocke" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rockg" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rockc" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rockh" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rockd" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rockf" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rockj" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 638 MovieClip "rocki" in Frame 12
onClipEvent (enterFrame) {
_x = (_x - _root.rockspeed);
if (_x < -10) {
_x = 560;
_y = ((Math.random(1) * 200) + 100);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 660 MovieClip in Frame 12
onClipEvent (enterFrame) {
if ((((((((((hit.hitTest(_root.rocka.hit) | hit.hitTest(_root.rockb.hit)) | hit.hitTest(_root.rockc.hit)) | hit.hitTest(_root.rockd.hit)) | hit.hitTest(_root.rocke.hit)) | hit.hitTest(_root.rockf.hit)) | hit.hitTest(_root.rockg.hit)) | hit.hitTest(_root.rockh.hit)) | hit.hitTest(_root.rocki.hit)) | hit.hitTest(_root.rockj.hit)) | hit.hitTest(_root.rockk.hit)) {
gotoAndPlay (12);
}
if (_root._currentframe == _root.gameaframe) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
speed = 10;
if (_currentframe == 12) {
i++;
if (i >= 5) {
i = 0;
gotoAndPlay (1);
_x = (200 + (Math.random(1) * 200));
_y = (150 + (Math.random(1) * 50));
}
}
if (_currentframe == 11) {
i++;
if (i >= 5) {
i = 0;
gotoAndPlay (1);
_x = (200 + (Math.random(1) * 200));
_y = (150 + (Math.random(1) * 50));
}
}
if (_currentframe == 10) {
_x = (_x - speed);
if (hit.hitTest(_root.playar.hit)) {
if (_root.p4 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + ((_root.scythe * 1) - 1);
}
if (_root.p4 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + ((_root.scythe * 1) - 1);
}
if (_root.p4 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + ((_root.scythe * 1) - 1);
}
gotoAndStop (11);
}
if (_x <= 0) {
gotoAndPlay (1);
_x = (200 + (Math.random(1) * 200));
_y = (150 + (Math.random(1) * 50));
}
}
}
Instance of Symbol 666 MovieClip in Frame 12
onClipEvent (load) {
timer = 1450;
}
onClipEvent (enterFrame) {
timer--;
time = "time left:" add Math.Round(timer / 24);
_root.playa();
if (((_root.sanda <= -1) | (_root.sandb <= -1)) | (_root.sandc <= -1)) {
timer = 0;
_root.sanda = 0;
_root.sandb = 0;
_root.sandc = 0;
_root.levelchange(11, false);
}
if (timer < 0) {
if ((_root.sandc >= 20) & (_root.p4 >= 2)) {
_root.p4 = _root.p4 + 1;
_root.sandc = _root.sandc - 20;
if ((_root.sandc >= 10) & (_root.gem4 == false)) {
_root.gemtypeget = 4;
_root.sandc = _root.sandc - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sandb >= 20) & (_root.p4 == 1)) {
_root.p4 = _root.p4 + 1;
_root.sandb = _root.sandb - 20;
if ((_root.sandb >= 10) & (_root.gem4 == false)) {
_root.gemtypeget = 4;
_root.sandb = _root.sandb - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sanda >= 20) & (_root.p4 == 0)) {
_root.p4 = _root.p4 + 1;
_root.sanda = _root.sanda - 20;
if ((_root.sanda >= 10) & (_root.gem4 == false)) {
_root.gemtypeget = 4;
_root.sanda = _root.sanda - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
timer = 0;
if (_root.gemtypeget == 0) {
_root.levelchange(11, false);
}
}
if (_root.p4 == 0) {
sand = "x" add _root.sanda;
gotoAndStop (1);
}
if (_root.p4 == 1) {
sand = "x" add _root.sandb;
gotoAndStop (2);
}
if (_root.p4 >= 2) {
sand = "x" add _root.sandc;
gotoAndStop (3);
}
}
Frame 13
currentsoundplaying = "b";
_root.startsound();
Instance of Symbol 669 MovieClip in Frame 13
onClipEvent (enterFrame) {
_y = (_y - 5);
if (_y < -50) {
_visible = true;
_y = 2000;
_x = (Math.random() * 550);
}
}
Instance of Symbol 671 MovieClip in Frame 13
onClipEvent (enterFrame) {
_y = (_y - 5);
if (_y < -50) {
_visible = true;
_y = 2000;
_x = (Math.random() * 550);
}
}
Instance of Symbol 676 MovieClip in Frame 13
onClipEvent (enterFrame) {
_y = (_y - 5);
if (_y < -50) {
_visible = true;
_y = 2000;
_x = (Math.random() * 550);
}
}
Instance of Symbol 684 MovieClip "mainaaa" in Frame 13
onClipEvent (enterFrame) {
speed = 20;
decay = 0.9;
if (_x < 30) {
xspeed = xspeed - speed;
}
if (_x > 500) {
xspeed = xspeed + speed;
}
if (_y < 0) {
yspeed = yspeed - speed;
}
if (_y > 350) {
yspeed = yspeed + speed;
}
_x = (_x - ((xspeed = xspeed * decay)));
_y = (_y - ((yspeed = yspeed * decay)));
if (_currentframe == 8) {
sword = new Sound();
sword.attachSound("sword");
sword.start();
}
if (Key.isDown(32)) {
gotoAndPlay (6);
}
if (Key.isDown(37)) {
xspeed = speed;
}
if (Key.isDown(39)) {
xspeed = -speed;
}
if (Key.isDown(38)) {
yspeed = speed;
}
if (Key.isDown(40)) {
yspeed = -speed;
}
}
Instance of Symbol 700 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.p2 == 0) {
_y = (_y - 20);
}
if (_root.p2 == 1) {
_y = (_y - 30);
}
if (_root.p2 >= 2) {
_y = (_y - 35);
}
if ((_currentframe == 16) | (_currentframe == 21)) {
gotoAndStop (1);
_y = 450;
_x = (Math.random() * 550);
}
if (_y < -50) {
gotoAndStop (1);
_y = 450;
_x = (Math.random() * 550);
}
if (hita.hitTest(_root.mainaaa) & (_root.mainaaa._currentframe == 8)) {
gotoAndPlay (2);
if (_root.p2 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + ((_root.scythe * 1) - 1);
}
if (_root.p2 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + ((_root.scythe * 1) - 1);
}
if (_root.p2 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + ((_root.scythe * 1) - 1);
}
}
if (hitb.hitTest(_root.mainaaa) & (_root.mainaaa._currentframe == 8)) {
gotoAndPlay (17);
if (_root.p2 == 0) {
_root.sanda = _root.sanda - 1;
}
if (_root.p2 == 1) {
_root.sandb = _root.sandb - 1;
}
if (_root.p2 >= 2) {
_root.sandc = _root.sandc - 1;
}
}
}
Instance of Symbol 259 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.p2 == 0) {
_y = (_y - 20);
}
if (_root.p2 == 1) {
_y = (_y - 30);
}
if (_root.p2 == 2) {
_y = (_y - 35);
}
if (hitTest(_root.mainaaa) & (_visible == true)) {
arcade7 = new Sound();
arcade7.attachSound("arcade7");
arcade7.start();
_visible = false;
if (_root.p2 == 0) {
_root.sanda++;
}
if (_root.p2 == 1) {
_root.sandb++;
}
if (_root.p2 == 2) {
_root.sandc++;
}
}
if (_y < -50) {
_visible = true;
_y = 600;
_x = (Math.random() * 550);
}
}
Instance of Symbol 702 MovieClip in Frame 13
onClipEvent (enterFrame) {
_y = (_y - 10);
if (hitTest(_root.mainaaa) & (_visible == true)) {
bad = new Sound();
bad.attachSound("bad");
bad.start();
_visible = false;
if (_root.p2 == 0) {
_root.sanda--;
}
if (_root.p2 == 1) {
_root.sandb--;
}
if (_root.p2 == 2) {
_root.sandc--;
}
}
if (_y < -50) {
_visible = true;
_y = 600;
_x = (Math.random() * 550);
}
}
Instance of Symbol 666 MovieClip in Frame 13
onClipEvent (load) {
timer = 1450;
}
onClipEvent (enterFrame) {
timer--;
time = "time left:" add Math.Round(timer / 24);
_root.playa();
if (((_root.sanda <= -1) | (_root.sandb <= -1)) | (_root.sandc <= -1)) {
timer = 0;
_root.sanda = 0;
_root.sandb = 0;
_root.sandc = 0;
_root.levelchange(9, false);
}
if (timer < 0) {
if ((_root.sandc >= 20) & (_root.p2 >= 2)) {
_root.p2 = _root.p2 + 1;
_root.sandc = _root.sandc - 20;
if ((_root.sandc >= 10) & (_root.gem2 == false)) {
_root.gemtypeget = 2;
_root.sandc = _root.sandc - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sandb >= 20) & (_root.p2 == 1)) {
_root.p2 = _root.p2 + 1;
_root.sandb = _root.sandb - 20;
if ((_root.sandb >= 10) & (_root.gem2 == false)) {
_root.gemtypeget = 2;
_root.sandb = _root.sandb - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sanda >= 20) & (_root.p2 == 0)) {
_root.p2 = _root.p2 + 1;
_root.sanda = _root.sanda - 20;
if ((_root.sanda >= 10) & (_root.gem2 == false)) {
_root.gemtypeget = 2;
_root.sanda = _root.sanda - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
timer = 0;
if (_root.gemtypeget == 0) {
_root.levelchange(9, false);
}
}
if (_root.p2 == 0) {
sand = "x" add _root.sanda;
gotoAndStop (1);
}
if (_root.p2 == 1) {
sand = "x" add _root.sandb;
gotoAndStop (2);
}
if (_root.p2 >= 2) {
sand = "x" add _root.sandc;
gotoAndStop (3);
}
}
Frame 14
currentsoundplaying = "b";
_root.startsound();
Instance of Symbol 725 MovieClip "walls" in Frame 14
onClipEvent (enterFrame) {
if (_currentframe == 4) {
dgkdfg++;
if (dgkdfg >= 20) {
dgkdfg = 0;
gotoAndStop (1);
}
}
}
Instance of Symbol 722 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.pla._currentframe == 8) & hitTest(_root.pla)) {
play();
_root.wall.gotoAndStop(4);
}
}
Instance of Symbol 722 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.pla._currentframe == 8) & hitTest(_root.pla)) {
play();
_root.wall.gotoAndStop(2);
}
}
Instance of Symbol 722 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.pla._currentframe == 8) & hitTest(_root.pla)) {
play();
_root.wall.gotoAndStop(3);
}
}
Instance of Symbol 728 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.pla._currentframe == 8) & hitTest(_root.pla)) {
play();
_root.pla._x = 275;
_root.pla._y = 115;
}
}
Instance of Symbol 749 MovieClip "mon" in Frame 14
onClipEvent (load) {
ai = 0;
}
onClipEvent (enterFrame) {
if ((hitTest(_root.pla) & (_root.pla._currentframe >= 6)) & (_currentframe < 12)) {
gotoAndPlay (20);
_root.bsand.a = true;
}
if (_currentframe == 25) {
gotoAndPlay (1);
if (_x > 255) {
_x = 70;
_y = 283;
} else {
_x = 470;
_y = 283;
}
}
if (hitTest(_root.guy) & (_currentframe < 12)) {
bad = new Sound();
bad.attachSound("bad");
bad.start();
ai = 3;
gotoAndPlay (13);
if (_root.p5 == 0) {
_root.sanda = _root.sanda - 1;
}
if (_root.p5 == 1) {
_root.sandb = _root.sandb - 1;
}
if (_root.p5 == 2) {
_root.sandc = _root.sandc - 1;
}
}
if (_root.guy._visible & (_currentframe == 19)) {
ai = 0;
gotoAndPlay (1);
}
speed = 4 + _root.p5;
if (_root.wall.hitTest(_x, _y, true)) {
gravity = 0;
}
if (_root.wall.hitTest(_x, _y, true) == false) {
_y = (_y + gravity);
gravity = gravity + 2;
}
if (_x < 40) {
ai = 0;
}
if (_x > 500) {
ai = 1;
}
if (_root.wall._currentframe == 5) {
if (_x > 160) {
ai = 1;
}
}
if (ai == 0) {
_x = (_x + speed);
_xscale = 77.5;
}
if (ai == 1) {
_x = (_x - speed);
_xscale = -77.5;
}
if (_y > 450) {
_root.bsand.a = true;
if (_x > 255) {
_x = 70;
_y = 283;
} else {
_x = 470;
_y = 283;
}
}
}
Instance of Symbol 757 MovieClip "pla" in Frame 14
onClipEvent (enterFrame) {
if (_y > 400) {
_root.pla._x = 300;
_root.pla._y = 115;
}
if (Key.isDown(37) & (_x > 40)) {
play();
_x = (_x - 10);
_xscale = -100;
}
if (Key.isDown(39) & (_x < 500)) {
play();
_x = (_x + 10);
_xscale = 100;
}
if ((Key.isDown(32) & (_currentframe <= 5)) & (jumping == false)) {
gotoAndPlay (6);
}
if ((_root.walls.hitTest(_x, _y, true) == false) & (_root.wall.hitTest(_x, _y, true) == false)) {
gotoAndStop (1);
}
if (((_root.walls.hitTest(_x, _y, true) == false) | (_root.wall.hitTest(_x, _y, true) == false)) & (jumping == false)) {
_y = (_y + gravity);
gravity++;
}
if (jumping == true) {
_y = (_y - decay);
decay = decay * 0.8;
}
if (_root.walls.hitTest(_x, _y, true) | _root.wall.hitTest(_x, _y, true)) {
gravity = 0;
if (Key.isDown(38) & (jumping == false)) {
jumping = true;
decay = 10;
}
}
if (decay <= 1) {
jumping = false;
}
}
Instance of Symbol 761 MovieClip "guy" in Frame 14
onClipEvent (load) {
ai = 0;
}
onClipEvent (enterFrame) {
speed = 5 + _root.p5;
if ((_root.mon._currentframe > 13) & (_root.mon._currentframe < 20)) {
_visible = false;
}
if (_root.mon._currentframe == 19) {
_visible = true;
if (_x > 255) {
_x = 70;
_y = 283;
} else {
_x = 470;
_y = 283;
}
}
if (_root.wall.hitTest(_x, _y, true)) {
gravity = 0;
}
if (_root.wall.hitTest(_x, _y, true) == false) {
_y = (_y + gravity);
gravity = gravity + 2;
}
if (_root.wall._currentframe == 5) {
if (_x < 230) {
ai = 0;
}
if (_x > 350) {
ai = 1;
}
} else {
if (_x < 40) {
ai = 0;
}
if (_x > 500) {
ai = 1;
}
}
if (ai == 0) {
_x = (_x + speed);
_xscale = 77.5;
}
if (ai == 1) {
_x = (_x - speed);
_xscale = -77.5;
}
if (_y > 450) {
if (_x > 255) {
_x = 70;
_y = 283;
} else {
_x = 470;
_y = 283;
}
}
}
Instance of Symbol 766 MovieClip "bsand" in Frame 14
onClipEvent (enterFrame) {
if (hitTest(_root.pla)) {
arcade3 = new Sound();
arcade3.attachSound("arcade3");
arcade3.start();
if (_root.p5 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + ((_root.scythe * 1) - 1);
}
if (_root.p5 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + ((_root.scythe * 1) - 1);
}
if (_root.p5 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + ((_root.scythe * 1) - 1);
}
kk = 0;
a = false;
_y = -66;
_x = 100;
}
if (a == true) {
kk++;
if (kk == 1) {
_x = (Math.random() * 550);
}
if (_root.walls.hitTest(_x, _y, true)) {
play();
gravity = 0;
a == false;
}
if (_root.walls.hitTest(_x, _y, true) == false) {
_y = (_y + gravity);
gravity = gravity + 2;
}
}
}
Instance of Symbol 769 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.pla._currentframe == 8) & hitTest(_root.pla)) {
play();
_root.walls.gotoAndStop(4);
}
}
Instance of Symbol 722 MovieClip in Frame 14
onClipEvent (enterFrame) {
if ((_root.pla._currentframe == 8) & hitTest(_root.pla)) {
play();
_root.wall.gotoAndStop(1);
}
}
Instance of Symbol 666 MovieClip in Frame 14
onClipEvent (load) {
timer = 1450;
}
onClipEvent (enterFrame) {
timer--;
time = "time left:" add Math.Round(timer / 24);
_root.playa();
if (((_root.sanda <= -1) | (_root.sandb <= -1)) | (_root.sandc <= -1)) {
timer = 0;
_root.sanda = 0;
_root.sandb = 0;
_root.sandc = 0;
_root.levelchange(18, false);
}
if (timer < 0) {
if ((_root.sandc >= 20) & (_root.p5 >= 2)) {
_root.p5 = _root.p5 + 1;
_root.sandc = _root.sandc - 20;
if ((_root.sandc >= 10) & (_root.gem5 == false)) {
_root.gemtypeget = 5;
_root.sandc = _root.sandc - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sandb >= 20) & (_root.p5 == 1)) {
_root.p5 = _root.p5 + 1;
_root.sandb = _root.sandb - 20;
if ((_root.sandb >= 10) & (_root.gem5 == false)) {
_root.gemtypeget = 5;
_root.sandb = _root.sandb - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sanda >= 20) & (_root.p5 == 0)) {
_root.p5 = _root.p5 + 1;
_root.sanda = _root.sanda - 20;
if ((_root.sanda >= 10) & (_root.gem5 == false)) {
_root.gemtypeget = 5;
_root.sanda = _root.sanda - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
timer = 0;
if (_root.gemtypeget == 0) {
_root.levelchange(18, false);
}
}
if (_root.p5 == 0) {
sand = "x" add _root.sanda;
gotoAndStop (1);
}
if (_root.p5 == 1) {
sand = "x" add _root.sandb;
gotoAndStop (2);
}
if (_root.p5 >= 2) {
sand = "x" add _root.sandc;
gotoAndStop (3);
}
}
Frame 15
currentsoundplaying = "b";
_root.startsound();
Instance of Symbol 859 MovieClip "spider" in Frame 15
onClipEvent (load) {
ai = 1;
speed = 2 * (_root.p6 + 1);
chanceofchangeingmind = 200;
mintimeofchangeingmind = 100;
targetname = _root.player;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 15) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if (hitTest(_root.girl.box) & (_root.girl.shiled._currentframe == 1)) {
_root.girl._visible = false;
}
if (ai == 0) {
if (rebondfromwalls() & (aitempdisabled == false)) {
ai = 1;
aitempdisabled = true;
}
ydirection = 0;
if (targetname._y > (_y + 10)) {
ydirection = 1;
}
if (targetname._y < (_y - 10)) {
ydirection = 2;
}
xdirection = 0;
if (targetname._x > (_x + 10)) {
xdirection = 1;
}
if (targetname._x < (_x - 10)) {
xdirection = 2;
}
}
if (ai == 1) {
if (box.hitTest(targetname.scythehit) | (rebondfromwalls() & (aitempdisabled == false))) {
ai = 0;
aitempdisabled = true;
}
ydirection = 0;
if (targetname._y > (_y + 10)) {
ydirection = 2;
}
if (targetname._y < (_y - 10)) {
ydirection = 1;
}
xdirection = 0;
if (targetname._x > (_x + 10)) {
xdirection = 2;
}
if (targetname._x < (_x - 10)) {
xdirection = 1;
}
}
if (ai == 2) {
if (box.hitTest(targetname.scythehit) | (rebondfromwalls() & (aitempdisabled == false))) {
ai = 1;
aitempdisabled = true;
}
gg++;
if (gg > ((Math.random(1) * chanceofchangeingmind) + mintimeofchangeingmind)) {
gg = 0;
ai = 2;
}
if (_root.walls.hitTest(box.getBounds(_root).xMax, _y, true)) {
xdirection = 1;
ydirection = Math.round(Math.random(1) * 3) - 1;
}
if (_root.walls.hitTest(box.getBounds(_root).xMin, _y, true)) {
xdirection = 2;
ydirection = Math.round(Math.random(1) * 3) - 1;
}
if (_root.walls.hitTest(_x, box.getBounds(_root).yMax, true)) {
ydirection = 1;
xdirection = Math.round(Math.random(1) * 3) - 1;
}
if (_root.walls.hitTest(_x, box.getBounds(_root).yMin, true)) {
ydirection = 2;
xdirection = Math.round(Math.random(1) * 3) - 1;
}
if ((ydirection == 0) & (xdirection == 0)) {
ydirection = Math.round(Math.random(1) * 3);
xdirection = Math.round(Math.random(1) * 3);
}
}
if (ai == 3) {
randomstop();
if (_root.ground.hitTest(_x, _y, true)) {
_visible = true;
ai = 0;
}
}
if (box.hitTest(_root.death)) {
bug = new Sound();
bug.attachSound("bug");
bug.start();
ai = 3;
_visible = false;
if (_root.p6 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + ((_root.scythe * 1) - 1);
}
if (_root.p6 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + ((_root.scythe * 1) - 1);
}
if (_root.p6 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + ((_root.scythe * 1) - 1);
}
}
if (ydirection == 2) {
allinvisible();
_y = (_y + speed);
down._visible = 1;
}
if (ydirection == 1) {
allinvisible();
_y = (_y - speed);
up._visible = 1;
}
if (xdirection == 2) {
allinvisible();
_x = (_x + speed);
right._visible = 1;
}
if (xdirection == 1) {
allinvisible();
_x = (_x - speed);
left._visible = 1;
}
if ((ydirection == 1) & (xdirection == 1)) {
allinvisible();
upleft._visible = 1;
}
if ((ydirection == 1) & (xdirection == 2)) {
allinvisible();
upright._visible = 1;
}
if ((ydirection == 2) & (xdirection == 2)) {
allinvisible();
downright._visible = 1;
}
if ((ydirection == 2) & (xdirection == 1)) {
allinvisible();
downleft._visible = 1;
}
if (aitempdisabled == true) {
tempd++;
if (tempd > 10) {
aitempdisabled = false;
tempd = 0;
}
}
}
onClipEvent (load) {
function allinvisible() {
downleft._visible = 0;
downright._visible = 0;
right._visible = 0;
up._visible = 0;
down._visible = 0;
upleft._visible = 0;
upright._visible = 0;
left._visible = 0;
}
function rebondfromwalls() {
if (((_root.walls.hitTest(box.getBounds(_root).xMax, _y, true) | _root.walls.hitTest(box.getBounds(_root).xMin, _y, true)) | _root.walls.hitTest(_x, box.getBounds(_root).yMax, true)) | _root.walls.hitTest(_x, box.getBounds(_root).yMin, true)) {
return(1);
}
return(0);
}
function randomstop() {
_visible = false;
_x = (Math.random() * 550);
_y = (Math.random() * 200);
}
aitempdisabled = false;
}
onClipEvent (mouseDown) {
trace(ai);
}
Instance of Symbol 860 MovieClip in Frame 15
onClipEvent (enterFrame) {
function randomstop() {
_visible = false;
_y = (Math.random() * 400);
_x = (Math.random() * 550);
}
if (_root._currentframe == 15) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if ((hitTest(_root.player.hiter) & (_currentframe == 16)) & (_visible == true)) {
gotoAndStop (1);
_visible = false;
arcade3 = new Sound();
arcade3.attachSound("arcade3");
arcade3.start();
if (_root.p6 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + ((_root.scythe * 1) - 1);
}
if (_root.p6 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + ((_root.scythe * 1) - 1);
}
if (_root.p6 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + ((_root.scythe * 1) - 1);
}
}
i++;
if (i > 60) {
randomstop();
if (_root.ground.hitTest(_x, _y, true)) {
_visible = true;
i = 0;
gotoAndPlay (2);
}
}
}
Instance of Symbol 456 MovieClip "player" in Frame 15
onClipEvent (load) {
function allhide() {
down._visible = false;
up._visible = false;
left._visible = false;
right._visible = false;
upright._visible = false;
upleft._visible = false;
downright._visible = false;
downleft._visible = false;
}
_root.walls._visible = false;
allhide();
down._visible = true;
i = 1;
}
onClipEvent (enterFrame) {
xspeed = 6;
yspeed = 3;
if (((Key.isDown(_root.buttonleft) | Key.isDown(_root.buttonright)) | Key.isDown(_root.buttondown)) | Key.isDown(_root.buttonup)) {
bu = 0;
thought.gotoAndStop(1);
} else {
bu++;
if (bu > 100) {
thought.play();
}
}
_root.playfootstepsound(_x, _y, "carpet");
if (_root._currentframe == 15) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
oldframe = _currentframe;
if (Key.isDown(32) & (_currentframe == 1)) {
gotoAndStop (2);
}
if (_currentframe == 2) {
kk++;
if (kk >= 5) {
gotoAndStop (1);
kk = 0;
}
}
if (_root.walkingdisabled == true) {
left.gotoAndStop(1);
right.gotoAndStop(1);
upright.gotoAndStop(1);
downright.gotoAndStop(1);
upleft.gotoAndStop(1);
downleft.gotoAndStop(1);
down.gotoAndStop(1);
up.gotoAndStop(1);
}
if ((_root.walkingdisabled == false) & (_currentframe != 2)) {
if (Key.isDown(_root.buttonleft)) {
if (Key.isDown(_root.buttonleft)) {
this.left.play();
allhide();
left._visible = true;
i = 7;
}
} else if (_currentframe != 2) {
left.gotoAndStop(1);
}
if (Key.isDown(_root.buttonright)) {
if (Key.isDown(_root.buttonright)) {
allhide();
right.play();
right._visible = true;
i = 3;
}
} else if (_currentframe != 2) {
right.gotoAndStop(1);
}
if (Key.isDown(_root.buttondown)) {
if (Key.isDown(_root.buttondown)) {
down.play();
allhide();
down._visible = true;
i = 5;
}
if (Key.isDown(_root.buttonright)) {
downright.play();
allhide();
downright._visible = true;
i = 4;
}
if (Key.isDown(_root.buttonleft)) {
downleft.play();
allhide();
downleft._visible = true;
i = 6;
}
} else if (_currentframe != 2) {
down.gotoAndStop(1);
downleft.gotoAndStop(1);
downright.gotoAndStop(1);
}
if (Key.isDown(_root.buttonup)) {
if (Key.isDown(_root.buttonup)) {
up.Play();
allhide();
up._visible = true;
i = 1;
}
if (Key.isDown(_root.buttonright)) {
upright.play();
allhide();
upright._visible = true;
i = 2;
}
if (Key.isDown(_root.buttonleft)) {
upleft.play();
allhide();
upleft._visible = true;
i = 8;
}
} else if (_currentframe != 2) {
upright.gotoAndStop(1);
upleft.gotoAndStop(1);
up.gotoAndStop(1);
}
if (Key.isDown(_root.buttonup) & Key.isDown(_root.buttondown)) {
down.stop();
allhide();
down._visible = true;
i = 1;
}
if (Key.isDown(_root.buttonright) & Key.isDown(_root.buttonleft)) {
down.stop();
allhide();
down._visible = true;
i = 1;
}
}
framediff = oldframe - _currentframe;
if (framediff != 0) {
downleft._visible = 0;
downright._visible = 0;
right._visible = 0;
up._visible = 0;
down._visible = 0;
upleft._visible = 0;
upright._visible = 0;
left._visible = 0;
if (i == 8) {
upleft._visible = 1;
}
if (i == 7) {
left._visible = 1;
}
if (i == 6) {
downleft._visible = 1;
}
if (i == 5) {
down._visible = 1;
}
if (i == 4) {
downright._visible = 1;
}
if (i == 3) {
right._visible = 1;
}
if (i == 2) {
upright._visible = 1;
}
if (i == 1) {
up._visible = 1;
}
}
if ((_root.walkingdisabled == false) & (_currentframe != 2)) {
if (_root.walls.hitTest(_x, hiter.getBounds(_root).yMax, true)) {
} else if (Key.isDown(_root.buttondown)) {
this._y = this._y + yspeed;
}
if (_root.walls.hitTest(_x, hiter.getBounds(_root).yMin, true)) {
} else if (Key.isDown(_root.buttonup)) {
this._y = this._y - yspeed;
}
if (_root.walls.hitTest(hiter.getBounds(_root).xMin, _y, true)) {
} else if (Key.isDown(_root.buttonleft)) {
this._x = this._x - xspeed;
}
if (_root.walls.hitTest(hiter.getBounds(_root).xMax, _y, true)) {
} else if (Key.isDown(_root.buttonright)) {
this._x = this._x + xspeed;
}
}
}
Instance of Symbol 903 MovieClip "girl" in Frame 15
onClipEvent (enterFrame) {
function allinvisible() {
up._visible = 0;
downleft._visible = 0;
downright._visible = 0;
right._visible = 0;
down._visible = 0;
upleft._visible = 0;
upright._visible = 0;
left._visible = 0;
}
if (_root._currentframe == 15) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if (_visible == false) {
bad = new Sound();
bad.attachSound("bad");
bad.start();
if (_root.p6 == 0) {
_root.sanda = _root.sanda - 1;
}
if (_root.p6 == 1) {
_root.sandb = _root.sandb - 1;
}
if (_root.p6q == 2) {
_root.sandc = _root.sandc - 1;
}
_visible = true;
_x = 288;
_y = 288;
}
if (box.hitTest(targetname) | _root.walls.hitTest(_x, _y, true)) {
ydirection = Math.round(Math.random(1) * 4) - 1;
xdirection = Math.round(Math.random(1) * 4) - 1;
}
ydirection = 0;
if (targetname._y > (_y + 10)) {
ydirection = 2;
}
if (targetname._y < (_y - 10)) {
ydirection = 1;
}
xdirection = 0;
if (targetname._x > (_x + 10)) {
xdirection = 2;
}
if (targetname._x < (_x - 10)) {
xdirection = 1;
}
if ((ydirection == 0) & (xdirection == 0)) {
up.gotoAndStop(1);
downleft.gotoAndStop(1);
downright.gotoAndStop(1);
right.gotoAndStop(1);
down.gotoAndStop(1);
upleft.gotoAndStop(1);
upright.gotoAndStop(1);
left.gotoAndStop(1);
} else {
up.play();
downleft.play();
downright.play();
right.play();
down.play();
upleft.play();
upright.play();
left.play();
}
if (ydirection == 2) {
allinvisible();
_y = (_y + (speed / 2));
down._visible = true;
}
if (ydirection == 1) {
allinvisible();
_y = (_y - (speed / 2));
up._visible = true;
}
if (xdirection == 2) {
allinvisible();
_x = (_x + speed);
right._visible = true;
}
if (xdirection == 1) {
allinvisible();
_x = (_x - speed);
left._visible = true;
}
if ((ydirection == 1) & (xdirection == 1)) {
allinvisible();
upleft._visible = true;
}
if ((ydirection == 1) & (xdirection == 2)) {
allinvisible();
upright._visible = true;
}
if ((ydirection == 2) & (xdirection == 2)) {
allinvisible();
downright._visible = true;
}
if ((ydirection == 2) & (xdirection == 1)) {
allinvisible();
downleft._visible = true;
}
speed = 4;
chanceofchangeingmind = 100;
mintimeofchangeingmind = 50;
targetname = _root.player;
}
Instance of Symbol 907 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root._currentframe == 15) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 909 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root._currentframe == 15) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 911 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root._currentframe == 15) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 666 MovieClip in Frame 15
onClipEvent (load) {
timer = 1450;
}
onClipEvent (enterFrame) {
timer--;
time = "time left:" add Math.Round(timer / 24);
_root.playa();
if (((_root.sanda <= -1) | (_root.sandb <= -1)) | (_root.sandc <= -1)) {
timer = 0;
_root.sanda = 0;
_root.sandb = 0;
_root.sandc = 0;
_root.levelchange(18, false);
}
if (timer < 0) {
if ((_root.sandc >= 20) & (_root.p6 >= 2)) {
_root.p6 = _root.p6 + 1;
_root.sandc = _root.sandc - 20;
if ((_root.sandc >= 10) & (_root.gem6 == false)) {
_root.gemtypeget = 6;
_root.sandc = _root.sandc - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sandb >= 20) & (_root.p6 == 1)) {
_root.p6 = _root.p6 + 1;
_root.sandb = _root.sandb - 20;
if ((_root.sandb >= 10) & (_root.gem6 == false)) {
_root.gemtypeget = 6;
_root.sandb = _root.sandb - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sanda >= 20) & (_root.p6 == 0)) {
_root.p6 = _root.p6 + 1;
_root.sanda = _root.sanda - 20;
if ((_root.sanda >= 10) & (_root.gem6 == false)) {
_root.gemtypeget = 6;
_root.sanda = _root.sanda - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
timer = 0;
if (_root.gemtypeget == 0) {
_root.levelchange(18, false);
}
}
if (_root.p6 == 0) {
sand = "x" add _root.sanda;
gotoAndStop (1);
}
if (_root.p6 == 1) {
sand = "x" add _root.sandb;
gotoAndStop (2);
}
if (_root.p6 >= 2) {
sand = "x" add _root.sandc;
gotoAndStop (3);
}
}
Frame 16
currentsoundplaying = "b";
_root.startsound();
Instance of Symbol 949 MovieClip "h" in Frame 16
onClipEvent (enterFrame) {
if (_root._currentframe == 16) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
speed = 7 * _root.scythe;
if (Key.isDown(32)) {
s.play();
}
if (Key.isDown(40) & (_y <= 450)) {
_y = (_y + speed);
}
if (Key.isDown(38) & (_y >= 180)) {
_y = (_y - speed);
}
if (Key.isDown(39) & (_x <= 540)) {
_x = (_x + speed);
}
if (Key.isDown(37) & (_x >= 20)) {
_x = (_x - speed);
}
}
Instance of Symbol 766 MovieClip "bsand" in Frame 16
onClipEvent (enterFrame) {
_x = (_x - (10 * (_root.p1 + 1)));
if (_x < -50) {
_x = 1000;
_y = ((Math.random() * 300) + 200);
}
if (hitTest(_root.h.h)) {
_x = 1000;
_y = ((Math.random() * 300) + 200);
arcade3 = new Sound();
arcade3.attachSound("arcade3");
arcade3.start();
if (_root.p1 == 0) {
_root.sanda++;
}
if (_root.p1 == 1) {
_root.sandb++;
}
if (_root.p1 == 2) {
_root.sandc++;
}
}
}
Instance of Symbol 951 MovieClip "bbad" in Frame 16
onClipEvent (enterFrame) {
_x = (_x - (10 * (_root.p1 + 1)));
if (_x < -50) {
_x = 3000;
_y = ((Math.random() * 300) + 200);
}
if (hitTest(_root.h.h)) {
_x = 2000;
_y = ((Math.random() * 300) + 200);
bad = new Sound();
bad.attachSound("bad");
bad.start();
if (_root.p1 == 0) {
_root.sanda--;
}
if (_root.p1 == 1) {
_root.sandb--;
}
if (_root.p1 == 2) {
_root.sandc--;
}
}
}
Instance of Symbol 960 MovieClip "targeta" in Frame 16
onClipEvent (enterFrame) {
speed = 3;
if ((s.hitTest(_root.h.h) & (_root.h.s._currentframe >= 5)) & (_currentframe <= 2)) {
if (shiled._currentframe == 1) {
gotoAndPlay (4);
}
}
if (bbb.hitTest(_root.ll.hhh.lazer)) {
gotoAndPlay (4);
}
if (bbb.hitTest(_root.lll.hhh.lazer)) {
gotoAndPlay (4);
}
if (bbb.hitTest(_root.llll.hhh.lazer)) {
gotoAndPlay (4);
}
if (_currentframe == 5) {
randomnumber = Math.round(Math.random());
if (randomnumber == 1) {
_x = 400;
_y = 600;
} else {
_x = -80;
_y = 200;
}
}
if (_root._currentframe == 16) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if (_root.h._y > _y) {
_y = (_y + speed);
} else if (_root.h._y < (_y - speed)) {
_y = (_y - speed);
}
if (_root.h._x > (_x + 100)) {
_x = (_x + speed);
} else if (_root.h._x < ((_x - speed) + 100)) {
_x = (_x - speed);
}
}
Instance of Symbol 971 MovieClip "ll" in Frame 16
onClipEvent (load) {
removeMovieClip(this);
}
onClipEvent (enterFrame) {
if (_root._currentframe == 8) {
removeMovieClip(this);
}
speed = 5 * ((_root.p1 + 1) / 4);
if ((s.hitTest(_root.h.h) & (_root.h.s._currentframe >= 5)) & (_currentframe <= 2)) {
gotoAndPlay (4);
if (_root.p1 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + (_root.scythe * 1);
}
if (_root.p1 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + (_root.scythe * 1);
}
if (_root.p1 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + (_root.scythe * 1);
}
}
if (_currentframe == 5) {
_y = 540;
_x = -50;
}
if (_root._currentframe == 16) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if ((_y < 300) | (_root.targeta._y < (_y + 100))) {
if (_root.targeta._x > (_x + (speed * 4))) {
_x = (_x + speed);
} else if (_root.targeta._x < (_x - (speed * 4))) {
_x = (_x - speed);
} else if ((_root.targeta._y > (_y - 50)) & (_y > 380)) {
_y = (_y + speed);
} else if ((_root.targeta._y < ((_y - speed) - 100)) | (_y > 380)) {
_y = (_y - speed);
} else {
if (_root.targeta._y < _y) {
_y = (_y + speed);
}
if ((((_y < 380) & (_x > 20)) & (_x < 400)) & (_root.targeta._y < _y)) {
hhh.play();
}
}
} else if (_root.targeta._y > (_y + 100)) {
_y = (_y + speed);
}
}
Instance of Symbol 971 MovieClip "lll" in Frame 16
onClipEvent (load) {
removeMovieClip(this);
}
onClipEvent (enterFrame) {
if (_root._currentframe == 8) {
removeMovieClip(this);
}
speed = 7 * ((_root.p1 + 1) / 4);
if (_root.p1 >= 2) {
if ((s.hitTest(_root.h.h) & (_root.h.s._currentframe >= 5)) & (_currentframe <= 2)) {
gotoAndPlay (4);
if (_root.p1 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + (_root.scythe * 1);
}
if (_root.p1 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + (_root.scythe * 1);
}
if (_root.p1 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + (_root.scythe * 1);
}
}
if (_currentframe == 5) {
_y = 540;
_x = -50;
}
if (_root._currentframe == 16) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if ((_y < 300) | (_root.targeta._y < (_y + 100))) {
if (_root.targeta._x > (_x + (speed * 4))) {
_x = (_x + speed);
} else if (_root.targeta._x < (_x - (speed * 4))) {
_x = (_x - speed);
} else if ((_root.targeta._y > (_y - 50)) & (_y > 380)) {
_y = (_y + speed);
} else if ((_root.targeta._y < ((_y - speed) - 100)) | (_y > 380)) {
_y = (_y - speed);
} else if ((((_y < 380) & (_x > 20)) & (_x < 400)) & (_root.targeta._y > _y)) {
hhh.play();
}
} else if (_root.targeta._y > (_y + 100)) {
_y = (_y + speed);
}
}
}
Instance of Symbol 971 MovieClip "llll" in Frame 16
onClipEvent (load) {
removeMovieClip(this);
}
onClipEvent (enterFrame) {
if (_root._currentframe == 8) {
removeMovieClip(this);
}
speed = 6 * ((_root.p1 + 1) / 4);
if (_root.p1 == 1) {
if ((s.hitTest(_root.h.h) & (_root.h.s._currentframe >= 5)) & (_currentframe <= 2)) {
gotoAndPlay (4);
if (_root.p1 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + (_root.scythe * 1);
}
if (_root.p1 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + (_root.scythe * 1);
}
if (_root.p1 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + (_root.scythe * 1);
}
}
if (_currentframe == 5) {
_y = 540;
_x = -50;
}
if (_root._currentframe == 16) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if ((_y < 300) | (_root.targeta._y < (_y + 100))) {
if (_root.targeta._x > (_x + (speed * 4))) {
_x = (_x + speed);
} else if (_root.targeta._x < (_x - (speed * 4))) {
_x = (_x - speed);
} else if ((_root.targeta._y > (_y - 50)) & (_y > 380)) {
_y = (_y + speed);
} else if ((_root.targeta._y < ((_y - speed) - 100)) | (_y > 380)) {
_y = (_y - speed);
} else if (((_y < 380) & (_x > 20)) & (_x < 400)) {
hhh.play();
}
} else if (_root.targeta._y > (_y + 100)) {
_y = (_y + speed);
}
}
}
Instance of Symbol 101 MovieClip in Frame 16
onClipEvent (load) {
this.swapDepths(1000);
}
Instance of Symbol 666 MovieClip in Frame 16
onClipEvent (load) {
timer = 1200;
}
onClipEvent (enterFrame) {
timer--;
time = "time left:" add Math.Round(timer / 24);
_root.playa();
if (((_root.sanda <= -1) | (_root.sandb <= -1)) | (_root.sandc <= -1)) {
timer = 0;
_root.sanda = 0;
_root.sandb = 0;
_root.sandc = 0;
_root.levelchange(8, false);
}
if (timer < 0) {
if ((_root.sandc >= 20) & (_root.p1 >= 2)) {
_root.p1 = _root.p1 + 1;
_root.sandc = _root.sandc - 20;
if ((_root.sandc >= 10) & (_root.gem1 == false)) {
_root.gemtypeget = 1;
_root.sandc = _root.sandc - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sandb >= 20) & (_root.p1 == 1)) {
_root.p1 = _root.p1 + 1;
_root.sandb = _root.sandb - 20;
if ((_root.sandb >= 10) & (_root.gem1 == false)) {
_root.gemtypeget = 1;
_root.sandb = _root.sandb - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sanda >= 20) & (_root.p1 == 0)) {
_root.p1 = _root.p1 + 1;
_root.sanda = _root.sanda - 20;
if ((_root.sanda >= 10) & (_root.gem1 == false)) {
_root.gemtypeget = 1;
_root.sanda = _root.sanda - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
timer = 0;
if (_root.gemtypeget == 0) {
_root.levelchange(8, false);
}
}
if (_root.p1 == 0) {
sand = "x" add _root.sanda;
gotoAndStop (1);
}
if (_root.p1 == 1) {
sand = "x" add _root.sandb;
gotoAndStop (2);
}
if (_root.p1 >= 2) {
sand = "x" add _root.sandc;
gotoAndStop (3);
}
}
Frame 17
currentsoundplaying = "b";
_root.startsound();
Instance of Symbol 1043 MovieClip in Frame 17
onClipEvent (enterFrame) {
ref.gotoAndStop(_root.main._currentframe);
ref._x = _root.main._x - _x;
ref._y = _root.main._y - _y;
tenti.gotoAndStop(_root.tni._currentframe);
tenti._x = _root.tni._x - _x;
tenti._y = _root.tni._y - _y;
bag.gotoAndStop(_root.bag._currentframe);
bag._x = _root.bag._x - _x;
bag._y = _root.bag._y - _y;
time.gotoAndStop(_root.time._currentframe);
time._x = _root.time._x - _x;
time._y = _root.time._y - _y;
girl._x = _root.girl._x - _x;
girl._y = (_root.girl._y - _y) + 5;
}
Instance of Symbol 1045 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root._currentframe == 17) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
}
Instance of Symbol 1033 MovieClip "bag" in Frame 17
onClipEvent (enterFrame) {
if ((_x != -20) & (_y != 0)) {
b++;
if (hitTest(_root.main.hit) & (_currentframe == 19)) {
arcade7 = new Sound();
arcade7.attachSound("arcade7");
arcade7.start();
if (_root.p3 == 0) {
_root.sanda++;
_root.sanda = _root.sanda + ((_root.scythe * 1) - 1);
}
if (_root.p3 == 1) {
_root.sandb++;
_root.sandb = _root.sandb + ((_root.scythe * 1) - 1);
}
if (_root.p3 == 2) {
_root.sandc++;
_root.sandc = _root.sandc + ((_root.scythe * 1) - 1);
}
b = 50;
}
if (b == 50) {
gotoAndStop (1);
b = 0;
_x = -20;
_y = 0;
i = 0;
}
} else {
i = Math.round(Math.random() * 20);
if (i == 1) {
play();
_x = (Math.random() * 550);
_y = (Math.random() * 400);
}
}
}
Instance of Symbol 1082 MovieClip "main" in Frame 17
onClipEvent (enterFrame) {
hhhhhhhhhh++;
if (hhhhhhhhhh == 1) {
gotoAndStop (1);
}
if (_root.reflection.hitTest(_x, _y, true) & (((Key.isDown(40) | Key.isDown(38)) | Key.isDown(37)) | Key.isDown(39))) {
i++;
if (i == 2) {
_root.sprite3._x = _x;
_root.sprite3._y = _y;
_root.sprite3.play();
}
if (i == 5) {
_root.sprite._x = _x;
_root.sprite._y = _y;
_root.sprite.play();
}
if (i == 7) {
_root.sprite4._x = _x;
_root.sprite4._y = _y;
_root.sprite4.play();
}
if (i >= 10) {
i = 0;
_root.sprite2._x = _x;
_root.sprite2._y = _y;
_root.sprite2.play();
}
}
if (_root._currentframe == 17) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if (h._currentframe >= 2) {
if (((_root.tni._currentframe < 38) & (_root.tni._currentframe > 2)) & hit.hitTest(_root.tni)) {
_root.tni.gotoAndPlay(39);
arcade3 = new Sound();
arcade3.attachSound("arcade3");
arcade3.start();
if (_root.p3 == 0) {
_root.sanda = _root.sanda + (1 * _root.scythe);
}
if (_root.p3 == 1) {
_root.sandb = _root.sandb + (1 * _root.scythe);
}
if (_root.p3 == 2) {
_root.sandc = _root.sandc + (1 * _root.scythe);
}
}
if (hit.hitTest(_root.girl.box)) {
_root.girl._visible = false;
}
}
if (Key.isDown(32)) {
h.play();
}
xspeed = 10;
yspeed = 5;
if (Key.isDown(40) & (_y < 380)) {
_y = (_y + yspeed);
gotoAndStop (2);
}
if (Key.isDown(38) & (_y > 50)) {
_y = (_y - yspeed);
gotoAndStop (3);
}
if (Key.isDown(39) & (_x < 540)) {
_x = (_x + xspeed);
gotoAndStop (4);
}
if (Key.isDown(37) & (_x > 20)) {
_x = (_x - xspeed);
gotoAndStop (1);
}
}
Instance of Symbol 903 MovieClip "girl" in Frame 17
onClipEvent (enterFrame) {
function allinvisible() {
up._visible = 0;
downleft._visible = 0;
downright._visible = 0;
right._visible = 0;
down._visible = 0;
upleft._visible = 0;
upright._visible = 0;
left._visible = 0;
}
if (_root._currentframe == 17) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
if (_visible == false) {
if (_root.p3 == 0) {
_root.sanda = _root.sanda - 1;
}
if (_root.p3 == 1) {
_root.sandb = _root.sandb - 1;
}
if (_root.p3 == 2) {
_root.sandc = _root.sandc - 1;
}
_visible = true;
_x = 600;
_y = 500;
}
if (box.hitTest(targetname)) {
ydirection = Math.round(Math.random(1) * 4) - 1;
xdirection = Math.round(Math.random(1) * 4) - 1;
}
ydirection = 0;
if (targetname._y > (_y + 10)) {
ydirection = 2;
}
if (targetname._y < (_y - 10)) {
ydirection = 1;
}
xdirection = 0;
if (targetname._x > (_x + 10)) {
xdirection = 2;
}
if (targetname._x < (_x - 10)) {
xdirection = 1;
}
if ((ydirection == 0) & (xdirection == 0)) {
up.gotoAndStop(1);
downleft.gotoAndStop(1);
downright.gotoAndStop(1);
right.gotoAndStop(1);
down.gotoAndStop(1);
upleft.gotoAndStop(1);
upright.gotoAndStop(1);
left.gotoAndStop(1);
} else {
up.play();
downleft.play();
downright.play();
right.play();
down.play();
upleft.play();
upright.play();
left.play();
}
if (ydirection == 2) {
allinvisible();
_y = (_y + (speed / 2));
down._visible = true;
}
if (ydirection == 1) {
allinvisible();
_y = (_y - (speed / 2));
up._visible = true;
}
if (xdirection == 2) {
allinvisible();
_x = (_x + speed);
right._visible = true;
}
if (xdirection == 1) {
allinvisible();
_x = (_x - speed);
left._visible = true;
}
if ((ydirection == 1) & (xdirection == 1)) {
allinvisible();
upleft._visible = true;
}
if ((ydirection == 1) & (xdirection == 2)) {
allinvisible();
upright._visible = true;
}
if ((ydirection == 2) & (xdirection == 2)) {
allinvisible();
downright._visible = true;
}
if ((ydirection == 2) & (xdirection == 1)) {
allinvisible();
downleft._visible = true;
}
speed = 5;
chanceofchangeingmind = 100;
mintimeofchangeingmind = 50;
targetname = _root.main;
}
Instance of Symbol 1032 MovieClip "tni" in Frame 17
onClipEvent (enterFrame) {
function randomstop() {
_y = (_root.girl._y + ((Math.random() * 30) - 15));
_x = (_root.girl._x + ((Math.random() * 30) - 15));
}
if (hiter.hitTest(_root.girl) & (_currentframe > 2)) {
if (_root.girl.shiled._currentframe == 1) {
gotoAndPlay (44);
_root.girl._visible = false;
}
}
if (_root._currentframe == 17) {
this.swapDepths(_y);
} else {
removeMovieClip(this);
}
i++;
if (i > 60) {
randomstop();
if (_root.reflection.hitTest(_x, _y, true) & hiter.hitTest(_root.girl)) {
i = 0;
play();
}
}
}
Instance of Symbol 1042 MovieClip "time" in Frame 17
onClipEvent (enterFrame) {
if ((_x != -20) & (_y != 0)) {
if (hitTest(_root.main.hit) & (_currentframe < 16)) {
gotoAndPlay (17);
bad = new Sound();
bad.attachSound("bad");
bad.start();
kk = 0;
if (_root.p3 == 0) {
_root.sanda--;
}
if (_root.p3 == 1) {
_root.sandb--;
}
if (_root.p3 == 2) {
_root.sandc--;
}
}
kk++;
if ((_currentframe == 21) | (kk >= 500)) {
kk = 0;
gotoAndPlay (1);
_x = -20;
_y = 0;
i = 0;
}
} else {
i = Math.round(Math.random() * 10);
if (i == 1) {
_x = (Math.random() * 550);
_y = (Math.random() * 400);
}
}
}
Instance of Symbol 666 MovieClip in Frame 17
onClipEvent (load) {
timer = 1000;
}
onClipEvent (enterFrame) {
timer--;
time = "time left:" add Math.Round(timer / 24);
_root.playa();
if (((_root.sanda <= -1) | (_root.sandb <= -1)) | (_root.sandc <= -1)) {
timer = 0;
_root.sanda = 0;
_root.sandb = 0;
_root.sandc = 0;
_root.levelchange(10, false);
}
if (timer < 0) {
if ((_root.sandc >= 20) & (_root.p3 >= 2)) {
_root.p3 = _root.p3 + 1;
_root.sandc = _root.sandc - 20;
if ((_root.sandc >= 10) & (_root.gem3 == false)) {
_root.gemtypeget = 3;
_root.sandc = _root.sandc - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sandb >= 20) & (_root.p3 == 1)) {
_root.p3 = _root.p3 + 1;
_root.sandb = _root.sandb - 20;
if ((_root.sandb >= 10) & (_root.gem3 == false)) {
_root.gemtypeget = 3;
_root.sandb = _root.sandb - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
if ((_root.sanda >= 20) & (_root.p3 == 0)) {
_root.p3 = _root.p3 + 1;
_root.sanda = _root.sanda - 20;
if ((_root.sanda >= 10) & (_root.gem3 == false)) {
_root.gemtypeget = 3;
_root.sanda = _root.sanda - 10;
_root.levelchange(21, false);
}
hellejua = new Sound();
hellejua.attachSound("hellejua");
hellejua.start();
}
timer = 0;
if (_root.gemtypeget == 0) {
_root.levelchange(10, false);
}
}
if (_root.p3 == 0) {
sand = "x" add _root.sanda;
gotoAndStop (1);
}
if (_root.p3 == 1) {
sand = "x" add _root.sandb;
gotoAndStop (2);
}
if (_root.p3 >= 2) {
sand = "x" add _root.sandc;
gotoAndStop (3);
}
}
Frame 18
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 1084 MovieClip "back" in Frame 18
onClipEvent (load) {
_root.gemtypeget = 0;
}
Instance of Symbol 1086 MovieClip "obja" in Frame 18
onClipEvent (enterFrame) {
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
}
Instance of Symbol 1088 MovieClip "walls" in Frame 18
onClipEvent (enterFrame) {
_root.playerscale(false, 5, 10, 5, 100, 100);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevelc" in Frame 18
onClipEvent (enterFrame) {
timeout++;
if ((_root.p5 <= 2) & (timeout > 10)) {
_root.superhittest(_root.changelevelc, 14, 270, 310);
}
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changeleveld" in Frame 18
onClipEvent (enterFrame) {
timeout++;
if ((_root.p6 <= 2) & (timeout > 20)) {
_root.superhittest(_root.changeleveld, 15, 100, 390);
}
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 99 MovieClip "changelevela" in Frame 18
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 6, 187, 360);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 101 MovieClip in Frame 18
onClipEvent (load) {
this.swapDepths(1000);
}
Instance of Symbol 106 MovieClip "slude" in Frame 18
onClipEvent (load) {
_alpha = 100;
if (_root.screeneffectb == 0) {
_root.slude.swapDepths(1000);
_alpha = 75;
this._x = 0;
this._y = 400;
gotoAndStop (1);
}
if (_root.screeneffectb == 1) {
this._x = 0;
this._y = 400;
play();
}
if (_root.screeneffectb == 3) {
gotoAndStop (5);
}
}
onClipEvent (enterFrame) {
_root.slude.swapDepths(_y + 200);
if ((_root.screeneffectb == 0) & (_root.screenclose == false)) {
_alpha = (_alpha - 25);
if (_alpha < 1) {
_alpha = 100;
gotoAndStop (5);
}
}
if (_root.screenclose == true) {
gotoAndStop (1);
_alpha = (_alpha + 2);
_root.walkingdisabled = true;
if (_alpha >= 100) {
_root.timeofday = 1;
_root.obja.i = 1;
_root.walkingdisabled = false;
_alpha = 100;
_root.screenclose = false;
}
}
}
Instance of Symbol 312 MovieClip "main" in Frame 18
onClipEvent (load) {
_root.main.soundnamea = _root.soundfilea;
_root.main.soundnameb = _root.soundfileb;
_root.main.soundnamec = _root.soundfilec;
_root.main.soundnamed = _root.soundfiled;
_root.main.soundnamee = _root.soundfilee;
_root.main.soundnamef = _root.soundfilef;
}
onClipEvent (enterFrame) {
if ((image.image._currentframe != 1) & (image._currentframe == 1)) {
image.play();
}
_root.playa();
if (_root.keya == true) {
a1._visible = true;
} else {
a1._visible = false;
}
if (_root.keyb == true) {
a2._visible = true;
} else {
a2._visible = false;
}
if (_root.keyc == true) {
a3._visible = true;
} else {
a3._visible = false;
}
if (_root.keyd == true) {
a4._visible = true;
} else {
a4._visible = false;
}
if (_root.keye == true) {
a5._visible = true;
} else {
a5._visible = false;
}
if (_root.keyf == true) {
a6._visible = true;
} else {
a6._visible = false;
}
if (_root.keyg == true) {
a7._visible = true;
} else {
a7._visible = false;
}
if (_root.keyh == true) {
a8._visible = true;
} else {
a8._visible = false;
}
if (_root.keyi == true) {
a9._visible = true;
} else {
a9._visible = false;
}
if (_root.keyj == true) {
a10._visible = true;
} else {
a10._visible = false;
}
if (_root.keyk == true) {
a11._visible = true;
} else {
a11._visible = false;
}
if (_root.keyl == true) {
a12._visible = true;
} else {
a12._visible = false;
}
if (_root._currentframe <= 3) {
removeMovieClip(this);
} else {
this.swapDepths(2000);
}
if (_root.bubblewords == "") {
if (_root._ymouse > 270) {
buttons.gotoAndStop(6);
}
if (_root._ymouse > 369) {
buttons.gotoAndStop(2);
} else {
buttons.gotoAndStop(1);
}
if (Key.isDown(73)) {
gotoAndStop (2);
}
if (Key.isDown(79)) {
gotoAndStop (3);
}
if (Key.isDown(83) | Key.isDown(85)) {
gotoAndStop (4);
}
if (Key.isDown(80)) {
gotoAndStop (5);
}
if (Key.isDown(89)) {
gotoAndStop (7);
}
if (hitTest(_root.player._x, _root.player._y, false) & (_currentframe == 1)) {
gotoAndStop (7);
}
if (((Key.isDown(_root.buttonleft) | Key.isDown(_root.buttonright)) | Key.isDown(_root.buttondown)) | (Key.isDown(_root.buttonup) & (_currentframe != 1))) {
gotoAndStop (7);
}
}
}
Instance of Symbol 456 MovieClip "player" in Frame 18
onClipEvent (load) {
function allhide() {
down._visible = false;
up._visible = false;
left._visible = false;
right._visible = false;
upright._visible = false;
upleft._visible = false;
downright._visible = false;
downleft._visible = false;
}
_y = _root.mainplayersquarey;
_x = _root.mainplayersquarex;
gotoAndStop(_root.currantdress);
_root.walls._visible = false;
allhide();
down._visible = true;
i = 1;
}
onClipEvent (enterFrame) {
if (((Key.isDown(_root.buttonleft) | Key.isDown(_root.buttonright)) | Key.isDown(_root.buttondown)) | Key.isDown(_root.buttonup)) {
bu = 0;
thought.gotoAndStop(1);
} else {
bu++;
if (bu > 100) {
thought.play();
}
}
_root.playfootstepsound(_x, _y, "carpet");
this.swapdepths(_y);
oldframe = _currentframe;
if ((Key.isDown(32) & (_currentframe == 1)) & (_root.bubblewords == "")) {
gotoAndStop (2);
}
if (_currentframe == 2) {
kk++;
if (kk >= 5) {
gotoAndStop (1);
kk = 0;
}
}
if (_root.walkingdisabled == true) {
left.gotoAndStop(1);
right.gotoAndStop(1);
upright.gotoAndStop(1);
downright.gotoAndStop(1);
upleft.gotoAndStop(1);
downleft.gotoAndStop(1);
down.gotoAndStop(1);
up.gotoAndStop(1);
}
if ((_root.walkingdisabled == false) & (_currentframe != 2)) {
if (Key.isDown(_root.buttonleft)) {
if (Key.isDown(_root.buttonleft)) {
this.left.play();
allhide();
left._visible = true;
i = 7;
}
} else if (_currentframe != 2) {
left.gotoAndStop(1);
}
if (Key.isDown(_root.buttonright)) {
if (Key.isDown(_root.buttonright)) {
allhide();
right.play();
right._visible = true;
i = 3;
}
} else if (_currentframe != 2) {
right.gotoAndStop(1);
}
if (Key.isDown(_root.buttondown)) {
if (Key.isDown(_root.buttondown)) {
down.play();
allhide();
down._visible = true;
i = 5;
}
if (Key.isDown(_root.buttonright)) {
downright.play();
allhide();
downright._visible = true;
i = 4;
}
if (Key.isDown(_root.buttonleft)) {
downleft.play();
allhide();
downleft._visible = true;
i = 6;
}
} else if (_currentframe != 2) {
down.gotoAndStop(1);
downleft.gotoAndStop(1);
downright.gotoAndStop(1);
}
if (Key.isDown(_root.buttonup)) {
if (Key.isDown(_root.buttonup)) {
up.Play();
allhide();
up._visible = true;
i = 1;
}
if (Key.isDown(_root.buttonright)) {
upright.play();
allhide();
upright._visible = true;
i = 2;
}
if (Key.isDown(_root.buttonleft)) {
upleft.play();
allhide();
upleft._visible = true;
i = 8;
}
} else if (_currentframe != 2) {
upright.gotoAndStop(1);
upleft.gotoAndStop(1);
up.gotoAndStop(1);
}
if (Key.isDown(_root.buttonup) & Key.isDown(_root.buttondown)) {
down.stop();
allhide();
down._visible = true;
i = 1;
}
if (Key.isDown(_root.buttonright) & Key.isDown(_root.buttonleft)) {
down.stop();
allhide();
down._visible = true;
i = 1;
}
}
framediff = oldframe - _currentframe;
if (framediff != 0) {
downleft._visible = 0;
downright._visible = 0;
right._visible = 0;
up._visible = 0;
down._visible = 0;
upleft._visible = 0;
upright._visible = 0;
left._visible = 0;
if (i == 8) {
upleft._visible = 1;
}
if (i == 7) {
left._visible = 1;
}
if (i == 6) {
downleft._visible = 1;
}
if (i == 5) {
down._visible = 1;
}
if (i == 4) {
downright._visible = 1;
}
if (i == 3) {
right._visible = 1;
}
if (i == 2) {
upright._visible = 1;
}
if (i == 1) {
up._visible = 1;
}
}
if ((_root.walkingdisabled == false) & (_currentframe != 2)) {
if (_root.walls.hitTest(_x, hiter.getBounds(_root).yMax, true)) {
} else if (Key.isDown(_root.buttondown)) {
this._y = this._y + yspeed;
}
if (_root.walls.hitTest(_x, hiter.getBounds(_root).yMin, true)) {
} else if (Key.isDown(_root.buttonup)) {
this._y = this._y - yspeed;
}
if (_root.walls.hitTest(hiter.getBounds(_root).xMin, _y, true)) {
} else if (Key.isDown(_root.buttonleft)) {
this._x = this._x - xspeed;
}
if (_root.walls.hitTest(hiter.getBounds(_root).xMax, _y, true)) {
} else if (Key.isDown(_root.buttonright)) {
this._x = this._x + xspeed;
}
}
}
Instance of Symbol 463 MovieClip "clock" in Frame 18
onClipEvent (enterFrame) {
clock.gotoAndStop(_root.timeofday);
if (_root.timeofday >= 5) {
_root.timeofday = 4;
}
if ((_root._currentframe >= 3) & (_root._currentframe <= 11)) {
this.swapDepths(_y + 1000);
} else {
removeMovieClip(this);
}
}
Frame 19
currentsoundplaying = "a";
_root.startsound();
Instance of Symbol 1094 MovieClip "back" in Frame 19
onClipEvent (load) {
gotoAndStop(_root.timeofday);
}
Instance of Symbol 1130 MovieClip "obja" in Frame 19
onClipEvent (enterFrame) {
if (_root.shouldobjshow(_x, _y)) {
this.swapDepths(this._y);
}
if (hitTest(_root.player.hit) == false) {
b++;
if (b == 5) {
_root.clearwords();
}
}
if (hitTest(_root.player.scythehit)) {
_root.getwords("What do you wish to sell?", 2, "Devil guy");
b = 1;
i = 1;
}
if (hitTest(_root.player.hiter) & (i == 1)) {
w._visible = true;
} else {
w._visible = false;
}
}
Instance of Symbol 1132 MovieClip "walls" in Frame 19
onClipEvent (enterFrame) {
_root.playerscale(true, 180, 20);
}
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 589 MovieClip "changelevela" in Frame 19
onClipEvent (enterFrame) {
_root.superhittest(_root.changelevela, 5, 184, 220);
}
onClipEvent (load) {
_visible = false;
}
Frame 20
stop();
Frame 21
_root.pos = 0;
currentsoundplaying = "c";
startsound();
Instance of Symbol 280 MovieClip in Frame 21
onClipEvent (enterFrame) {
_visible = false;
if (_root.gem7 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Frame 21
onClipEvent (enterFrame) {
_visible = false;
if (_root.gem1 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Frame 21
onClipEvent (enterFrame) {
_visible = false;
if (_root.gem5 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Frame 21
onClipEvent (enterFrame) {
_visible = false;
if (_root.gem3 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Frame 21
onClipEvent (enterFrame) {
_visible = false;
if (_root.gem6 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Frame 21
onClipEvent (enterFrame) {
_visible = false;
if (_root.gem4 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Frame 21
onClipEvent (enterFrame) {
_visible = false;
if (_root.gem2 == true) {
_visible = true;
}
}
Frame 22
_root.pos = 0;
currentsoundplaying = "c";
startsound();
Instance of Symbol 1417 MovieClip in Frame 22
onClipEvent (load) {
_root.remove3dobjects();
}
Frame 23
stop();
Symbol 10 Button
on (release) {
_root.gotoAndStop(20);
}
Symbol 11 Button
on (release) {
getURL ("http://lila-atherley.com/", _blank);
}
Symbol 14 Button
on (release) {
getURL ("http://www.tcartoon.com", _blank);
}
Symbol 17 MovieClip Frame 1
stop();
Symbol 18 Button
on (release) {
gotoAndStop (2);
}
Symbol 20 Button
on (release) {
gotoAndPlay (1);
}
Symbol 21 Button
on (release) {
_root.gotoAndStop(12);
}
Symbol 23 Button
on (release) {
_root.gotoAndStop(13);
}
Symbol 24 Button
on (release) {
_root.gotoAndStop(14);
}
Symbol 25 Button
on (release) {
_root.gotoAndStop(15);
}
Symbol 26 Button
on (release) {
_root.gotoAndStop(16);
}
Symbol 31 Button
on (release) {
_root.gotoAndStop(17);
}
Symbol 33 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 3
gotoAndPlay (1);
Instance of Symbol 37 MovieClip in Symbol 46 MovieClip Frame 6
onClipEvent (enterFrame) {
play();
}
Symbol 46 MovieClip Frame 8
stop();
Symbol 49 MovieClip Frame 1
fscommand ("showmenu", "False");
Stage.showMenu = false;
_root.per = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.kbsec = Math.round(kBytesSec) add " kilobytes p/sec";
_root.bar.bar._xscale = _root.per;
Math.round(per);
mess = "waiting time: ";
_root.rotater._rotation = _root.rotater._rotation + (_root.per / 1.5);
if (_root.per == 100) {
_root.pushplay._visible = true;
_root.kbsec = "finished, click play";
} else {
_root.pushplay._visible = false;
}
kBytesLoaded = _root.getBytesLoaded() / 1024;
kBytesTotal = _root.getBytesTotal() / 1024;
kBytesRemaining = kBytesTotal - kBytesLoaded;
kBytesSec = kBytesLoaded / (getTimer() / 1000);
timeRemaininga = Math.round(kBytesRemaining / kBytesSec);
if (timeRemaininga < 61) {
_root.timeRemaining = (mess add timeRemaininga) add " second/s";
}
if ((timeRemaininga > 60) && (timeRemaininga < 3601)) {
_root.timeRemaining = (mess add Math.round(timeRemaininga / 60)) add " minute/s";
}
if (timeRemaininga > 3600) {
_root.timeRemaining = (mess add Math.round(timeRemaininga / 3600)) add " hour/s";
}
if (timeRemaininga > 10000) {
_root.timeRemaining = "waiting time too big. dwonload from www.Tcartoon.com";
}
Symbol 49 MovieClip Frame 2
gotoAndPlay (1);
Symbol 63 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 51
gotoAndPlay (13);
Symbol 81 MovieClip Frame 53
play();
Symbol 89 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.mainbar.options._currentframe > 1) {
stop();
o.stop();
} else {
play();
o.play();
}
};
Symbol 97 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 5
stop();
Symbol 110 MovieClip Frame 1
function reset() {
tx.scroll = 1;
totalLines = tx.bottomScroll - tx.scroll;
}
function update() {
if (!foreground.dragando) {
if (tx.maxscroll > 1) {
totalLines = tx.bottomScroll - tx.scroll;
_alpha = 100;
if (tx.scroll > tx.maxscroll) {
tx.scroll = tx.maxscroll;
}
foreground._height = rot(tx.maxscroll + totalLines, totalLines + 1, background._height);
foreground._y = rot(tx.maxscroll - 1, tx.scroll - 1, background._height - foreground._height);
foreground.onRollOver = (background.onRollover = function () {
});
foreground.useHandCursor = useHand;
background.useHandCursor = useHand;
} else {
_alpha = disAlpha;
foreground._y = 0;
foreground._height = background._height;
delete foreground.onRollover;
delete background.onRollover;
foreground.useHandCursor = false;
background.useHandCursor = false;
}
}
}
rot = function (a, b, x) {
return((x * b) / a);
};
foreground.onLoad = function () {
this.dragando = false;
this.offset = 0;
};
foreground.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
this.dragando = true;
this.offset = this._y - _parent._ymouse;
}
};
foreground.onMouseUp = function () {
this.dragando = false;
};
foreground.onMouseMove = function () {
if (this.dragando) {
this._y = _parent._ymouse + this.offset;
if (this._y < 0) {
this._y = 0;
}
if ((this._y + this._height) > this._parent.background._height) {
this._y = this._parent.background._height - this._height;
}
tx.scroll = math.round(rot(this._parent.background._height, this._y, tx.maxScroll + totalLines)) + 1;
}
};
background.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, false) && (!this._parent.foreground.hitTest(_root._xmouse, _root._ymouse, false))) {
if (this._parent._ymouse < this._parent.foreground._y) {
this.contador = 0;
this.onEnterFrame = function () {
if ((this.contador % 5) == 0) {
tx.scroll = tx.scroll - totalLines;
}
this.contador++;
if (this._parent._ymouse >= this._parent.foreground._y) {
delete this.onEnterFrame;
}
};
} else if (this._parent._ymouse > (this._parent.foreground._y + this._parent.foreground._height)) {
this.contador = 0;
this.onEnterFrame = function () {
if ((this.contador % 5) == 0) {
tx.scroll = tx.scroll + totalLines;
}
this.contador++;
if (this._parent._ymouse <= (this._parent.foreground._y + this._parent.foreground._height)) {
delete this.onEnterFrame;
}
};
}
}
};
background.onMouseUp = function () {
delete this.onEnterFrame;
};
this.onEnterFrame = function () {
var mx = tx._parent._xmouse;
var my = tx._parent._ymouse;
if ((((mx >= tx._x) && (mx <= (tx._x + tx._width))) && (my >= tx._y)) && (my <= (tx._y + tx._height))) {
ticksPerLine = 60;
if ((_level0.__wheelDelta + 0) != 0) {
tx.scroll = tx.scroll - (_level0.__wheelDelta / ticksPerLine);
_level0.__wheelDelta = 0;
}
}
};
tx = _parent[textfield_name];
background._height = this._height;
this._yscale = 100;
clr = new Color(foreground);
clr.setRGB(fgColor);
foreground._alpha = fgAlpha;
clr = new Color(background);
clr.setRGB(bgColor);
background._alpha = bgAlpha;
delete clr;
tx.reset = reset;
tx.reset();
tx.onChanged = (tx.onScroller = update);
tx.onChanged();
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
play();
Symbol 127 MovieClip Frame 9
gotoAndPlay (8);
Symbol 137 Button
on (release) {
if ((_parent._currentframe == 2) & (i == 1)) {
i = 0;
_parent.gotoAndStop(6);
}
_parent.gotoAndStop(2);
i++;
}
Symbol 139 Button
on (release) {
if ((_parent._currentframe == 3) & (i == 1)) {
i = 0;
_parent.gotoAndStop(6);
}
_parent.gotoAndStop(3);
i++;
}
Symbol 141 Button
on (release) {
if ((_parent._currentframe == 4) & (i == 1)) {
i = 0;
_parent.gotoAndStop(6);
}
_parent.gotoAndStop(4);
i++;
}
Symbol 144 Button
on (release) {
if ((_parent._currentframe == 5) & (i == 1)) {
i = 0;
_parent.gotoAndStop(6);
}
_parent.gotoAndStop(5);
i++;
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 161 Button
on (release) {
_root.selecetitema = 1;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
on (rollOver) {
_root.bubblewords = ("Bronzesand:\rThe least valuable sand at only $1 per piece. You get this sand by competing the first level of someones dream. You have " add _root.sanda) add " pieces of bronze sand.";
if (_root.sanda == 0) {
_root.bubblewords = "Bronzesand:\rThe least valuable sand at only $1 per piece. You get this sand by competing the first level of someones dream.. You need to get some, as you have none.";
}
}
on (rollOut) {
_root.clearwords();
}
Symbol 162 Button
on (release) {
_root.selecetitema = 2;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
on (rollOver) {
_root.bubblewords = ("Silversand:\rTwice as valuable as bronze sand, it's worth $2 per piece. You have " add _root.sandb) add " pieces of silver sand.";
if (_root.sandb == 0) {
_root.bubblewords = "Silversand:\rTwice as valuable as bronze sand, it's worth $2 per piece. You don't have any silversand. To get some enter a persons dream at the second level.";
}
}
on (rollOut) {
_root.clearwords();
}
Symbol 163 Button
on (release) {
_root.selecetitema = 3;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
on (rollOver) {
_root.bubblewords = ("Goldsand:\rThe most valuable of the sands, it is worth $3 per piece. You have " add _root.sandc) add " pieces of gold sand.";
if (_root.sandc == 0) {
_root.bubblewords = "Goldsand:\rThe most valuable of the sands, it is worth $3 per piece. It's also the hardest to get. Its most valuable because you can only get it just before your host wakes up from its dream.";
}
}
on (rollOut) {
_root.clearwords();
}
Symbol 164 Button
on (release) {
_root.selecetitema = 4;
_root.scythe = 1;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
on (rollOver) {
_root.bubblewords = "Titanium scythe:\rYour basic scythe. It's the one your father gave to you, and is the oldest scythe in existence. Has very little power.";
if (_root.scythe == 1) {
_root.bubblewords = "Titanium scythe:\rYour basic scythe. It's the one your father gave to you, and is the oldest scythe in existence. Has very little power.You are using the Titanium scythe";
}
}
on (rollOut) {
_root.clearwords();
}
Symbol 165 Button
on (release) {
_root.selecetitema = 5;
_root.scythe = 2;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
on (rollOver) {
_root.bubblewords = "Achromatic scythe:\rThis scythe will double your earnings. One of the better scythes, it is very light.";
if (_root.scythe == 2) {
_root.bubblewords = "Achromatic scythe:\rThis scythe will double your earnings. One of the better scythes, it is very light. You are now carrying the achromatic scythe.";
}
}
on (rollOut) {
_root.clearwords();
}
Symbol 166 Button
on (release) {
_root.selecetitema = 6;
_root.scythe = 3;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
on (rollOver) {
_root.bubblewords = "Chromatic scythe:\rThe best scythe you can get, it will tripple the sand you earn.";
if (_root.scythe == 3) {
_root.bubblewords = "Chromatic scythe:\rThe best scythe you can get, it will tripple the sand you earn.\rYou are carring the chromatic scythe";
}
}
on (rollOut) {
_root.clearwords();
}
Symbol 167 Button
on (release) {
_root.selecetitema = 7;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
on (rollOver) {
_root.bubblewords = "The ForceSheild can be cast in game. Press 'F' to activate, protecting you from enemys. ";
}
on (rollOut) {
_root.clearwords();
}
Symbol 168 Button
on (release) {
_root.selecetitema = 8;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
on (rollOver) {
if (_root._currentframe == 8) {
_root.bubblewords = "In this dream it helps to ride at the top of the screen. Move back and forth to avoid being shot, and when you see a trooper, then go in for the kill. It would be best getting this dream over and done with.";
} else if (_root._currentframe == 9) {
_root.bubblewords = "Hold down up to stay away from the bombs that may come at you. Only tap the left and right buttons, and when the girl comes near, hammer the space button. You cannot use your shield.";
} else if (_root._currentframe == 10) {
_root.bubblewords = "The islands are the safe havens, but to get maximum sand, all you have to do is hover left and right constantly over the water. The monster can't catch the girl and you can scythe at will. It is best when you reach gold level to get only 19 pieces of sand, and sell it.";
} else if (_root._currentframe == 11) {
_root.bubblewords = "Get as left as you can, then when the rocks pass, don't aim for the drowning man, aim for the gap in the rocks. This will allow you to choose the time in which you can get the sand.";
} else if (_root._currentframe == 18) {
_root.bubblewords = "These levels can only be opened once you have a gem. You can get more gems and gold. You must out smart both the monster and the spider. ";
} else {
_root.bubblewords = "To use this book, walk into the Dream Room you want to know about.";
}
}
on (rollOut) {
_root.clearwords();
}
Symbol 169 Button
on (release) {
_root.selecetitema = 9;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
Symbol 170 Button
on (release) {
_root.selecetitema = 10;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
Symbol 171 Button
on (release) {
_root.selecetitema = 11;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
Symbol 172 Button
on (release) {
_root.selecetitema = 12;
}
on (press, releaseOutside) {
_root.selecetitema = 0;
}
Symbol 178 Button
on (release) {
gotoAndStop (2);
}
Symbol 180 Button
on (release) {
saveGame();
}
Symbol 182 Button
on (release) {
loadGame();
}
Symbol 184 Button
on (release) {
gotoAndPlay (3);
}
Symbol 186 Button
on (release) {
gotoAndStop (8);
}
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
_x = _root.mastervol;
}
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse)) {
i = 1;
}
}
onClipEvent (mouseUp) {
i = 0;
}
onClipEvent (enterFrame) {
_root.mastervol = Math.round(_x);
_root.mysound.setVolume(_root.mastervol);
if (i == 1) {
_x = (_root._xmouse - 302);
if (_x > 100) {
_x = 100;
}
if (_x < 0) {
_x = 0;
}
}
}
Symbol 195 Button
on (release) {
i++;
if ((i == 1) & (_root.soundoff == false)) {
_root.soundoff = true;
_root.playing = false;
_root.pause();
stopAllSounds();
}
if ((i == 2) & (_root.soundoff == true)) {
_root.soundoff = false;
_root.playing = true;
_root.playa();
_root.loadsound();
_root.startsound();
i = 0;
}
}
Symbol 202 Button
on (release) {
_quality = "low";
}
on (rollOver) {
_root.inventory.help.gotoAndStop(9);
}
Symbol 204 Button
on (release) {
_quality = "medium";
}
on (rollOver) {
_root.inventory.help.gotoAndStop(10);
}
Symbol 206 Button
on (release) {
_quality = "high";
}
on (rollOver) {
_root.inventory.help.gotoAndStop(11);
}
Symbol 208 Button
on (release) {
_quality = "best";
}
on (rollOver) {
_root.inventory.help.gotoAndStop(11);
}
Symbol 210 Button
on (release) {
gotoAndStop (1);
}
Symbol 213 Button
on (release) {
_root.gotoAndPlay(1);
_root.remove3dobjects();
}
Symbol 215 Button
on (release) {
_root.mainbar.options.play();
gotoAndPlay (1);
}
Symbol 221 Button
on (release) {
decay++;
if (decay > 0) {
if (_root.screeneffectb == 0) {
_root.screeneffectb = 1;
}
}
if (decay > 1) {
decay = 0;
if (_root.screeneffectb == 1) {
_root.screeneffectb = 0;
}
}
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 226 Button
on (release) {
decay++;
if (decay > 0) {
if (_root.screeneffectb <= 2) {
_root.screeneffectb = 3;
}
}
if (decay > 1) {
decay = 0;
if (_root.screeneffectb == 3) {
_root.screeneffectb = 0;
}
}
}
Symbol 231 Button
on (release) {
decay++;
if (decay > 0) {
if (_root.drawk == false) {
_root.drawk = true;
}
}
if (decay > 1) {
decay = 0;
if (_root.drawk == true) {
_root.drawk = false;
}
}
}
Symbol 232 MovieClip Frame 1
function saveGame() {
if (myLSO.data.myObj == "") {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
myObj = {};
myObj.objArray = new Array(80);
myObj.objArray[0] = _root.player._y;
myObj.objArray[1] = _root.player._x;
myObj.objArray[2] = _root._currentframe;
myObj.objArray[3] = _root.restyposofplayer;
myObj.objArray[4] = _root.restxposofplayer;
myObj.objArray[5] = _root.keya;
myObj.objArray[6] = _root.keyb;
myObj.objArray[7] = _root.keyc;
myObj.objArray[8] = _root.keyd;
myObj.objArray[9] = _root.keye;
myObj.objArray[10] = _root.keyf;
myObj.objArray[11] = _root.keyg;
myObj.objArray[12] = _root.keyh;
myObj.objArray[13] = _root.keyi;
myObj.objArray[14] = _root.keyj;
myObj.objArray[15] = _root.p1;
myObj.objArray[16] = _root.p2;
myObj.objArray[17] = _root.p3;
myObj.objArray[18] = _root.p4;
myObj.objArray[19] = _root.p5;
myObj.objArray[20] = _root.p6;
myObj.objArray[21] = _root.p7;
myObj.objArray[22] = _root.p8;
myObj.objArray[23] = _root.aiwalka;
myObj.objArray[24] = _root.aiwalkb;
myObj.objArray[25] = _root.aiwalkc;
myObj.objArray[26] = _root.aiwalkd;
myObj.objArray[27] = _root.aiwalke;
myObj.objArray[28] = _root.aiwalkf;
myObj.objArray[29] = _root.aiwalkg;
myObj.objArray[30] = _root.aiwalkh;
myObj.objArray[31] = _root.aiwalki;
myObj.objArray[32] = _root.aiwalkj;
myObj.objArray[33] = _root.sand;
myObj.objArray[34] = _root.scythe;
myObj.objArray[35] = _root.timeofday;
myObj.objArray[36] = _root.sanda;
myObj.objArray[37] = _root.sandb;
myObj.objArray[38] = _root.sandc;
myObj.objArray[39] = _root.relationa;
myObj.objArray[40] = _root.relationb;
myObj.objArray[41] = _root.relationc;
myObj.objArray[42] = _root.relationd;
myObj.objArray[43] = _root.relatione;
myObj.objArray[44] = _root.knowledge;
myObj.objArray[45] = _root.accuracy;
myObj.objArray[46] = _root.health;
myObj.objArray[47] = _root.soundfilea;
myObj.objArray[48] = _root.soundfileb;
myObj.objArray[49] = _root.soundfilec;
myObj.objArray[50] = _root.soundfiled;
myObj.objArray[51] = _root.soundfilee;
myObj.objArray[52] = _root.soundfilef;
myObj.objArray[53] = _root.spacex;
myObj.objArray[54] = _root.spacey;
myObj.objArray[55] = _root.dressenabe1;
myObj.objArray[56] = _root.dressenabe2;
myObj.objArray[57] = _root.dressenabe3;
myObj.objArray[58] = _root.currantdress;
myObj.objArray[59] = _root.money;
myObj.objArray[60] = _root.money0;
myObj.objArray[61] = _root.money1;
myObj.objArray[62] = _root.money2;
myObj.objArray[63] = _root.money3;
myObj.objArray[64] = _root.money4;
myObj.objArray[65] = _root.money5;
myObj.objArray[66] = _root.money6;
myObj.objArray[67] = _root.money7;
myObj.objArray[68] = _root.money8;
myObj.objArray[69] = _root.money9;
myObj.objArray[70] = _root.gem0;
myObj.objArray[71] = _root.gem1;
myObj.objArray[72] = _root.gem2;
myObj.objArray[73] = _root.gem3;
myObj.objArray[74] = _root.gem4;
myObj.objArray[75] = _root.gem5;
myObj.objArray[76] = _root.gem6;
myObj.objArray[77] = _root.gem7;
myLSO.data.myObj = myObj;
}
function loadGame() {
gotoAndStop (6);
if (canload == true) {
_root.mainplayersquarey = myLSO.data.myObj.objArray[0];
_root.mainplayersquarex = myLSO.data.myObj.objArray[1];
_root.gotoAndStop(3);
_root.numberdestinationgoto = myLSO.data.myObj.objArray[2];
_root.restyposofplayer = myLSO.data.myObj.objArray[3];
_root.restxposofplayer = myLSO.data.myObj.objArray[4];
_root.keya = myLSO.data.myObj.objArray[5];
_root.keyb = myLSO.data.myObj.objArray[6];
_root.keyc = myLSO.data.myObj.objArray[7];
_root.keyd = myLSO.data.myObj.objArray[8];
_root.keye = myLSO.data.myObj.objArray[9];
_root.keyf = myLSO.data.myObj.objArray[10];
_root.keyg = myLSO.data.myObj.objArray[11];
_root.keyh = myLSO.data.myObj.objArray[12];
_root.keyi = myLSO.data.myObj.objArray[13];
_root.keyj = myLSO.data.myObj.objArray[14];
_root.p1 = myLSO.data.myObj.objArray[15];
_root.p2 = myLSO.data.myObj.objArray[16];
_root.p3 = myLSO.data.myObj.objArray[17];
_root.p4 = myLSO.data.myObj.objArray[18];
_root.p5 = myLSO.data.myObj.objArray[19];
_root.p6 = myLSO.data.myObj.objArray[20];
_root.p7 = myLSO.data.myObj.objArray[21];
_root.p8 = myLSO.data.myObj.objArray[22];
_root.aiwalka = myLSO.data.myObj.objArray[23];
_root.aiwalkb = myLSO.data.myObj.objArray[24];
_root.aiwalkc = myLSO.data.myObj.objArray[25];
_root.aiwalkd = myLSO.data.myObj.objArray[26];
_root.aiwalke = myLSO.data.myObj.objArray[27];
_root.aiwalkf = myLSO.data.myObj.objArray[28];
_root.aiwalkg = myLSO.data.myObj.objArray[29];
_root.aiwalkh = myLSO.data.myObj.objArray[30];
_root.aiwalki = myLSO.data.myObj.objArray[31];
_root.aiwalkj = myLSO.data.myObj.objArray[32];
_root.sand = myLSO.data.myObj.objArray[33];
_root.scythe = myLSO.data.myObj.objArray[34];
_root.timeofday = myLSO.data.myObj.objArray[35];
_root.sanda = myLSO.data.myObj.objArray[36];
_root.sandb = myLSO.data.myObj.objArray[37];
_root.sandc = myLSO.data.myObj.objArray[38];
_root.relationa = myLSO.data.myObj.objArray[39];
_root.relationb = myLSO.data.myObj.objArray[40];
_root.relationc = myLSO.data.myObj.objArray[41];
_root.relationd = myLSO.data.myObj.objArray[42];
_root.relatione = myLSO.data.myObj.objArray[43];
_root.knowledge = myLSO.data.myObj.objArray[44];
_root.accuracy = myLSO.data.myObj.objArray[45];
_root.health = myLSO.data.myObj.objArray[46];
_root.soundfilea = myLSO.data.myObj.objArray[47];
_root.soundfileb = myLSO.data.myObj.objArray[48];
_root.soundfilec = myLSO.data.myObj.objArray[49];
_root.soundfiled = myLSO.data.myObj.objArray[50];
_root.soundfilee = myLSO.data.myObj.objArray[51];
_root.soundfilef = myLSO.data.myObj.objArray[52];
_root.spacex = myLSO.data.myObj.objArray[53];
_root.spacey = myLSO.data.myObj.objArray[54];
_root.dressenabe1 = myLSO.data.myObj.objArray[55];
_root.dressenabe2 = myLSO.data.myObj.objArray[56];
_root.dressenabe3 = myLSO.data.myObj.objArray[57];
_root.currantdress = myLSO.data.myObj.objArray[58];
_root.money = myLSO.data.myObj.objArray[59];
_root.money0 = myLSO.data.myObj.objArray[60];
_root.money1 = myLSO.data.myObj.objArray[61];
_root.money2 = myLSO.data.myObj.objArray[62];
_root.money3 = myLSO.data.myObj.objArray[63];
_root.money4 = myLSO.data.myObj.objArray[64];
_root.money5 = myLSO.data.myObj.objArray[65];
_root.money6 = myLSO.data.myObj.objArray[66];
_root.money7 = myLSO.data.myObj.objArray[67];
_root.money8 = myLSO.data.myObj.objArray[68];
_root.money9 = myLSO.data.myObj.objArray[69];
_root.gem0 = myLSO.data.myObj.objArray[70];
_root.gem1 = myLSO.data.myObj.objArray[71];
_root.gem2 = myLSO.data.myObj.objArray[72];
_root.gem3 = myLSO.data.myObj.objArray[73];
_root.gem4 = myLSO.data.myObj.objArray[74];
_root.gem5 = myLSO.data.myObj.objArray[75];
_root.gem6 = myLSO.data.myObj.objArray[76];
_root.gem7 = myLSO.data.myObj.objArray[77];
_root.mainplayersquarey = _root.mainplayersquarey - _root.restyposofplayer;
_root.mainplayersquarex = _root.mainplayersquarex - _root.restxposofplayer;
_root.enginesound.start(10000000000, 1);
_root.nonenginesound.start(10000000000, 1);
}
}
stop();
myLSO = SharedObject.getLocal("Sandman");
if (myLSO.data.myObj.objArray[0] > "0") {
canload = true;
} else {
canload = false;
}
Instance of Symbol 197 MovieClip in Symbol 232 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.soundoff == true) {
_visible = true;
}
if (_root.soundoff == false) {
_visible = false;
}
}
Symbol 232 MovieClip Frame 2
stop();
Symbol 232 MovieClip Frame 3
stop();
Symbol 232 MovieClip Frame 4
stop();
Symbol 232 MovieClip Frame 5
stop();
Symbol 232 MovieClip Frame 6
stop();
Symbol 232 MovieClip Frame 7
stop();
Symbol 232 MovieClip Frame 8
stop();
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.screeneffectb == 1) {
gotoAndStop (2);
}
if (_root.screeneffectb == 0) {
gotoAndStop (1);
}
}
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.screeneffectb == 3) {
gotoAndStop (2);
}
if (_root.screeneffectb <= 2) {
gotoAndStop (1);
}
}
Instance of Symbol 224 MovieClip in Symbol 232 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.drawk == false) {
gotoAndStop (1);
}
if (_root.drawk == true) {
gotoAndStop (2);
}
}
Symbol 232 MovieClip Frame 9
stop();
Symbol 232 MovieClip Frame 10
stop();
Symbol 236 Button
on (release) {
gotoAndStop (6);
}
Symbol 241 Button
on (release) {
_root.loadsound(_root.main.soundnamea, "a");
}
Symbol 243 Button
on (release) {
_root.stopa();
}
Symbol 245 Button
on (release) {
_root.loadsound(_root.main.soundnameb, "b");
}
Symbol 247 Button
on (release) {
_root.loadsound(_root.main.soundnamec, "c");
}
Symbol 251 Button
on (release) {
_root.main.soundnamea = _root.musicname[0];
_root.soundfilea = _root.musicname[0];
_root.startsound();
}
Symbol 252 Button
on (release) {
_root.main.soundnameb = _root.musicname[1];
_root.soundfileb = _root.musicname[1];
_root.startsound();
}
Symbol 253 Button
on (release) {
_root.main.soundnamec = _root.musicname[2];
_root.soundfilec = _root.musicname[2];
_root.startsound();
}
Symbol 311 Button
on (release) {
_root.levelchange(22, true);
}
Symbol 312 MovieClip Frame 1
stop();
Instance of Symbol 110 MovieClip in Symbol 312 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
textfield_name = "bubblewords";
fgColor = 0;
fgAlpha = 100;
bgColor = 14263974 /* 0xD9A6A6 */;
bgAlpha = 100;
disAlpha = 0;
useHand = false;
}
Instance of Symbol 232 MovieClip "options" in Symbol 312 MovieClip Frame 3
onClipEvent (load) {
_root.main.cheats._visible = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(67)) {
k++;
if (k > 50) {
_root.main.cheats._visible = true;
}
}
}
Instance of Symbol 249 MovieClip "aok" in Symbol 312 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_root.main.soundnamea != _root.musicname[0]) & (_root.soundfilea != _root.musicname[0])) {
_visible = true;
}
}
Instance of Symbol 249 MovieClip "bok" in Symbol 312 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_root.main.soundnameb != _root.musicname[1]) & (_root.soundfileb != _root.musicname[1])) {
_visible = true;
}
}
Instance of Symbol 249 MovieClip "cok" in Symbol 312 MovieClip Frame 4
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if ((_root.main.soundnamec != _root.musicname[2]) & (_root.soundfilec != _root.musicname[2])) {
_visible = true;
}
}
Instance of Symbol 197 MovieClip in Symbol 312 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.soundoff == true) {
_visible = true;
}
if (_root.soundoff == false) {
_visible = false;
}
}
Instance of Symbol 255 MovieClip in Symbol 312 MovieClip Frame 5
onClipEvent (load) {
myColorTransform = new Object();
myColor = new Color(this);
myColorTransform = {ra:"0", rb:"244", ga:"0", gb:"112", ba:"0", bb:"90", aa:"255", ab:"255"};
diplayhealth = 100;
timetoreajust = 10;
}
onClipEvent (enterFrame) {
if (diplayhealth <= 5) {
_root.gotoAndPlay(106);
}
if (_root.health <= 0) {
_root.health = 0;
}
if (_root.health > 100) {
_root.health = 100;
}
if (diplayhealth > _root.health) {
diplayhealth = diplayhealth - ((_xscale + 5) / timetoreajust);
}
if (diplayhealth < _root.health) {
diplayhealth = diplayhealth + ((_xscale + 5) / timetoreajust);
if (diplayhealth > 100) {
diplayhealth = 100;
}
}
_xscale = diplayhealth;
myColorTransform.ga = (_root.health * 4) - 200;
myColorTransform.ba = (_root.health * 4) - 200;
myColor.setTransform(myColorTransform);
}
Instance of Symbol 280 MovieClip in Symbol 312 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
if (_root.gem7 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Symbol 312 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
if (_root.gem1 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Symbol 312 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
if (_root.gem5 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Symbol 312 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
if (_root.gem3 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Symbol 312 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
if (_root.gem6 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Symbol 312 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
if (_root.gem4 == true) {
_visible = true;
}
}
Instance of Symbol 280 MovieClip in Symbol 312 MovieClip Frame 5
onClipEvent (load) {
_visible = false;
if (_root.gem2 == true) {
_visible = true;
}
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 10
gotoAndPlay (2);
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 12
gotoAndPlay (2);
Symbol 353 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 12
gotoAndPlay (2);
Symbol 366 MovieClip Frame 1
stop();
Symbol 366 MovieClip Frame 12
gotoAndPlay (2);
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 11
gotoAndPlay (2);
Symbol 424 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 1
stop();
Instance of Symbol 424 MovieClip in Symbol 425 MovieClip Frame 30
onClipEvent (load) {
gotoAndStop(Math.round(Math.random() * 40));
}
Symbol 425 MovieClip Frame 31
gotoAndPlay (30);
Symbol 430 MovieClip Frame 1
stop();
Symbol 435 MovieClip Frame 3
if (_root.soundoff == false) {
all = new Sound(this);
all.attachSound("gun");
all.start(0, 0);
}
Symbol 440 MovieClip Frame 3
if (_root.soundoff == false) {
all = new Sound(this);
all.attachSound("gun");
all.start(0, 0);
}
Symbol 445 MovieClip Frame 3
if (_root.soundoff == false) {
all = new Sound(this);
all.attachSound("gun");
all.start(0, 0);
}
Symbol 450 MovieClip Frame 3
if (_root.soundoff == false) {
all = new Sound(this);
all.attachSound("gun");
all.start(0, 0);
}
Symbol 455 MovieClip Frame 3
if (_root.soundoff == false) {
all = new Sound(this);
all.attachSound("gun");
all.start(0, 0);
}
Symbol 456 MovieClip Frame 1
stop();
Instance of Symbol 314 MovieClip "hit" in Symbol 456 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 314 MovieClip "hiter" in Symbol 456 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 378 MovieClip "down" in Symbol 456 MovieClip Frame 1
onClipEvent (load) {
_root.squareb.foot = new Sound(this);
}
Instance of Symbol 430 MovieClip in Symbol 456 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(70) & (_root.keyg == true)) {
play();
}
}
Symbol 456 MovieClip Frame 2
stop();
Instance of Symbol 314 MovieClip "scythehit" in Symbol 456 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 470 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 1
stop();
Instance of Symbol 472 MovieClip "black" in Symbol 478 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 478 MovieClip Frame 7
gotoAndPlay (6);
Symbol 481 MovieClip Frame 1
stop();
Instance of Symbol 472 MovieClip "black" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 474 MovieClip "hitc" in Symbol 481 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 481 MovieClip Frame 7
gotoAndPlay (6);
Symbol 483 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 1
stop();
Instance of Symbol 472 MovieClip "black" in Symbol 484 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 474 MovieClip "hitb" in Symbol 484 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 484 MovieClip Frame 7
gotoAndPlay (6);
Symbol 486 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 1
stop();
Instance of Symbol 472 MovieClip "black" in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 474 MovieClip "hitb" in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 487 MovieClip Frame 7
gotoAndPlay (6);
Symbol 491 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 515 Button
on (release) {
_root.levelchange(24, false);
}
Symbol 518 Button
on (release) {
_root.levelchange(25, false);
}
Symbol 520 Button
on (release) {
_root.levelchange(26, false);
}
Symbol 522 Button
on (release) {
_root.levelchange(6, false);
}
Symbol 524 Button
on (release) {
_root.levelchange(27, false);
}
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 8
_root.levelchange(23, false);
Symbol 536 MovieClip Frame 1
stop();
Symbol 548 Button
on (release) {
if (_root.keye == false) {
gotoAndStop (2);
} else {
gotoAndStop (6);
}
}
Symbol 552 Button
on (release) {
if (_root.keyf == false) {
gotoAndStop (3);
} else {
gotoAndStop (6);
}
}
Symbol 555 Button
on (release) {
if (_root.keyg == false) {
gotoAndStop (4);
} else {
gotoAndStop (6);
}
}
Symbol 558 Button
on (release) {
if (_root.keyh == false) {
gotoAndStop (5);
} else {
gotoAndStop (6);
}
}
Symbol 568 Button
on (release) {
if (_root.money > 50) {
_root.money = _root.money - 50;
_root.scythe = 2;
_root.keye = true;
gotoAndStop (1);
}
}
Symbol 570 Button
on (release) {
gotoAndStop (1);
}
Symbol 574 Button
on (release) {
if (_root.money > 200) {
_root.money = _root.money - 200;
_root.scythe = 3;
_root.keyf = true;
gotoAndStop (1);
}
}
Symbol 577 Button
on (release) {
if (_root.money > 200) {
_root.money = _root.money - 200;
_root.keyg = true;
gotoAndStop (1);
}
}
Symbol 581 Button
on (release) {
if (_root.money > 10) {
_root.money = _root.money - 10;
_root.keyh = true;
gotoAndStop (1);
}
}
Symbol 582 Button
on (release) {
gotoAndStop (1);
}
Symbol 584 MovieClip Frame 1
stop();
Instance of Symbol 560 MovieClip in Symbol 584 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.keye == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 560 MovieClip in Symbol 584 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.keyf == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 560 MovieClip in Symbol 584 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.keyg == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 560 MovieClip in Symbol 584 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.keyh == true) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 605 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 1
stop();
Symbol 615 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 1
stop();
Instance of Symbol 620 MovieClip "hit" in Symbol 634 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 430 MovieClip "shield" in Symbol 634 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(70) & (_root.keyg == true)) {
play();
}
}
Instance of Symbol 636 MovieClip "hit" in Symbol 638 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 660 MovieClip Frame 1
play();
Symbol 660 MovieClip Frame 10
stop();
Instance of Symbol 645 MovieClip "hit" in Symbol 660 MovieClip Frame 10
onClipEvent (load) {
_visible = false;
}
Symbol 666 MovieClip Frame 1
stop();
Symbol 684 MovieClip Frame 5
gotoAndPlay (1);
Symbol 700 MovieClip Frame 1
stop();
Instance of Symbol 687 MovieClip "hita" in Symbol 700 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 687 MovieClip "hitb" in Symbol 700 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 700 MovieClip Frame 16
gotoAndStop (1);
Symbol 700 MovieClip Frame 21
gotoAndStop (1);
Symbol 722 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 1
stop();
Instance of Symbol 722 MovieClip in Symbol 724 MovieClip Frame 4
onClipEvent (enterFrame) {
if ((_root.pla._currentframe == 8) & hitTest(_root.pla)) {
play();
_root.wall.gotoAndStop(5);
}
}
Symbol 725 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 1
play();
Symbol 749 MovieClip Frame 12
gotoAndPlay (1);
Symbol 749 MovieClip Frame 19
stop();
Symbol 749 MovieClip Frame 25
stop();
Symbol 757 MovieClip Frame 1
stop();
Symbol 757 MovieClip Frame 5
gotoAndPlay (1);
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 5
gotoAndPlay (4);
Symbol 769 MovieClip Frame 1
stop();
Instance of Symbol 778 MovieClip "box" in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 860 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 16
stop();
Symbol 903 MovieClip Frame 1
stop();
Instance of Symbol 430 MovieClip "shiled" in Symbol 903 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(70) & (_root.keyg == true)) {
play();
}
}
Symbol 930 MovieClip Frame 1
stop();
Symbol 949 MovieClip Frame 17
gotoAndPlay (2);
Instance of Symbol 953 MovieClip "bbb" in Symbol 960 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 430 MovieClip "shiled" in Symbol 960 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(70) & (_root.keyg == true)) {
play();
}
}
Symbol 960 MovieClip Frame 3
gotoAndPlay (1);
Symbol 969 MovieClip Frame 1
stop();
Symbol 971 MovieClip Frame 3
gotoAndPlay (1);
Symbol 1032 MovieClip Frame 1
stop();
Instance of Symbol 983 MovieClip "hiter" in Symbol 1032 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 983 MovieClip "hiter" in Symbol 1032 MovieClip Frame 14
onClipEvent (load) {
_visible = false;
}
Symbol 1032 MovieClip Frame 38
gotoAndStop (1);
Symbol 1032 MovieClip Frame 43
gotoAndStop (1);
Symbol 1033 MovieClip Frame 1
stop();
Symbol 1033 MovieClip Frame 19
stop();
Symbol 1042 MovieClip Frame 16
gotoAndPlay (1);
Instance of Symbol 903 MovieClip "girl" in Symbol 1043 MovieClip Frame 1
onClipEvent (enterFrame) {
up._visible = 0;
downleft._visible = 0;
downright._visible = 0;
right._visible = 0;
down._visible = 0;
upleft._visible = 0;
upright._visible = 0;
left._visible = 0;
if (_root.girl.down._currentframe != 1) {
up.play();
downleft.play();
downright.play();
right.play();
down.play();
upleft.play();
upright.play();
left.play();
} else {
up.gotoAndStop(1);
downleft.gotoAndStop(1);
downright.gotoAndStop(1);
right.gotoAndStop(1);
down.gotoAndStop(1);
upleft.gotoAndStop(1);
upright.gotoAndStop(1);
left.gotoAndStop(1);
}
if (_root.girl.down._visible == true) {
down._visible = true;
}
if (_root.girl.up._visible == true) {
up._visible = true;
}
if (_root.girl.downleft._visible == true) {
downleft._visible = true;
}
if (_root.girl.downright._visible == true) {
downright._visible = true;
}
if (_root.girl.right._visible == true) {
right._visible = true;
}
if (_root.girl.left._visible == true) {
left._visible = true;
}
if (_root.girl.upleft._visible == true) {
upleft._visible = true;
}
if (_root.girl.upright._visible == true) {
upright._visible = true;
}
}
Symbol 1054 MovieClip Frame 8
stop();
Symbol 1062 MovieClip Frame 8
stop();
Symbol 1065 MovieClip Frame 10
stop();
Symbol 1071 MovieClip Frame 1
stop();
Symbol 1076 MovieClip Frame 1
stop();
Symbol 1081 MovieClip Frame 1
stop();
Instance of Symbol 1066 MovieClip "hit" in Symbol 1082 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1118 Button
on (release) {
if (_root.sanda > 0) {
_root.money = _root.money + (_root.sanda * 1);
_root.sanda = 0;
}
}
Symbol 1122 Button
on (release) {
if (_root.sandb > 0) {
_root.money = _root.money + (_root.sandb * 2);
_root.sandb = 0;
}
}
Symbol 1126 Button
on (release) {
if (_root.sandc > 0) {
_root.money = _root.money + (_root.sandc * 3);
_root.sandc = 0;
}
}
Symbol 1144 Button
on (release) {
gotoAndStop (704);
}
Instance of Symbol 1167 MovieClip in Symbol 1201 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 1231 MovieClip Frame 225
stop();
Symbol 1254 Button
on (release) {
play();
}
Symbol 1269 MovieClip Frame 4
stop();
Symbol 1283 MovieClip Frame 4
stop();
Symbol 1290 MovieClip Frame 4
stop();
Symbol 1297 MovieClip Frame 4
stop();
Symbol 1302 Button
on (release) {
_root.gotoAndPlay(2);
}
Instance of Symbol 1167 MovieClip in Symbol 1307 MovieClip Frame 104
onClipEvent (load) {
stop();
}
Instance of Symbol 1167 MovieClip in Symbol 1307 MovieClip Frame 371
onClipEvent (load) {
stop();
}
Instance of Symbol 1167 MovieClip in Symbol 1307 MovieClip Frame 385
onClipEvent (load) {
stop();
}
Symbol 1307 MovieClip Frame 704
stop();
Symbol 1307 MovieClip Frame 705
stop();
Symbol 1307 MovieClip Frame 706
stop();
Symbol 1307 MovieClip Frame 707
stop();
Symbol 1307 MovieClip Frame 708
stop();
Symbol 1307 MovieClip Frame 709
stop();
Symbol 1307 MovieClip Frame 710
stop();
Symbol 1326 Button
on (release) {
if (_root.gemtypeget == 1) {
_root.levelchange(8, false);
}
if (_root.gemtypeget == 2) {
_root.levelchange(9, false);
}
if (_root.gemtypeget == 3) {
_root.levelchange(10, false);
}
if (_root.gemtypeget == 4) {
_root.levelchange(11, false);
}
if (_root.gemtypeget == 5) {
_root.levelchange(18, false);
}
if (_root.gemtypeget == 6) {
_root.levelchange(18, false);
}
if (_root.gemtypeget == 7) {
_root.levelchange(6, false);
}
_root.gemtypeget = 0;
}
Instance of Symbol 1315 MovieClip in Symbol 1328 MovieClip Frame 53
onClipEvent (enterFrame) {
gotoAndStop(_root.gemtypeget);
}
Symbol 1328 MovieClip Frame 69
stop();
_root.money = _root.money + 50;
if (_root.gemtypeget == 1) {
_root.gem1 = true;
}
if (_root.gemtypeget == 2) {
_root.gem2 = true;
}
if (_root.gemtypeget == 3) {
_root.gem3 = true;
}
if (_root.gemtypeget == 4) {
_root.gem4 = true;
}
if (_root.gemtypeget == 5) {
_root.gem5 = true;
}
if (_root.gemtypeget == 6) {
_root.gem6 = true;
}
if (_root.gemtypeget == 7) {
_root.gem7 = true;
}
Instance of Symbol 1167 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 1333 Button
on (release) {
if (_root.money >= 200) {
play();
}
if (_root.money < 200) {
gotoAndStop (270);
}
}
Symbol 1392 Button
on (release) {
_root.gotoAndPlay(2);
}
Instance of Symbol 1167 MovieClip in Symbol 1417 MovieClip Frame 43
onClipEvent (load) {
stop();
}
Symbol 1417 MovieClip Frame 98
stop();
Symbol 1417 MovieClip Frame 99
stop();
Instance of Symbol 1167 MovieClip in Symbol 1417 MovieClip Frame 112
onClipEvent (load) {
stop();
}
Symbol 1417 MovieClip Frame 269
stop();
Instance of Symbol 1393 MovieClip in Symbol 1417 MovieClip Frame 269
onClipEvent (load) {
howa = (((((_root.gem1 + _root.gem2) + _root.gem3) + _root.gem4) + _root.gem5) + _root.gem6) + _root.gem7;
if (howa == 0) {
how = "By earning 40 pieces of sand you can get gems!";
} else if (howa == 1) {
how = "Only one gem!? try getting more!";
} else if ((howa >= 2) & (howa != 7)) {
how = ("You only got " add howa) add " gems. Try getting them all!";
}
}
Instance of Symbol 1167 MovieClip in Symbol 1417 MovieClip Frame 284
onClipEvent (load) {
stop();
}
Instance of Symbol 1167 MovieClip in Symbol 1417 MovieClip Frame 303
onClipEvent (load) {
stop();
}
Instance of Symbol 1167 MovieClip in Symbol 1417 MovieClip Frame 309
onClipEvent (load) {
stop();
}
Symbol 1417 MovieClip Frame 392
stop();
Symbol 1421 Button
on (release) {
_root.levelchange(23, false);
}