Frame 1
loadVariablesNum ("online.asp", 0);
Instance of Symbol 76 MovieClip "rock" in Frame 2
onClipEvent (load) {
rockvertical = ../:rockvertical;
rockhorizontal = ../:rockhorizontal;
Set("../:rock_ready", true);
}
onClipEvent (enterFrame) {
if ((_root.level1map[rockvertical][rockhorizontal] == "4") && (../:lastdir != null)) {
tellTarget ("../") {
gotoAndPlay ("rock_auto_move");
};
}
if (_root.level1map[rockvertical][rockhorizontal] == "19") {
tellTarget ("../") {
escalatordir = "left";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "20") {
tellTarget ("../") {
escalatordir = "right";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "21") {
tellTarget ("../") {
escalatordir = "up";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "22") {
tellTarget ("../") {
escalatordir = "down";
gotoAndPlay ("escalator");
};
}
if (this.hitTest(_root.char)) {
_root.rockready = ../:rock_ready;
}
if (this.hitTest(_root.char) && (../:rock_ready == true)) {
Set("../:lastdir", _root.dir);
_root.hitting_rock = true;
tellTarget ("../") {
gotoAndPlay ("move");
};
}
}
Frame 3
ifFrameLoaded (27) {
gotoAndPlay (11);
loadVariablesNum ("online.asp", 0);
}
Frame 10
gotoAndPlay (3);
Frame 11
level1 = [[9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 4, 1, 1, 1, 1, 1, 17, 17, 1, 6], [5, 1, 1, 4, 4, 4, 4, 4, 4, 3, 17, 1, 6], [5, 16, 1, 1, 1, 1, 1, 1, 1, 18, 18, 16, 6], [11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12]];
level1timer = 60;
level1password = "level1";
level2 = [[9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 6], [5, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 14, 1, 1, 20, 20, 4, 4, 4, 4, 6], [5, 1, 1, 18, 1, 18, 18, 18, 18, 3, 19, 19, 6], [5, 1, 1, 18, 18, 18, 18, 18, 18, 18, 18, 18, 6], [5, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 6], [11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12]];
level2timer = 60;
level2password = "nottoohard";
level3 = [[9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 13, 4, 4, 4, 4, 2, 2, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 1, 6], [5, 1, 17, 22, 1, 17, 17, 4, 4, 17, 17, 1, 6], [5, 1, 17, 22, 1, 17, 17, 4, 4, 17, 17, 1, 6], [5, 1, 17, 20, 23, 19, 17, 1, 1, 17, 17, 15, 6], [5, 1, 17, 17, 3, 17, 17, 1, 1, 17, 17, 3, 6], [11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12]];
level3door1_x = 11;
level3door1_y = 8;
level3timer = 60;
level3password = "tworocks";
level4 = [[9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10], [5, 1, 14, 1, 1, 1, 16, 24, 16, 24, 1, 13, 6], [5, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 17, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 23, 1, 1, 1, 1, 1, 1, 21, 18, 18, 1, 6], [5, 2, 17, 17, 17, 4, 4, 1, 21, 18, 18, 15, 6], [5, 1, 1, 1, 1, 4, 4, 1, 21, 18, 18, 4, 6], [5, 1, 18, 18, 18, 4, 4, 1, 21, 18, 18, 3, 6], [5, 2, 18, 1, 1, 1, 1, 1, 21, 18, 18, 3, 6], [5, 23, 19, 19, 20, 20, 20, 20, 21, 18, 18, 1, 6], [11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12]];
level4door1_x = 11;
level4door1_y = 5;
level4timer = 80;
level4password = "trickyone";
fscommand ("allowscale", true);
_root.closeallanimations = false;
_root.closecharanimations = false;
_root.closesound = false;
_root.closemusic = false;
Instance of Symbol 76 MovieClip "rock" in Frame 12
onClipEvent (load) {
rockvertical = ../:rockvertical;
rockhorizontal = ../:rockhorizontal;
Set("../:rock_ready", true);
}
onClipEvent (enterFrame) {
if ((_root.level1map[rockvertical][rockhorizontal] == "4") && (../:lastdir != null)) {
tellTarget ("../") {
gotoAndPlay ("rock_auto_move");
};
}
if (_root.level1map[rockvertical][rockhorizontal] == "19") {
tellTarget ("../") {
escalatordir = "left";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "20") {
tellTarget ("../") {
escalatordir = "right";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "21") {
tellTarget ("../") {
escalatordir = "up";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "22") {
tellTarget ("../") {
escalatordir = "down";
gotoAndPlay ("escalator");
};
}
if (this.hitTest(_root.char)) {
_root.rockready = ../:rock_ready;
}
if (this.hitTest(_root.char) && (../:rock_ready == true)) {
Set("../:lastdir", _root.dir);
_root.hitting_rock = true;
tellTarget ("../") {
gotoAndPlay ("move");
};
}
}
Frame 19
_root.online = online;
if (_root.online == null) {
_root.online = false;
} else {
_root.online = true;
}
Frame 20
isonline = "Online";
if (online == false) {
isonline = "Offline, highscores de-activated, visit http://www.eskimolegend.co.uk/eskimogames/pushit/pushit.asp for online capability";
}
if (_root.online != false) {
tellTarget ("user") {
gotoAndStop (2);
};
}
stop();
Frame 21
stop();
levelcodequestion = "Insert the code for the level you wish to start on";
Frame 22
stop();
Frame 23
stop();
Frame 24
stop();
Frame 25
function buildMap(map) {
var mapWidth = map[0].length;
_root.mapwidth = mapWidth;
var mapHeight = map.length;
_root.mapheight = mapHeight;
var i = 0;
while (i < mapHeight) {
var j = 0;
while (j < mapWidth) {
if ((map[i][j] + 1) == 3) {
_root.num_rocks = _root.num_rocks + 1;
this.attachMovie("tile", (("t_" + i) + "_") + j, 1000 + _root.num_rocks);
} else {
this.attachMovie("tile", (("t_" + i) + "_") + j, ++numtiles);
}
this[(("t_" + i) + "_") + j]._x = 60 + (j * tileW);
this[(("t_" + i) + "_") + j]._y = 130 + (i * tileH);
this[(("t_" + i) + "_") + j].gotoAndStop(map[i][j]);
if ((i == charPos[1]) && (j == charPos[0])) {
this.attachMovie("char", "char", 10000);
this.char._x = (60 + (j * tileW)) + (tileW / 2);
this.char._y = (130 + (i * tileH)) + (tileH / 2);
}
j++;
}
i++;
}
this.attachMovie("complete", "complete", 90000);
_root.complete._x = 255;
_root.complete._y = 290;
this.attachMovie("time", "time", 899999);
}
function Rotator(dir, hor, vert) {
if (dir == "down") {
_root.newdir = "right";
if (_root[(("tileblocked_x_" + (hor + 1)) + "_y_") + vert] == true) {
_root.newdir = "down";
if (_root[(("tileblocked_x_" + hor) + "_y_") + (vert + 1)] == true) {
_root.dirblocked = true;
_root.newdir = "left";
if (_root[(("tileblocked_x_" + (hor - 1)) + "_y_") + vert] == true) {
_root.newdir = "up";
}
}
}
} else if (dir == "up") {
_root.newdir = "left";
if (_root[(("tileblocked_x_" + (hor - 1)) + "_y_") + vert] == true) {
_root.newdir = "up";
if (_root[(("tileblocked_x_" + hor) + "_y_") + (vert - 1)] == true) {
_root.dirblocked = true;
_root.newdir = "right";
if (_root[(("tileblocked_x_" + (hor + 1)) + "_y_") + vert] == true) {
_root.newdir = "down";
}
}
}
} else if (dir == "left") {
_root.newdir = "down";
if (_root[(("tileblocked_x_" + hor) + "_y_") + (vert + 1)] == true) {
_root.newdir = "left";
if (_root[(("tileblocked_x_" + (hor - 1)) + "_y_") + vert] == true) {
_root.dirblocked = true;
_root.newdir = "up";
if (_root[(("tileblocked_x_" + hor) + "_y_") + (vert - 1)] == true) {
_root.newdir = "right";
}
}
}
} else if (dir == "right") {
_root.newdir = "up";
if (_root[(("tileblocked_x_" + hor) + "_y_") + (vert - 1)] == true) {
_root.newdir = "right";
if (_root[(("tileblocked_x_" + (hor + 1)) + "_y_") + vert] == true) {
_root.newdir = "down";
if (_root[(("tileblocked_x_" + hor) + "_y_") + (vert + 1)] == true) {
_root.dirblocked = true;
_root.newdir = "left";
}
}
}
}
}
if (_root.closemusic == false) {
bgsound = new Sound();
bgsound.attachSound("loop1");
bgsound.start(0, 20);
}
if (_root.closesound == false) {
boing = new Sound();
boing.attachSound("boing");
startswitch = new Sound();
startswitch.attachSound("doorswitchclick");
pushing = new Sound();
pushing.attachSound("push");
}
if (_root.closesound == true) {
boing = new Sound();
boing.attachSound("");
startswitch = new Sound();
startswitch.attachSound("");
pushing = new Sound();
pushing.attachSound("");
}
level1 = [[9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 4, 1, 1, 1, 1, 1, 17, 17, 1, 6], [5, 1, 1, 4, 4, 4, 4, 4, 4, 3, 17, 1, 6], [5, 16, 1, 1, 1, 1, 1, 1, 1, 18, 18, 16, 6], [11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12]];
level1timer = 60;
level1password = "level1";
level2 = [[9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 6], [5, 1, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 14, 1, 1, 20, 20, 4, 4, 4, 4, 6], [5, 1, 1, 18, 1, 18, 18, 18, 18, 3, 19, 19, 6], [5, 1, 1, 18, 18, 18, 18, 18, 18, 18, 18, 18, 6], [5, 16, 1, 1, 1, 1, 1, 1, 1, 1, 1, 16, 6], [11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12]];
level2timer = 60;
level2password = "nottoohard";
level3 = [[9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 13, 4, 4, 4, 4, 2, 2, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 1, 1, 1, 1, 1, 1, 1, 1, 17, 17, 1, 6], [5, 1, 17, 22, 1, 17, 17, 4, 4, 17, 17, 1, 6], [5, 1, 17, 22, 1, 17, 17, 4, 4, 17, 17, 1, 6], [5, 1, 17, 20, 23, 19, 17, 1, 1, 17, 17, 15, 6], [5, 1, 17, 17, 3, 17, 17, 1, 1, 17, 17, 3, 6], [11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12]];
level3door1_x = 11;
level3door1_y = 8;
level3timer = 60;
level3password = "tworocks";
level4 = [[9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 10], [5, 1, 14, 1, 1, 1, 16, 24, 16, 24, 1, 13, 6], [5, 1, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 17, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6], [5, 23, 1, 1, 1, 1, 1, 1, 21, 18, 18, 1, 6], [5, 2, 17, 17, 17, 4, 4, 1, 21, 18, 18, 15, 6], [5, 1, 1, 1, 1, 4, 4, 1, 21, 18, 18, 4, 6], [5, 1, 18, 18, 18, 4, 4, 1, 21, 18, 18, 3, 6], [5, 2, 18, 1, 1, 1, 1, 1, 21, 18, 18, 3, 6], [5, 23, 19, 19, 20, 20, 20, 20, 21, 18, 18, 1, 6], [11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 12]];
level4door1_x = 11;
level4door1_y = 5;
level4timer = 80;
level4password = "trickyone";
if ((_root.lev == null) || (0 >= _root.lev)) {
_root.lev = 1;
}
if (_root.lev < 10) {
level = "0" + _root.lev;
} else {
level = _root.lev;
}
_root.timer = 0;
tileW = 30;
tileH = 30;
_root.size = (tileW / 2) - 1;
_root.canwalk = true;
_root.hitting_rock = false;
_root.speed = 2;
_root.rockgoal = 0;
_root.numswitches = 0;
_root.switchopen = 0;
_root.door2open = 0;
_root.num_rocks = 0;
_root.collisionleft = false;
_root.collisionright = false;
_root.collisionup = false;
_root.collisiondown = false;
_root.level1map = eval ("_root.level" + _root.lev);
_root.charhorizontal = 1;
_root.charvertical = 1;
_root.hitting_rock = false;
_root.iceblocked = false;
_root.temp_stop_rock = false;
_root.springstart = "";
_root.boingleft = false;
_root.boingright = false;
_root.boingup = false;
_root.boingdown = false;
_root.alreadytriedrotation = 0;
_root.password = eval (("_root.level" + _root.lev) + "password");
charPos = [_root.charvertical, _root.charhorizontal];
buildMap(eval ("_root.level" + _root.lev));
stop();
Frame 26
_root.rockgoal = 0;
_root.num_rock = 0;
_root.lev = int(_root.lev) + 1;
_root.rockvertical = 0;
_root.charvertical = 0;
_root.rockhorizontal = 0;
_root.charhorizontal = 0;
_root.time = "00";
mapWidth = _root.mapwidth;
mapHeight = _root.mapheight;
var i = 0;
while (i < mapHeight) {
var j = 0;
while (j < mapWidth) {
_root.level1map[i][j] = 0;
_root[(("tileblocked_x_" + j) + "_y_") + i] = false;
_root[(("rocktile_x_" + j) + "_y_") + i] = false;
removeMovieClip((("t_" + i) + "_") + j);
j++;
}
i++;
}
removeMovieClip("char");
removeMovieClip("complete");
removeMovieClip("time");
if (4 < _root.lev) {
gotoAndStop (27);
} else {
prevFrame();
}
stopAllSounds();
Frame 27
stop();
Symbol 18 MovieClip Frame 1
stop();
_root.door2open = "";
Symbol 18 MovieClip Frame 2
_root.switchopen = "";
Symbol 18 MovieClip Frame 155
_root.switchdooropen = "";
_root.startswitch.start();
Symbol 28 MovieClip Frame 101
tellTarget ("../") {
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = false;
};
Symbol 28 MovieClip Frame 204
_root[(("tileblocked_x_" + ../:horizontal) + "_y_") + ../:vertical] = true;
Symbol 33 MovieClip Frame 1
stop();
started = false;
_root[(("tileblocked_x_" + ../:horizontal) + "_y_") + ../:vertical] = true;
Symbol 33 MovieClip Frame 2
_root[(("tileblocked_x_" + ../:horizontal) + "_y_") + ../:vertical] = false;
started = true;
Symbol 33 MovieClip Frame 155
_root[(("tileblocked_x_" + ../:horizontal) + "_y_") + ../:vertical] = true;
Symbol 41 MovieClip Frame 1
if (_root.closeallanimations == true) {
stop();
}
Symbol 47 MovieClip Frame 1
if (_root.closeallanimations == true) {
stop();
}
Symbol 50 MovieClip Frame 1
if (_root.closeallanimations == true) {
stop();
}
Symbol 54 MovieClip Frame 1
if (_root.closeallanimations == true) {
stop();
}
Symbol 56 MovieClip [tile] Frame 1
Symbol 56 MovieClip [tile] Frame 2
_root.rockvertical = ((this._y / _root.tileH) - 4) - 0.33333333333333;
_root.rockhorizontal = (this._x / _root.tileW) - 2;
attachMovie("need", "need", 1);
attachMovie("rock", "rock", (mapWidth * mapHeight) + 1);
tellTarget ("rock") {
rockvertical = _root.rockvertical;
rockhorizontal = _root.rockhorizontal;
};
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Symbol 56 MovieClip [tile] Frame 3
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("goal_x_" + horizontal) + "_y_") + vertical] = false;
Symbol 56 MovieClip [tile] Frame 5
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 6
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 7
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 8
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 9
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 10
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 11
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 12
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 13
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root.numswitches = int(_root.numswitches) + 1;
thisdoor_x = eval (((("_root.level" + _root.lev) + "door") + _root.numswitches) + "_x");
thisdoor_y = eval (((("_root.level" + _root.lev) + "door") + _root.numswitches) + "_y");
_root[(("switch_x_" + horizontal) + "_y_") + vertical] = 0;
Instance of Symbol 18 MovieClip in Symbol 56 MovieClip [tile] Frame 13
onClipEvent (load) {
vertical = ../:vertical;
horizontal = ../:horizontal;
thisdoor_x = ../:thisdoor_x;
thisdoor_y = ../:thisdoor_y;
}
onClipEvent (enterFrame) {
if (_root.switchopen == ((("switch_x_" + horizontal) + "_y_") + vertical)) {
_root.door2open = (("door_x_" + thisdoor_x) + "_y_") + thisdoor_y;
tellTarget (this) {
gotoAndPlay (2);
};
}
}
Symbol 56 MovieClip [tile] Frame 14
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 15
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Instance of Symbol 33 MovieClip in Symbol 56 MovieClip [tile] Frame 15
onClipEvent (load) {
vertical = ../:vertical;
horizontal = ../:horizontal;
}
onClipEvent (enterFrame) {
if ((_root.door2open == ((("door_x_" + horizontal) + "_y_") + vertical)) && (this.started == false)) {
tellTarget (this) {
gotoAndPlay (2);
};
}
}
Symbol 56 MovieClip [tile] Frame 16
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 17
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 18
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 56 MovieClip [tile] Frame 24
vertical = int((this._y / _parent.tileH) - 4.33333333333333);
horizontal = int((this._x / _parent.tileW) - 2);
_root[(("tileblocked_x_" + horizontal) + "_y_") + vertical] = true;
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 17
gotoAndStop (1);
Symbol 67 MovieClip [char] Frame 1
stop();
blocked = false;
Instance of Symbol 57 MovieClip in Symbol 67 MovieClip [char] Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
_root.dir = "up";
} else if (Key.isDown(Key.DOWN)) {
_root.dir = "down";
} else if (Key.isDown(Key.LEFT)) {
_root.dir = "left";
} else if (Key.isDown(Key.RIGHT)) {
_root.dir = "right";
} else {
_root.dir = null;
}
if (_root.dir != null) {
tellTarget ("../") {
gotoAndPlay ("char_move");
};
}
}
Symbol 67 MovieClip [char] Frame 2
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay (2);
};
}
checkspaces = 1;
speed = _root.speed;
dir = lastdir;
if (lastdir == null) {
dir = _root.dir;
}
if (dir == "down") {
setProperty("character", _rotation , 0);
if (eval ((("_root.rocktile_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + 1)) == true) {
_root.pushing.start();
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay ("push");
};
}
checkspaces = 2;
if (eval ((("_root.rocktile_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + 2)) == true) {
gotoAndStop (1);
blocked = true;
} else {
blocked = false;
}
} else {
checkspaces = 1;
blocked = false;
}
temptile = eval ((("_root.tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + checkspaces));
if ((temptile != true) && (blocked != true)) {
_y = (_y + speed);
_root.charvertical = _root.charvertical + 1;
_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - 1)] = false;
} else if (temptile == true) {
gotoAndStop (1);
}
} else if (dir == "up") {
setProperty("character", _rotation , 180);
if (eval ((("_root.rocktile_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - 1)) == true) {
_root.pushing.start();
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay ("push");
};
}
checkspaces = 2;
if (eval ((("_root.rocktile_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - 2)) == true) {
lastdir = null;
_root.dir = null;
dir = null;
gotoAndStop (1);
blocked = true;
} else {
blocked = false;
}
} else {
checkspaces = 1;
blocked = false;
}
temptile = eval ((("_root.tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - checkspaces));
if ((temptile != true) && (blocked != true)) {
_y = (_y - speed);
_root.charvertical = _root.charvertical - 1;
_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + 1)] = false;
} else if (temptile == true) {
gotoAndStop (1);
}
} else if (dir == "left") {
setProperty("character", _rotation , 90);
if (eval ((("_root.rocktile_x_" + (_root.charhorizontal - 1)) + "_y_") + _root.charvertical) == true) {
_root.pushing.start();
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay ("push");
};
}
checkspaces = 2;
if (eval ((("_root.rocktile_x_" + (_root.charhorizontal - 2)) + "_y_") + _root.charvertical) == true) {
lastdir = null;
_root.dir = null;
dir = null;
gotoAndStop (1);
blocked = true;
} else {
blocked = false;
}
} else {
checkspaces = 1;
blocked = false;
}
temptile = eval ((("_root.tileblocked_x_" + (_root.charhorizontal - checkspaces)) + "_y_") + _root.charvertical);
if ((temptile != true) && (blocked != true)) {
_x = (_x - speed);
_root.charhorizontal = _root.charhorizontal - 1;
_root[(("tileblocked_x_" + (_root.charhorizontal + 1)) + "_y_") + _root.charvertical] = false;
} else if (temptile == true) {
gotoAndStop (1);
}
} else if (dir == "right") {
setProperty("character", _rotation , 270);
if (eval ((("_root.rocktile_x_" + (_root.charhorizontal + 1)) + "_y_") + _root.charvertical) == true) {
_root.pushing.start();
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay ("push");
};
}
checkspaces = 2;
if (eval ((("_root.rocktile_x_" + (_root.charhorizontal + 2)) + "_y_") + _root.charvertical) == true) {
gotoAndStop (1);
blocked = true;
} else {
blocked = false;
}
} else {
checkspaces = 1;
blocked = false;
}
temptile = eval ((("_root.tileblocked_x_" + (_root.charhorizontal + checkspaces)) + "_y_") + _root.charvertical);
if ((temptile != true) && (blocked != true)) {
_x = (_x + speed);
_root.charhorizontal = _root.charhorizontal + 1;
_root[(("tileblocked_x_" + (_root.charhorizontal - 1)) + "_y_") + _root.charvertical] = false;
} else if (temptile == true) {
gotoAndStop (1);
}
} else {
gotoAndStop (1);
}
_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + _root.charvertical] = true;
Symbol 67 MovieClip [char] Frame 3
if (dir == null) {
dir = _root.dir;
}
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 4
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 5
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 6
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 7
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 8
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 9
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 10
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 11
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 12
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 13
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 14
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 15
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 16
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 67 MovieClip [char] Frame 17
if (_root.level1map[_root.charvertical][_root.charhorizontal] == 13) {
_root.switchopen = (("switch_x_" + _root.charhorizontal) + "_y_") + _root.charvertical;
_root.door2open = (("door_x_" + _root.charhorizontal) + "_y_") + _root.charvertical;
_root.startswitch.start();
} else {
_root.switchopen = "0";
}
if (((_root.level1map[_root.charvertical][_root.charhorizontal + 1] == 24) && (_root.level1map[_root.charvertical][_root.charhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][_root.charhorizontal] != 23)) {
_root.dir = "left";
gotoAndPlay (2);
_root.boing.start();
} else if (((_root.level1map[_root.charvertical][_root.charhorizontal - 1] == 24) && (_root.level1map[_root.charvertical][_root.charhorizontal + 1] != 24)) && (_root.level1map[_root.charvertical][_root.charhorizontal] != 23)) {
_root.dir = "right";
gotoAndPlay (2);
_root.boing.start();
} else if (((_root.level1map[_root.charvertical + 1][_root.charhorizontal] == 24) && (_root.level1map[_root.charvertical - 1][_root.charhorizontal] != 24)) && (_root.level1map[_root.charvertical][_root.charhorizontal] != 23)) {
_root.dir = "up";
gotoAndPlay (2);
_root.boing.start();
} else if (((_root.level1map[_root.charvertical - 1][_root.charhorizontal] == 24) && (_root.level1map[_root.charvertical + 1][_root.charhorizontal] != 24)) && (_root.level1map[_root.charvertical][_root.charhorizontal] != 23)) {
_root.dir = "down";
gotoAndPlay (2);
boing.start();
} else if (((_root.level1map[_root.charvertical][_root.charhorizontal] == 4) || (_root.level1map[_root.charvertical][_root.charhorizontal] == 14)) || (_root.level1map[_root.charvertical][_root.charhorizontal] == 15)) {
_root.dir = dir;
if (((Key.isDown(Key.UP) || (Key.isDown(Key.DOWN))) || (Key.isDown(Key.LEFT))) || (Key.isDown(Key.RIGHT))) {
gotoAndStop (1);
} else {
if ((dir == "down") && (_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + 1)] != true)) {
gotoAndPlay (2);
}
if ((dir == "up") && (_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - 1)] != true)) {
gotoAndPlay (2);
}
if ((dir == "left") && (_root[(("tileblocked_x_" + (_root.charhorizontal - 1)) + "_y_") + _root.charvertical] != true)) {
gotoAndPlay (2);
}
if ((dir == "right") && (_root[(("tileblocked_x_" + (_root.charhorizontal + 1)) + "_y_") + _root.charvertical] != true)) {
gotoAndPlay (2);
}
}
} else if (_root.level1map[_root.charvertical][_root.charhorizontal] == "19") {
_root.dir = "left";
gotoAndPlay (2);
} else if (_parent.level1map[_root.charvertical][_root.charhorizontal] == "20") {
_root.dir = "right";
gotoAndPlay (2);
} else if (_parent.level1map[_root.charvertical][_root.charhorizontal] == "21") {
_root.dir = "up";
gotoAndPlay (2);
} else if (_parent.level1map[_root.charvertical][_root.charhorizontal] == "22") {
_root.dir = "down";
gotoAndPlay (2);
} else if (_parent.level1map[_root.charvertical][_root.charhorizontal] == "23") {
_root.Rotator(_root.dir, _root.charhorizontal, _root.charvertical);
dir = _root.newdir;
_root.dir = _root.newdir;
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 41
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 80 MovieClip [rock] Frame 1
stop();
rock_ready = true;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Instance of Symbol 76 MovieClip "rock" in Symbol 80 MovieClip [rock] Frame 1
onClipEvent (load) {
rockvertical = ../:rockvertical;
rockhorizontal = ../:rockhorizontal;
Set("../:rock_ready", true);
}
onClipEvent (enterFrame) {
if ((_root.level1map[rockvertical][rockhorizontal] == "4") && (../:lastdir != null)) {
tellTarget ("../") {
gotoAndPlay ("rock_auto_move");
};
}
if (_root.level1map[rockvertical][rockhorizontal] == "19") {
tellTarget ("../") {
escalatordir = "left";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "20") {
tellTarget ("../") {
escalatordir = "right";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "21") {
tellTarget ("../") {
escalatordir = "up";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "22") {
tellTarget ("../") {
escalatordir = "down";
gotoAndPlay ("escalator");
};
}
if (this.hitTest(_root.char)) {
_root.rockready = ../:rock_ready;
}
if (this.hitTest(_root.char) && (../:rock_ready == true)) {
Set("../:lastdir", _root.dir);
_root.hitting_rock = true;
tellTarget ("../") {
gotoAndPlay ("move");
};
}
}
Symbol 80 MovieClip [rock] Frame 2
stop();
rock_ready = true;
_root.hitting_rock = false;
Instance of Symbol 77 MovieClip in Symbol 80 MovieClip [rock] Frame 2
onClipEvent (load) {
rockvertical = ../:rockvertical;
rockhorizontal = ../:rockhorizontal;
Set("../:rock_ready", true);
}
onClipEvent (enterFrame) {
if ((_root.level1map[rockvertical][rockhorizontal] == "4") && (../:lastdir != null)) {
tellTarget ("../") {
gotoAndPlay ("rock_auto_move");
};
}
if (this.hitTest(_root.char)) {
_root.rockready = ../:rock_ready;
}
if (_root.level1map[rockvertical][rockhorizontal] == "19") {
tellTarget ("../") {
escalatordir = "left";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "20") {
tellTarget ("../") {
escalatordir = "right";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "21") {
tellTarget ("../") {
escalatordir = "up";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "22") {
tellTarget ("../") {
escalatordir = "down";
gotoAndPlay ("escalator");
};
} else if (this.hitTest(_root.char) && (../:rock_ready == true)) {
Set("../:lastdir", _root.dir);
_root.hitting_rock = true;
tellTarget ("../") {
gotoAndPlay ("move");
};
}
}
Symbol 80 MovieClip [rock] Frame 3
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
Set("../:rock_ready", false);
speed = _root.speed;
dir = _root.dir;
if (dir == null) {
dir = lastdir;
}
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
}
} else {
_y = (_y + speed);
}
}
if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
}
} else {
_y = (_y - speed);
}
}
if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
}
} else {
_x = (_x - speed);
}
}
if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
}
} else {
_x = (_x + speed);
}
}
Instance of Symbol 78 MovieClip in Symbol 80 MovieClip [rock] Frame 3
onClipEvent (load) {
tellTarget (rock) {
};
}
Symbol 80 MovieClip [rock] Frame 4
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 5
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 6
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 7
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 8
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 9
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 10
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 11
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 12
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 13
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 14
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 15
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 16
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 17
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
}
if (dir == "up") {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
}
if (dir == "left") {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
}
if (dir == "right") {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
Symbol 80 MovieClip [rock] Frame 18
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
_root.hitting_rock = false;
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndPlay (2);
};
}
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
_root.startswitch.start();
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
rotatordir = _root.newdir;
gotoAndPlay (72);
} else {
if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
}
if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
_root.scorecheck();
}
if (_root.level1map[rockvertical][rockhorizontal] == 19) {
escalatordir = "left";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 20) {
escalatordir = "right";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 21) {
escalatordir = "up";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 22) {
escalatordir = "down";
gotoAndPlay (37);
} else if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[rockvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "left";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == "24") && (_root.level1map[rockvertical][rockhorizontal + 1] != "24")) && (_root.level1map[rockvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "right";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == "24") && (_root.level1map[rockvertical - 1][rockhorizontal] != "24")) && (_root.level1map[rockvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "up";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == "24") && (_root.level1map[rockvertical + 1][rockhorizontal] != "24")) && (_root.level1map[rockvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "down";
gotoAndPlay (55);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
Symbol 80 MovieClip [rock] Frame 20
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
dir = lastdir;
speed = _root.speed;
rock_ready = false;
Set("../:rock_ready", false);
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
lastdir = null;
dir = null;
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
dir = null;
gotoAndStop (2);
}
} else {
_y = (_y + speed);
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = true;
}
} else if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (int(rockvertical) - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (int(rockvertical) - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
lastdir = null;
dir = null;
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
gotoAndStop (2);
}
} else {
_y = (_y - speed);
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = true;
}
} else if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
lastdir = null;
dir = null;
gotoAndStop (2);
lastdir = null;
if (rockcollisioncheck == true) {
lastdir = null;
gotoAndStop (2);
}
} else {
_x = (_x - speed);
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = true;
}
} else if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
lastdir = null;
dir = null;
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
gotoAndStop (2);
}
} else {
_x = (_x + speed);
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = true;
}
}
Symbol 80 MovieClip [rock] Frame 21
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 22
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 23
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 24
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 25
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 26
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 27
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 28
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 29
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 30
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 31
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 32
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 33
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 34
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
}
if (dir == "up") {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
}
if (dir == "left") {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
}
if (dir == "right") {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Symbol 80 MovieClip [rock] Frame 35
_root.hitting_rock = false;
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndPlay (2);
};
}
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.startswitch.start();
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
dir = _root.newdir;
rotatordir = _root.newdir;
gotoAndPlay (72);
} else if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
}
if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "left";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == "24") && (_root.level1map[rockvertical][rockhorizontal + 1] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "right";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == "24") && (_root.level1map[rockvertical - 1][rockhorizontal] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "up";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == "24") && (_root.level1map[rockvertical + 1][rockhorizontal] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "down";
gotoAndPlay (55);
} else if ((dir == "up") && (_root[(("tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] == true)) {
dir = null;
gotoAndPlay (2);
} else if ((dir == "down") && (_root[(("tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] == true)) {
dir = null;
gotoAndPlay (2);
} else if ((dir == "left") && (_root[(("tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] == true)) {
dir = null;
gotoAndPlay (2);
} else if ((dir == "right") && (_root[(("tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] == true)) {
dir = null;
gotoAndPlay (2);
} else if (_root.level1map[rockvertical][rockhorizontal] == 19) {
escalatordir = "left";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 20) {
escalatordir = "right";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 21) {
escalatordir = "up";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 22) {
escalatordir = "down";
gotoAndPlay (37);
} else if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
Symbol 80 MovieClip [rock] Frame 37
speed = _root.speed;
rock_ready = false;
dir = escalatordir;
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (int(rockvertical) + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (int(rockvertical) + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_y = (_y + speed);
}
} else if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_y = (_y - speed);
}
} else if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_x = (_x - speed);
}
} else if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_x = (_x + speed);
}
}
Symbol 80 MovieClip [rock] Frame 38
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 39
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 40
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 41
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 42
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 43
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 44
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 45
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 46
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 47
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 48
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 49
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 50
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 51
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
}
if (dir == "up") {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
}
if (dir == "left") {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
}
if (dir == "right") {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Symbol 80 MovieClip [rock] Frame 52
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndPlay (2);
};
}
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.startswitch.start();
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
dir = _root.newdir;
rotatordir = _root.newdir;
gotoAndPlay (72);
} else if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
}
if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "left";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == "24") && (_root.level1map[rockvertical][rockhorizontal + 1] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "right";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == "24") && (_root.level1map[rockvertical - 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "up";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == "24") && (_root.level1map[rockvertical + 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "down";
gotoAndPlay (55);
} else if (_root.level1map[rockvertical][rockhorizontal] == 19) {
escalatordir = "left";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 20) {
escalatordir = "right";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 21) {
escalatordir = "up";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 22) {
escalatordir = "down";
gotoAndPlay (37);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
Symbol 80 MovieClip [rock] Frame 55
rock_ready = false;
speed = _root.speed;
bounced = false;
dir = lastdir;
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
dir = null;
} else {
_y = (_y + speed);
bounced = true;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = true;
}
} else if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
dir = null;
} else {
_y = (_y - speed);
bounced = true;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = true;
}
} else if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
dir = null;
} else {
_x = (_x - speed);
bounced = true;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = true;
}
} else if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
dir = null;
} else {
_x = (_x + speed);
bounced = true;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = true;
}
}
Symbol 80 MovieClip [rock] Frame 56
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 57
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 58
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 59
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 60
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 61
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 62
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 63
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 64
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 65
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 66
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 67
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 68
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 80 MovieClip [rock] Frame 69
if ((dir == "down") && (dir != null)) {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
} else if ((dir == "up") && (dir != null)) {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
} else if ((dir == "left") && (dir != null)) {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
} else if ((dir == "right") && (dir != null)) {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
Symbol 80 MovieClip [rock] Frame 70
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.startswitch.start();
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
dir = _root.newdir;
escalatordir = _root.newdir;
gotoAndPlay (37);
} else if (this.hitTest(_root.char)) {
gotoAndStop (2);
bounced = false;
} else if (bounced == true) {
bounced = false;
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndStop (2);
};
} else if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
} else if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
} else if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
} else if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
} else if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
}
if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
lastdir = "left";
_root.boing.start();
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == 24) && (_root.level1map[rockvertical][rockhorizontal + 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
lastdir = "right";
_root.boing.start();
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == 24) && (_root.level1map[rockvertical - 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
lastdir = "up";
_root.boing.start();
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == 24) && (_root.level1map[rockvertical + 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
lastdir = "down";
_root.boing.start();
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
} else if (bounced == false) {
gotoAndPlay (55);
}
Symbol 80 MovieClip [rock] Frame 72
speed = int(_root.speed) - 1;
rock_ready = false;
dir = rotatordir;
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (int(rockvertical) + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (int(rockvertical) + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_y = (_y + speed);
}
} else if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_y = (_y - speed);
}
} else if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_x = (_x - speed);
}
} else if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_x = (_x + speed);
}
}
gotoAndPlay (73);
Symbol 80 MovieClip [rock] Frame 73
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
gotoAndPlay (74);
Symbol 80 MovieClip [rock] Frame 74
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 75
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 76
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 77
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 78
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 79
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 80
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 81
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 82
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 83
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 84
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 85
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 86
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 80 MovieClip [rock] Frame 87
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
}
if (dir == "up") {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
}
if (dir == "left") {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
}
if (dir == "right") {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Symbol 80 MovieClip [rock] Frame 88
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndPlay (2);
};
}
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.startswitch.start();
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
dir = _root.newdir;
rotatordir = _root.newdir;
gotoAndPlay (72);
} else if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
}
if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "left";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == "24") && (_root.level1map[rockvertical][rockhorizontal + 1] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "right";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == "24") && (_root.level1map[rockvertical - 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "up";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == "24") && (_root.level1map[rockvertical + 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "down";
gotoAndPlay (55);
} else if (_root.level1map[rockvertical][rockhorizontal] == 19) {
escalatordir = "left";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 20) {
escalatordir = "right";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 21) {
escalatordir = "up";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 22) {
escalatordir = "down";
gotoAndPlay (37);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
Symbol 84 Button
on (release) {
tellTarget (_parent) {
gotoAndStop ("nextlevel");
};
}
Symbol 89 Button
on (release) {
gotoAndStop (1);
tellTarget (_parent) {
gotoAndStop ("nextlevel");
};
}
Symbol 91 MovieClip [complete] Frame 1
stop();
Symbol 91 MovieClip [complete] Frame 2
removeMovieClip(_root.char);
tellTarget ("/time") {
gotoAndStop (1);
};
if (_root.online != false) {
lev = _root.lev;
time = _root.time;
username = _root.username;
if ((_root.username == null) || (_root.username == "insert here")) {
username = "Guest";
}
loadVariablesNum ("scores.asp", 0, "GET");
gotoAndPlay (3);
} else {
stop();
}
Symbol 91 MovieClip [complete] Frame 15
gotoAndStop (3);
Symbol 94 Button
on (release) {
tellTarget (_parent) {
gotoAndStop ("nextlevel");
};
}
Symbol 96 MovieClip [time] Frame 25
if (_root.time >= int(eval (("_root.level" + _root.lev) + "timer"))) {
_root.lev = int(_root.lev) - 1;
gotoAndStop (26);
} else {
_root.time = int(_root.time) + 1;
if (_root.time < 10) {
_root.time = "0" + int(_root.time);
}
gotoAndPlay (1);
}
Symbol 96 MovieClip [time] Frame 26
removeMovieClip(_root.char);
Symbol 99 MovieClip [rock] Frame 1
stop();
rock_ready = true;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Instance of Symbol 76 MovieClip "rock" in Symbol 99 MovieClip [rock] Frame 1
onClipEvent (load) {
rockvertical = ../:rockvertical;
rockhorizontal = ../:rockhorizontal;
Set("../:rock_ready", true);
}
onClipEvent (enterFrame) {
if ((_root.level1map[rockvertical][rockhorizontal] == "4") && (../:lastdir != null)) {
tellTarget ("../") {
gotoAndPlay ("rock_auto_move");
};
}
if (_root.level1map[rockvertical][rockhorizontal] == "19") {
tellTarget ("../") {
escalatordir = "left";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "20") {
tellTarget ("../") {
escalatordir = "right";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "21") {
tellTarget ("../") {
escalatordir = "up";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "22") {
tellTarget ("../") {
escalatordir = "down";
gotoAndPlay ("escalator");
};
}
if (this.hitTest(_root.char)) {
_root.rockready = ../:rock_ready;
}
if (this.hitTest(_root.char) && (../:rock_ready == true)) {
Set("../:lastdir", _root.dir);
_root.hitting_rock = true;
tellTarget ("../") {
gotoAndPlay ("move");
};
}
}
Symbol 99 MovieClip [rock] Frame 2
stop();
rock_ready = true;
_root.hitting_rock = false;
Instance of Symbol 77 MovieClip in Symbol 99 MovieClip [rock] Frame 2
onClipEvent (load) {
rockvertical = ../:rockvertical;
rockhorizontal = ../:rockhorizontal;
Set("../:rock_ready", true);
}
onClipEvent (enterFrame) {
if ((_root.level1map[rockvertical][rockhorizontal] == "4") && (../:lastdir != null)) {
tellTarget ("../") {
gotoAndPlay ("rock_auto_move");
};
}
if (this.hitTest(_root.char)) {
_root.rockready = ../:rock_ready;
}
if (_root.level1map[rockvertical][rockhorizontal] == "19") {
tellTarget ("../") {
escalatordir = "left";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "20") {
tellTarget ("../") {
escalatordir = "right";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "21") {
tellTarget ("../") {
escalatordir = "up";
gotoAndPlay ("escalator");
};
} else if (_root.level1map[rockvertical][rockhorizontal] == "22") {
tellTarget ("../") {
escalatordir = "down";
gotoAndPlay ("escalator");
};
} else if (this.hitTest(_root.char) && (../:rock_ready == true)) {
Set("../:lastdir", _root.dir);
_root.hitting_rock = true;
tellTarget ("../") {
gotoAndPlay ("move");
};
}
}
Symbol 99 MovieClip [rock] Frame 3
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
Set("../:rock_ready", false);
speed = _root.speed;
dir = _root.dir;
if (dir == null) {
dir = lastdir;
}
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
}
} else {
_y = (_y + speed);
}
}
if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
}
} else {
_y = (_y - speed);
}
}
if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
}
} else {
_x = (_x - speed);
}
}
if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
}
} else {
_x = (_x + speed);
}
}
Instance of Symbol 78 MovieClip in Symbol 99 MovieClip [rock] Frame 3
onClipEvent (load) {
tellTarget (rock) {
};
}
Symbol 99 MovieClip [rock] Frame 4
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 5
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 6
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 7
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 8
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 9
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 10
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 11
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 12
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 13
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 14
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 15
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 16
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 17
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
}
if (dir == "up") {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
}
if (dir == "left") {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
}
if (dir == "right") {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
Symbol 99 MovieClip [rock] Frame 18
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
_root.hitting_rock = false;
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndPlay (2);
};
}
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
_root.startswitch.start();
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
rotatordir = _root.newdir;
gotoAndPlay (72);
} else {
if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
}
if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
_root.scorecheck();
}
if (_root.level1map[rockvertical][rockhorizontal] == 19) {
escalatordir = "left";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 20) {
escalatordir = "right";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 21) {
escalatordir = "up";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 22) {
escalatordir = "down";
gotoAndPlay (37);
} else if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[rockvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "left";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == "24") && (_root.level1map[rockvertical][rockhorizontal + 1] != "24")) && (_root.level1map[rockvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "right";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == "24") && (_root.level1map[rockvertical - 1][rockhorizontal] != "24")) && (_root.level1map[rockvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "up";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == "24") && (_root.level1map[rockvertical + 1][rockhorizontal] != "24")) && (_root.level1map[rockvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "down";
gotoAndPlay (55);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
Symbol 99 MovieClip [rock] Frame 20
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
dir = lastdir;
speed = _root.speed;
rock_ready = false;
Set("../:rock_ready", false);
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
lastdir = null;
dir = null;
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
dir = null;
gotoAndStop (2);
}
} else {
_y = (_y + speed);
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = true;
}
} else if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (int(rockvertical) - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (int(rockvertical) - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
lastdir = null;
dir = null;
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
gotoAndStop (2);
}
} else {
_y = (_y - speed);
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = true;
}
} else if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
lastdir = null;
dir = null;
gotoAndStop (2);
lastdir = null;
if (rockcollisioncheck == true) {
lastdir = null;
gotoAndStop (2);
}
} else {
_x = (_x - speed);
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = true;
}
} else if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
lastdir = null;
dir = null;
gotoAndStop (2);
if (rockcollisioncheck == true) {
lastdir = null;
gotoAndStop (2);
}
} else {
_x = (_x + speed);
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = true;
}
}
Symbol 99 MovieClip [rock] Frame 21
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 22
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 23
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 24
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 25
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 26
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 27
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 28
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 29
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 30
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 31
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 32
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 33
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 34
if (this.hitTest(_root.char)) {
_root.rockready = rock_ready;
}
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
}
if (dir == "up") {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
}
if (dir == "left") {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
}
if (dir == "right") {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Symbol 99 MovieClip [rock] Frame 35
_root.hitting_rock = false;
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndPlay (2);
};
}
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.startswitch.start();
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
dir = _root.newdir;
rotatordir = _root.newdir;
gotoAndPlay (72);
} else if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
}
if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "left";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == "24") && (_root.level1map[rockvertical][rockhorizontal + 1] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "right";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == "24") && (_root.level1map[rockvertical - 1][rockhorizontal] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "up";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == "24") && (_root.level1map[rockvertical + 1][rockhorizontal] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "down";
gotoAndPlay (55);
} else if ((dir == "up") && (_root[(("tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] == true)) {
dir = null;
gotoAndPlay (2);
} else if ((dir == "down") && (_root[(("tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] == true)) {
dir = null;
gotoAndPlay (2);
} else if ((dir == "left") && (_root[(("tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] == true)) {
dir = null;
gotoAndPlay (2);
} else if ((dir == "right") && (_root[(("tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] == true)) {
dir = null;
gotoAndPlay (2);
} else if (_root.level1map[rockvertical][rockhorizontal] == 19) {
escalatordir = "left";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 20) {
escalatordir = "right";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 21) {
escalatordir = "up";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 22) {
escalatordir = "down";
gotoAndPlay (37);
} else if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
Symbol 99 MovieClip [rock] Frame 37
speed = _root.speed;
rock_ready = false;
dir = escalatordir;
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (int(rockvertical) + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (int(rockvertical) + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_y = (_y + speed);
}
} else if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_y = (_y - speed);
}
} else if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_x = (_x - speed);
}
} else if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_x = (_x + speed);
}
}
Symbol 99 MovieClip [rock] Frame 38
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 39
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 40
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 41
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 42
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 43
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 44
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 45
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 46
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 47
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 48
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 49
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 50
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 51
speed = _root.speed;
dir = escalatordir;
if (dir == "down") {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
}
if (dir == "up") {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
}
if (dir == "left") {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
}
if (dir == "right") {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Symbol 99 MovieClip [rock] Frame 52
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndPlay (2);
};
}
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.startswitch.start();
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
dir = _root.newdir;
rotatordir = _root.newdir;
gotoAndPlay (72);
} else if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
}
if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "left";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == "24") && (_root.level1map[rockvertical][rockhorizontal + 1] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "right";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == "24") && (_root.level1map[rockvertical - 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "up";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == "24") && (_root.level1map[rockvertical + 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "down";
gotoAndPlay (55);
} else if (_root.level1map[rockvertical][rockhorizontal] == 19) {
escalatordir = "left";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 20) {
escalatordir = "right";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 21) {
escalatordir = "up";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 22) {
escalatordir = "down";
gotoAndPlay (37);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
Symbol 99 MovieClip [rock] Frame 55
rock_ready = false;
speed = _root.speed;
bounced = false;
dir = lastdir;
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
dir = null;
} else {
_y = (_y + speed);
bounced = true;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = true;
}
} else if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
dir = null;
} else {
_y = (_y - speed);
bounced = true;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = true;
}
} else if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
dir = null;
} else {
_x = (_x - speed);
bounced = true;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = true;
}
} else if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
dir = null;
} else {
_x = (_x + speed);
bounced = true;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = true;
}
}
Symbol 99 MovieClip [rock] Frame 56
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 57
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 58
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 59
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 60
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 61
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 62
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 63
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 64
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 65
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 66
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 67
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 68
if (dir == "down") {
if (dir != null) {
_y = (_y + speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "up") {
if (dir != null) {
_y = (_y - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "left") {
if (dir != null) {
_x = (_x - speed);
} else {
gotoAndPlay (55);
}
} else if (dir == "right") {
if (dir != null) {
_x = (_x + speed);
} else {
gotoAndPlay (55);
}
}
Symbol 99 MovieClip [rock] Frame 69
if ((dir == "down") && (dir != null)) {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
} else if ((dir == "up") && (dir != null)) {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
} else if ((dir == "left") && (dir != null)) {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
} else if ((dir == "right") && (dir != null)) {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
Symbol 99 MovieClip [rock] Frame 70
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.startswitch.start();
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
dir = _root.newdir;
escalatordir = _root.newdir;
gotoAndPlay (37);
} else if (this.hitTest(_root.char)) {
gotoAndStop (2);
bounced = false;
} else if (bounced == true) {
bounced = false;
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndStop (2);
};
} else if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
} else if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
} else if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
} else if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
} else if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
}
if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
lastdir = "left";
_root.boing.start();
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == 24) && (_root.level1map[rockvertical][rockhorizontal + 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
lastdir = "right";
_root.boing.start();
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == 24) && (_root.level1map[rockvertical - 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
lastdir = "up";
_root.boing.start();
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == 24) && (_root.level1map[rockvertical + 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
lastdir = "down";
_root.boing.start();
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
} else if (bounced == false) {
gotoAndPlay (55);
}
Symbol 99 MovieClip [rock] Frame 72
speed = int(_root.speed) - 1;
rock_ready = false;
dir = rotatordir;
if (dir == "down") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (int(rockvertical) + 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (int(rockvertical) + 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_y = (_y + speed);
}
} else if (dir == "up") {
temptile = eval ((("_root.tileblocked_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
rockcollisioncheck = eval ((("_root.rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1));
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_y = (_y - speed);
}
} else if (dir == "left") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_x = (_x - speed);
}
} else if (dir == "right") {
temptile = eval ((("_root.tileblocked_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
rockcollisioncheck = eval ((("_root.rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical);
if ((temptile == true) || (rockcollisioncheck == true)) {
if (rockcollisioncheck == true) {
lastdir = null;
}
gotoAndStop (2);
} else {
_x = (_x + speed);
}
}
gotoAndPlay (73);
Symbol 99 MovieClip [rock] Frame 73
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
gotoAndPlay (74);
Symbol 99 MovieClip [rock] Frame 74
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 75
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 76
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 77
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 78
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 79
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 80
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 81
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 82
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 83
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 84
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 85
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 86
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 99 MovieClip [rock] Frame 87
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
rockvertical = rockvertical + 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical - 1)] = false;
}
if (dir == "up") {
_y = (_y - speed);
rockvertical = rockvertical - 1;
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + (rockvertical + 1)] = false;
}
if (dir == "left") {
_x = (_x - speed);
rockhorizontal = rockhorizontal - 1;
_root[(("rocktile_x_" + (rockhorizontal + 1)) + "_y_") + rockvertical] = false;
}
if (dir == "right") {
_x = (_x + speed);
rockhorizontal = rockhorizontal + 1;
_root[(("rocktile_x_" + (rockhorizontal - 1)) + "_y_") + rockvertical] = false;
}
_root[(("rocktile_x_" + rockhorizontal) + "_y_") + rockvertical] = true;
Symbol 99 MovieClip [rock] Frame 88
if (_root.level1map[rockvertical][rockhorizontal] == 3) {
_root.rockgoal = int(_root.rockgoal) + 1;
tellTarget ("done") {
gotoAndPlay (2);
};
}
if (_root.level1map[rockvertical][rockhorizontal] == 13) {
_root.startswitch.start();
_root.switchopen = (("switch_x_" + rockhorizontal) + "_y_") + rockvertical;
} else {
_root.switchopen = "0";
}
if (_root.level1map[rockvertical][rockhorizontal] == "23") {
_root.Rotator(dir, rockhorizontal, rockvertical);
dir = _root.newdir;
rotatordir = _root.newdir;
gotoAndPlay (72);
} else if ((dir == "down") && (_root.level1map[rockvertical - 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "up") && (_root.level1map[rockvertical + 1][rockhorizontal] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "right") && (_root.level1map[rockvertical][rockhorizontal - 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if ((dir == "left") && (_root.level1map[rockvertical][rockhorizontal + 1] == 3)) {
_root.rockgoal = _root.rockgoal - 1;
}
if (_root.rockgoal == _root.num_rocks) {
tellTarget (_root.complete) {
gotoAndStop (2);
};
}
if (((_root.level1map[rockvertical][rockhorizontal] == 4) || (_root.level1map[rockvertical][rockhorizontal] == 14)) || (_root.level1map[rockvertical][rockhorizontal] == 15)) {
lastdir = dir;
gotoAndPlay (20);
} else if (((_root.level1map[rockvertical][rockhorizontal + 1] == 24) && (_root.level1map[rockvertical][rockhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "left";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical][rockhorizontal - 1] == "24") && (_root.level1map[rockvertical][rockhorizontal + 1] != "24")) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "right";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical + 1][rockhorizontal] == "24") && (_root.level1map[rockvertical - 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "up";
gotoAndPlay (55);
} else if (((_root.level1map[rockvertical - 1][rockhorizontal] == "24") && (_root.level1map[rockvertical + 1][rockhorizontal] != 24)) && (_root.level1map[_root.charvertical][rockhorizontal] != 23)) {
_root.boing.start();
lastdir = "down";
gotoAndPlay (55);
} else if (_root.level1map[rockvertical][rockhorizontal] == 19) {
escalatordir = "left";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 20) {
escalatordir = "right";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 21) {
escalatordir = "up";
gotoAndPlay (37);
} else if (_root.level1map[rockvertical][rockhorizontal] == 22) {
escalatordir = "down";
gotoAndPlay (37);
} else {
lastdir = dir;
_root.hitting_rock = false;
rock_ready = true;
gotoAndStop (2);
}
Symbol 100 MovieClip [char] Frame 1
stop();
blocked = false;
Instance of Symbol 57 MovieClip in Symbol 100 MovieClip [char] Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(Key.UP)) {
_root.dir = "up";
} else if (Key.isDown(Key.DOWN)) {
_root.dir = "down";
} else if (Key.isDown(Key.LEFT)) {
_root.dir = "left";
} else if (Key.isDown(Key.RIGHT)) {
_root.dir = "right";
} else {
_root.dir = null;
}
if (_root.dir != null) {
tellTarget ("../") {
gotoAndPlay ("char_move");
};
}
}
Symbol 100 MovieClip [char] Frame 2
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay (2);
};
}
checkspaces = 1;
speed = _root.speed;
dir = lastdir;
if (lastdir == null) {
dir = _root.dir;
}
if (dir == "down") {
setProperty("character", _rotation , 0);
if (eval ((("_root.rocktile_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + 1)) == true) {
_root.pushing.start();
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay ("push");
};
}
checkspaces = 2;
if (eval ((("_root.rocktile_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + 2)) == true) {
gotoAndStop (1);
blocked = true;
} else {
blocked = false;
}
} else {
checkspaces = 1;
blocked = false;
}
temptile = eval ((("_root.tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + checkspaces));
if ((temptile != true) && (blocked != true)) {
_y = (_y + speed);
_root.charvertical = _root.charvertical + 1;
_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - 1)] = false;
} else if (temptile == true) {
gotoAndStop (1);
}
} else if (dir == "up") {
setProperty("character", _rotation , 180);
if (eval ((("_root.rocktile_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - 1)) == true) {
_root.pushing.start();
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay ("push");
};
}
checkspaces = 2;
if (eval ((("_root.rocktile_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - 2)) == true) {
lastdir = null;
_root.dir = null;
dir = null;
gotoAndStop (1);
blocked = true;
} else {
blocked = false;
}
} else {
checkspaces = 1;
blocked = false;
}
temptile = eval ((("_root.tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - checkspaces));
if ((temptile != true) && (blocked != true)) {
_y = (_y - speed);
_root.charvertical = _root.charvertical - 1;
_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + 1)] = false;
} else if (temptile == true) {
gotoAndStop (1);
}
} else if (dir == "left") {
setProperty("character", _rotation , 90);
if (eval ((("_root.rocktile_x_" + (_root.charhorizontal - 1)) + "_y_") + _root.charvertical) == true) {
_root.pushing.start();
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay ("push");
};
}
checkspaces = 2;
if (eval ((("_root.rocktile_x_" + (_root.charhorizontal - 2)) + "_y_") + _root.charvertical) == true) {
lastdir = null;
_root.dir = null;
dir = null;
gotoAndStop (1);
blocked = true;
} else {
blocked = false;
}
} else {
checkspaces = 1;
blocked = false;
}
temptile = eval ((("_root.tileblocked_x_" + (_root.charhorizontal - checkspaces)) + "_y_") + _root.charvertical);
if ((temptile != true) && (blocked != true)) {
_x = (_x - speed);
_root.charhorizontal = _root.charhorizontal - 1;
_root[(("tileblocked_x_" + (_root.charhorizontal + 1)) + "_y_") + _root.charvertical] = false;
} else if (temptile == true) {
gotoAndStop (1);
}
} else if (dir == "right") {
setProperty("character", _rotation , 270);
if (eval ((("_root.rocktile_x_" + (_root.charhorizontal + 1)) + "_y_") + _root.charvertical) == true) {
_root.pushing.start();
if (_root.closecharanimations == false) {
tellTarget ("character") {
gotoAndPlay ("push");
};
}
checkspaces = 2;
if (eval ((("_root.rocktile_x_" + (_root.charhorizontal + 2)) + "_y_") + _root.charvertical) == true) {
gotoAndStop (1);
blocked = true;
} else {
blocked = false;
}
} else {
checkspaces = 1;
blocked = false;
}
temptile = eval ((("_root.tileblocked_x_" + (_root.charhorizontal + checkspaces)) + "_y_") + _root.charvertical);
if ((temptile != true) && (blocked != true)) {
_x = (_x + speed);
_root.charhorizontal = _root.charhorizontal + 1;
_root[(("tileblocked_x_" + (_root.charhorizontal - 1)) + "_y_") + _root.charvertical] = false;
} else if (temptile == true) {
gotoAndStop (1);
}
} else {
gotoAndStop (1);
}
_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + _root.charvertical] = true;
Symbol 100 MovieClip [char] Frame 3
if (dir == null) {
dir = _root.dir;
}
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 4
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 5
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 6
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 7
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 8
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 9
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 10
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 11
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 12
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 13
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 14
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 15
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 16
speed = _root.speed;
if (dir == "down") {
_y = (_y + speed);
}
if (dir == "up") {
_y = (_y - speed);
}
if (dir == "left") {
_x = (_x - speed);
}
if (dir == "right") {
_x = (_x + speed);
}
Symbol 100 MovieClip [char] Frame 17
if (_root.level1map[_root.charvertical][_root.charhorizontal] == 13) {
_root.switchopen = (("switch_x_" + _root.charhorizontal) + "_y_") + _root.charvertical;
_root.door2open = (("door_x_" + _root.charhorizontal) + "_y_") + _root.charvertical;
_root.startswitch.start();
} else {
_root.switchopen = "0";
}
if (((_root.level1map[_root.charvertical][_root.charhorizontal + 1] == 24) && (_root.level1map[_root.charvertical][_root.charhorizontal - 1] != 24)) && (_root.level1map[_root.charvertical][_root.charhorizontal] != 23)) {
_root.dir = "left";
gotoAndPlay (2);
_root.boing.start();
} else if (((_root.level1map[_root.charvertical][_root.charhorizontal - 1] == 24) && (_root.level1map[_root.charvertical][_root.charhorizontal + 1] != 24)) && (_root.level1map[_root.charvertical][_root.charhorizontal] != 23)) {
_root.dir = "right";
gotoAndPlay (2);
_root.boing.start();
} else if (((_root.level1map[_root.charvertical + 1][_root.charhorizontal] == 24) && (_root.level1map[_root.charvertical - 1][_root.charhorizontal] != 24)) && (_root.level1map[_root.charvertical][_root.charhorizontal] != 23)) {
_root.dir = "up";
gotoAndPlay (2);
_root.boing.start();
} else if (((_root.level1map[_root.charvertical - 1][_root.charhorizontal] == 24) && (_root.level1map[_root.charvertical + 1][_root.charhorizontal] != 24)) && (_root.level1map[_root.charvertical][_root.charhorizontal] != 23)) {
_root.dir = "down";
gotoAndPlay (2);
boing.start();
} else if (((_root.level1map[_root.charvertical][_root.charhorizontal] == 4) || (_root.level1map[_root.charvertical][_root.charhorizontal] == 14)) || (_root.level1map[_root.charvertical][_root.charhorizontal] == 15)) {
_root.dir = dir;
if (((Key.isDown(Key.UP) || (Key.isDown(Key.DOWN))) || (Key.isDown(Key.LEFT))) || (Key.isDown(Key.RIGHT))) {
gotoAndStop (1);
} else {
if ((dir == "down") && (_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical + 1)] != true)) {
gotoAndPlay (2);
}
if ((dir == "up") && (_root[(("tileblocked_x_" + _root.charhorizontal) + "_y_") + (_root.charvertical - 1)] != true)) {
gotoAndPlay (2);
}
if ((dir == "left") && (_root[(("tileblocked_x_" + (_root.charhorizontal - 1)) + "_y_") + _root.charvertical] != true)) {
gotoAndPlay (2);
}
if ((dir == "right") && (_root[(("tileblocked_x_" + (_root.charhorizontal + 1)) + "_y_") + _root.charvertical] != true)) {
gotoAndPlay (2);
}
}
} else if (_root.level1map[_root.charvertical][_root.charhorizontal] == "19") {
_root.dir = "left";
gotoAndPlay (2);
} else if (_parent.level1map[_root.charvertical][_root.charhorizontal] == "20") {
_root.dir = "right";
gotoAndPlay (2);
} else if (_parent.level1map[_root.charvertical][_root.charhorizontal] == "21") {
_root.dir = "up";
gotoAndPlay (2);
} else if (_parent.level1map[_root.charvertical][_root.charhorizontal] == "22") {
_root.dir = "down";
gotoAndPlay (2);
} else if (_parent.level1map[_root.charvertical][_root.charhorizontal] == "23") {
_root.Rotator(_root.dir, _root.charhorizontal, _root.charvertical);
dir = _root.newdir;
_root.dir = _root.newdir;
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
Symbol 112 Button
on (release) {
getURL ("http://www.eskimogames.com", "_blank");
}
Symbol 116 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 117 MovieClip Frame 3
stop();
Instance of Symbol 116 MovieClip in Symbol 117 MovieClip Frame 3
onClipEvent (load) {
stop();
}
Symbol 117 MovieClip Frame 4
stop();
Symbol 117 MovieClip Frame 5
stop();
Symbol 117 MovieClip Frame 6
stop();
Symbol 122 Button
on (rollOver) {
tellTarget ("rockmenu") {
gotoAndStop (6);
};
}
on (release) {
fscommand ("quit");
}
Symbol 125 Button
on (rollOver) {
tellTarget ("rockmenu") {
gotoAndStop (5);
};
}
on (release) {
gotoAndStop (24);
}
Symbol 128 Button
on (rollOver) {
tellTarget ("rockmenu") {
gotoAndStop (4);
};
}
on (release) {
gotoAndStop (23);
}
Symbol 131 Button
on (rollOver) {
tellTarget ("rockmenu") {
gotoAndStop (3);
};
}
on (release) {
gotoAndStop (22);
}
Symbol 134 Button
on (rollOver) {
tellTarget ("rockmenu") {
gotoAndStop (2);
};
}
on (release) {
gotoAndStop (21);
}
Symbol 139 Button
on (rollOver) {
tellTarget ("rockmenu") {
gotoAndStop (1);
};
}
on (release) {
gotoAndStop (25);
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 147 Button
on (release) {
gotoAndStop (20);
}
Symbol 150 Button
on (release) {
found = false;
x = 1;
do {
if ((password == eval (("_root.level" + x) + "password")) && (password != null)) {
found = true;
_root.lev = int(x);
gotoAndPlay (25);
}
x = int(x) + 1;
} while (5 >= x);
if (found == false) {
levelcodequestion = "Incorrect level code. Please try again";
}
}
Symbol 158 Button
on (release) {
nextFrame();
}
Symbol 160 MovieClip Frame 1
stop();
started = false;
_root[(("tileblocked_x_" + ../:horizontal) + "_y_") + ../:vertical] = true;
Symbol 160 MovieClip Frame 2
_root[(("tileblocked_x_" + ../:horizontal) + "_y_") + ../:vertical] = false;
started = true;
Symbol 160 MovieClip Frame 155
_root[(("tileblocked_x_" + ../:horizontal) + "_y_") + ../:vertical] = true;
Symbol 166 Button
on (release) {
prevFrame();
}
Symbol 170 MovieClip Frame 1
if (_root.closeallanimations == true) {
stop();
}
Symbol 171 MovieClip Frame 1
stop();
_root.door2open = "";
Symbol 171 MovieClip Frame 2
_root.switchopen = "";
Symbol 171 MovieClip Frame 155
_root.switchdooropen = "";
_root.startswitch.start();
Symbol 180 MovieClip Frame 1
if (_root.closeallanimations == true) {
stop();
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 183 MovieClip Frame 3
stop();
Symbol 183 MovieClip Frame 4
stop();
Symbol 186 Button
on (release) {
gotoAndStop (20);
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 2
stop();
Symbol 193 Button
on (release) {
tellTarget ("op5") {
gotoAndStop (2);
};
_root.closemusic = true;
}
Symbol 194 Button
on (release) {
tellTarget ("op5") {
gotoAndStop (1);
};
_root.closemusic = false;
}
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 2
stop();
Symbol 195 MovieClip Frame 3
stop();
Symbol 196 Button
on (release) {
tellTarget ("fl_ql") {
gotoAndStop (1);
};
setProperty(_parent, _quality , "high");
}
Symbol 197 Button
on (release) {
tellTarget ("fl_ql") {
gotoAndStop (2);
};
setProperty(_parent, _quality , "medium");
}
Symbol 198 Button
on (release) {
tellTarget ("fl_ql") {
gotoAndStop (3);
};
setProperty(_parent, _quality , "low");
}
Symbol 199 Button
on (release) {
tellTarget ("op4") {
gotoAndStop (1);
};
_root.closesound = false;
}
Symbol 200 Button
on (release) {
tellTarget ("op4") {
gotoAndStop (2);
};
_root.closesound = true;
}
Symbol 201 Button
on (release) {
tellTarget ("op3") {
gotoAndStop (1);
};
_root.closecharanimations = false;
}
Symbol 202 Button
on (release) {
tellTarget ("op3") {
gotoAndStop (2);
};
_root.closecharanimations = true;
}
Symbol 203 Button
on (release) {
tellTarget ("op1") {
gotoAndStop (1);
};
_root.closeallanimations = false;
}
Symbol 204 Button
on (release) {
tellTarget ("op1") {
gotoAndStop (2);
};
_root.closeallanimations = true;
}
Symbol 209 Button
on (release) {
_root.lev = 0;
_root.rockvertical = 0;
_root.charvertical = 0;
_root.rockhorizontal = 0;
_root.charhorizontal = 0;
_root.time = "00";
mapWidth = _root.mapwidth;
mapHeight = _root.mapheight;
var i = 0;
while (i < mapHeight) {
var j = 0;
while (j < mapWidth) {
_root.level1map[i][j] = 0;
_root[(("tileblocked_x_" + j) + "_y_") + i] = false;
_root[(("rocktile_x_" + j) + "_y_") + i] = false;
removeMovieClip((("t_" + i) + "_") + j);
j++;
}
i++;
}
removeMovieClip("char");
removeMovieClip("complete");
removeMovieClip("time");
stopAllSounds();
gotoAndPlay (20);
}
Symbol 213 Button
on (release) {
_root.lev = int(_root.lev) - 1;
tellTarget (_parent) {
gotoAndStop ("nextlevel");
};
}
Symbol 227 Button
on (release) {
getURL ("http://www.eskimogames.com", "_blank");
}
Symbol 230 Button
on (release) {
getURL ("http://www.eskimolegend.co.uk/eskimogames/pushit/pushit.asp", "_blank");
}