Frame 1
function sitelock(urls_allowed) {
lock = false;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (_reg0 in urls_allowed) {
Set(_reg0, "x");
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_visible = false;
}
}
urls_allowed = ["andkon.com", "www.andkon.com"];
sitelock(urls_allowed);
stop();
Stage.showMenu = false;
Instance of Symbol 22 MovieClip in Frame 1
on (release) {
getURL ("http://www.andkon.com/arcade/", "blank");
}
Instance of Symbol 131 MovieClip "planimation" in Frame 1
onClipEvent (load) {
totalb = _root.getBytesTotal();
totalkb = int(totalb / 1024);
}
onClipEvent (enterFrame) {
var loadedb = _root.getBytesLoaded();
if (loadedb == totalb) {
this.gotoAndStop(100);
} else {
loadedkb = int(loadedb / 1024);
percent = (loadedb / totalb) * 100;
_root.planimation.gotoAndStop(int(percent));
_root.planimation.percent.text = percent + "%";
pl1 = ("" + int(percent)) + "%";
pl2 = ((("" + loadedkb) + " / ") + totalkb) + " kb";
}
}
Instance of Symbol 145 MovieClip "flashbacks" in Frame 1
onClipEvent (enterFrame) {
this._x = _root.cam._x;
}
Frame 2
function onEnterFrame() {
tt++;
if (tt > 150) {
_root.flashbacks.gotoAndStop("next");
}
}
tt = 0;
onMouseDown = function () {
if (tt > 90) {
_root.flashbacks.gotoAndStop("next");
}
};
Frame 3
function onEnterFrame() {
tt++;
if (tt > 120) {
_root.flashbacks.gotoAndStop("next");
}
}
tt = 0;
onMouseDown = function () {
if (tt > 60) {
_root.flashbacks.gotoAndStop("next");
}
};
Instance of Symbol 21 MovieClip in Frame 3
on (release) {
getURL ("http://www.andkon.com/arcade/", "blank");
}
Frame 4
function draw() {
}
function onEnterFrame() {
}
function onMouseDown() {
}
stop();
Instance of Symbol 173 MovieClip "playgame" in Frame 4
on (release) {
_root.flashbacks.gotoAndStop("levels");
}
on (rollOver) {
_root.pen.once = true;
_root.pen.destY = _y;
_root.pen2.once = true;
_root.pen2.destY = _y;
}
Instance of Symbol 175 MovieClip in Frame 4
on (release) {
_root.flashbacks.gotoAndStop("tutorial");
}
on (rollOver) {
_root.pen.once = true;
_root.pen.destY = _y;
_root.pen2.once = true;
_root.pen2.destY = _y;
}
Instance of Symbol 177 MovieClip in Frame 4
on (release) {
getURL ("http://www.andkon.com/arcade/", "blank");
}
on (rollOver) {
if ((!_root.pen.once) && (!_root.pen2.once)) {
_root.pen._y = 420;
_root.pen2._y = 420;
_root.pen.once = true;
_root.pen2.once = true;
}
_root.pen.destY = _y;
_root.pen2.destY = _y;
}
Instance of Symbol 178 MovieClip in Frame 4
on (release) {
getURL ("http://www.andkon.com/arcade/", "blank");
}
Instance of Symbol 184 MovieClip "pen" in Frame 4
onClipEvent (load) {
speed = 5;
once = false;
destY = 0;
}
onClipEvent (enterFrame) {
if (once) {
_y = (_y - ((_y - destY) / speed));
}
}
Instance of Symbol 184 MovieClip "pen22" in Frame 4
onClipEvent (load) {
speed = 5;
once = false;
destY = 0;
}
onClipEvent (enterFrame) {
if (once) {
_y = (_y - ((_y - destY) / speed));
}
}
Frame 6
wide.levelcode = "Take it Easy";
function draw() {
if (Key.isDown(81)) {
x = _xmouse;
if (once) {
y = _ymouse;
once = false;
}
}
if (Key.isDown(69)) {
y = _ymouse;
if (once) {
x = _xmouse;
once = false;
}
}
if ((!Key.isDown(81)) && (!Key.isDown(69))) {
once = true;
x = _xmouse;
y = _ymouse;
}
land.lineStyle(25, 0, 100);
land.lineTo(x, y);
}
var MouseD = false;
var once = true;
player._x = spawn._x;
player._y = spawn._y;
cam._x = player._x;
screen._x = player._x;
wode._x = player._x;
wide.level = 1;
wide.deaths = 0;
wide.gotoAndStop("Lframe");
land.removeMovieClip();
onMouseDown = function () {
if (Key.isDown(81)) {
x = _xmouse;
if (once) {
y = _ymouse;
once = false;
}
}
if (Key.isDown(69)) {
y = _ymouse;
if (once) {
x = _xmouse;
once = false;
}
}
if ((!Key.isDown(81)) && (!Key.isDown(69))) {
once = true;
x = _xmouse;
y = _ymouse;
}
land.moveTo(x, y);
MouseD = true;
};
onMouseUp = function () {
MouseD = false;
once = true;
};
createEmptyMovieClip("land", 100);
onMouseMove = function () {
updateAfterEvent();
if (MouseD) {
draw();
}
};
Instance of Symbol 19 MovieClip "bg" in Frame 6
onClipEvent (load) {
this.cacheAsBitmap();
}
Instance of Symbol 193 MovieClip "flag" in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("next");
}
}
Instance of Symbol 199 MovieClip "player" in Frame 6
onClipEvent (load) {
var landtouch = false;
var scale = _xscale;
var w = (_width / 2);
var h = (_height / 2);
var flagx = _root.flag._x;
var ran = 0;
var xspeed = 0;
var yspeed = 0;
var landfric = 0.9;
var airfric = 0.95;
var yspdinc = 1;
var xspdinc = 0.75;
var jump = 10;
}
onClipEvent (enterFrame) {
xspeed = xspeed * landfric;
yspeed = yspeed * airfric;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
if (Key.isDown(37) || (Key.isDown(65))) {
xspeed = xspeed - xspdinc;
if (landtouch) {
ran++;
}
}
if (Key.isDown(39) || (Key.isDown(68))) {
xspeed = xspeed + xspdinc;
if (landtouch) {
ran++;
}
}
if (ran >= 3) {
_root.phold.attachMovie("particle", "particle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
ran = 0;
}
if (_root.land.hitTest(_x, (_y + h) - 25, true)) {
while (_root.land.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y-1);
}
}
if (_root.land.hitTest(_x, _y, true)) {
if (yspeed > 10) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
}
landtouch = true;
yspeed = 0;
if (Key.isDown(38) || (Key.isDown(87))) {
yspeed = -jump;
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
}
} else {
landtouch = false;
yspeed = yspeed + yspdinc;
}
if (_root.land.hitTest(_x + w, _y - h, true) || (_root.land.hitTest(_x + w, ((h * 2) / 6) * 400, true))) {
xspeed = 0;
_x = (_x - 2);
}
if (_root.land.hitTest(_x - w, _y - h, true) || (_root.land.hitTest(_x - w, _y - (((h * 2) / 6) * 400), true))) {
xspeed = 0;
_x = (_x + 2);
}
if (_root.land.hitTest(_x, _y - (h * 2), true)) {
yspeed = 0;
_y = (_y + 2);
}
if ((_y > (400 + (h * 2))) || (_y < (-(h * 2)))) {
_root.flashbacks.gotoAndStop("restart");
}
if (_root.cam._x > _root.flag._x) {
_root.cam._x = _root.flag._x;
}
if (_root.cam._x < 0) {
_root.cam._x = 0;
}
_root.cam._x = _root.cam._x - ((_root.cam._x - _x) / 10);
_root.wide._x = _root.cam._x;
_root.wide._rotation = _root.cam._rotation;
_root.screen._x = _root.cam._x;
_root.cam._rotation = _root.cam._rotation - ((_root.cam._rotation - _rotation) / 10);
}
Instance of Symbol 201 MovieClip "spawn" in Frame 6
onClipEvent (load) {
_visible = false;
}
Frame 7
wide.levelcode = "Baby Steps";
Frame 8
wide.levelcode = "A Simple Concept";
Frame 9
wide.levelcode = "Spinning Pencil";
Frame 10
wide.levelcode = "Spiral Staircase";
Frame 11
wide.levelcode = "Watch your Head";
Instance of Symbol 271 MovieClip "ball1" in Frame 11
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 11
onClipEvent (load) {
_visible = false;
}
Frame 12
wide.levelcode = "Go the Right Way";
Frame 13
wide.levelcode = "Ink Array";
Instance of Symbol 271 MovieClip "ball2" in Frame 13
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 13
onClipEvent (load) {
_visible = false;
}
Frame 14
wide.levelcode = "Hidden Tunnel";
Instance of Symbol 271 MovieClip "ball3" in Frame 14
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Frame 15
wide.levelcode = "Angry Pencils";
Frame 16
wide.levelcode = "Diagonal Speedway";
Instance of Symbol 271 MovieClip "ball4" in Frame 16
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "spawn" in Frame 16
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 16
onClipEvent (load) {
_visible = false;
}
Frame 17
wide.levelcode = "Don't Fall";
Instance of Symbol 271 MovieClip "ball5" in Frame 17
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 17
onClipEvent (load) {
_visible = false;
}
Frame 18
wide.levelcode = "Stairway to Heaven";
Frame 19
wide.levelcode = "Plow of Ink";
Instance of Symbol 298 MovieClip "plow1" in Frame 19
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Frame 20
wide.levelcode = "Very Bouncy";
Instance of Symbol 298 MovieClip "plow2" in Frame 20
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 298 MovieClip "plow3" in Frame 20
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Frame 21
wide.levelcode = "Heads Up";
Instance of Symbol 298 MovieClip "plow4" in Frame 21
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 271 MovieClip "ball6" in Frame 21
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 21
onClipEvent (load) {
_visible = false;
}
Frame 22
wide.levelcode = "Seemingly Easy";
Instance of Symbol 271 MovieClip "ball7" in Frame 22
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Frame 23
wide.levelcode = "Mirror Image";
Frame 24
wide.levelcode = "Rush Hour";
Instance of Symbol 298 MovieClip "plow8" in Frame 24
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 298 MovieClip "plow9" in Frame 24
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 298 MovieClip "plow10" in Frame 24
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Frame 25
wide.levelcode = "Average Commonality";
Instance of Symbol 298 MovieClip "plow11" in Frame 25
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 271 MovieClip "ball8" in Frame 25
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 25
onClipEvent (load) {
_visible = false;
}
Frame 26
wide.levelcode = "Up and Away";
Frame 27
wide.levelcode = "Trick Shot";
Instance of Symbol 271 MovieClip "ball9" in Frame 27
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 27
onClipEvent (load) {
_visible = false;
}
Frame 28
wide.levelcode = "Maze of Ink";
Instance of Symbol 298 MovieClip "plow12" in Frame 28
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Frame 29
wide.levelcode = "Ink Overload";
Instance of Symbol 271 MovieClip "ball10" in Frame 29
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Frame 30
wide.levelcode = "Ink Slide";
Instance of Symbol 271 MovieClip "ball11" in Frame 30
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Frame 31
wide.levelcode = "Generic Mix";
Instance of Symbol 271 MovieClip "ball13" in Frame 31
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 298 MovieClip "plow13" in Frame 31
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Frame 32
wide.levelcode = "Plows and Portals";
Instance of Symbol 298 MovieClip "plow14" in Frame 32
onClipEvent (load) {
var scale = "left";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 298 MovieClip "plow15" in Frame 32
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Frame 33
wide.levelcode = "General Dose";
Instance of Symbol 298 MovieClip "plow16" in Frame 33
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 298 MovieClip "plow17" in Frame 33
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 271 MovieClip "ball14" in Frame 33
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 33
onClipEvent (load) {
_visible = false;
}
Frame 34
wide.levelcode = "Plow Death Trap";
Instance of Symbol 298 MovieClip "plow18" in Frame 34
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 298 MovieClip "plow21" in Frame 34
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 298 MovieClip "plow19" in Frame 34
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 298 MovieClip "plow20" in Frame 34
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Frame 35
wide.levelcode = "Ending Conclusion";
function draw() {
if (Key.isDown(81)) {
x = _xmouse;
if (once) {
y = _ymouse;
once = false;
}
}
if (Key.isDown(69)) {
y = _ymouse;
if (once) {
x = _xmouse;
once = false;
}
}
if ((!Key.isDown(81)) && (!Key.isDown(69))) {
once = true;
x = _xmouse;
y = _ymouse;
}
land.lineStyle(25, 0, 100);
land.lineTo(x, y);
}
onMouseDown = function () {
if (Key.isDown(81)) {
x = _xmouse;
if (once) {
y = _ymouse;
once = false;
}
}
if (Key.isDown(69)) {
y = _ymouse;
if (once) {
x = _xmouse;
once = false;
}
}
if ((!Key.isDown(81)) && (!Key.isDown(69))) {
once = true;
x = _xmouse;
y = _ymouse;
}
land.moveTo(x, y);
MouseD = true;
};
onMouseUp = function () {
MouseD = false;
once = true;
};
createEmptyMovieClip("land", 100);
onMouseMove = function () {
updateAfterEvent();
if (MouseD) {
draw();
}
};
Instance of Symbol 298 MovieClip "plow22" in Frame 35
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 271 MovieClip "ball15" in Frame 35
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 35
onClipEvent (load) {
_visible = false;
}
Frame 36
wide.levelcode = "The Intro of the End";
function draw() {
}
function onEnterFrame() {
}
function onMouseDown() {
_root.flashbacks.gotoAndStop("next");
}
land.removeMovieClip();
stop();
_root.cam._x = Stage.width / 2;
_root.cam._y = Stage.height / 2;
_root.wide._x = Stage.width / 2;
_root.wide._y = Stage.height / 2;
Frame 37
wide.levelcode = "The End of the End";
function draw() {
if (Key.isDown(81)) {
x = _xmouse;
if (once) {
y = _ymouse;
once = false;
}
}
if (Key.isDown(69)) {
y = _ymouse;
if (once) {
x = _xmouse;
once = false;
}
}
if ((!Key.isDown(81)) && (!Key.isDown(69))) {
once = true;
x = _xmouse;
y = _ymouse;
}
land.lineStyle(25, 0, 100);
land.lineTo(x, y);
}
function onMouseDown() {
}
onMouseDown = function () {
if (Key.isDown(81)) {
x = _xmouse;
if (once) {
y = _ymouse;
once = false;
}
}
if (Key.isDown(69)) {
y = _ymouse;
if (once) {
x = _xmouse;
once = false;
}
}
if ((!Key.isDown(81)) && (!Key.isDown(69))) {
once = true;
x = _xmouse;
y = _ymouse;
}
land.moveTo(x, y);
MouseD = true;
};
onMouseUp = function () {
MouseD = false;
once = true;
};
createEmptyMovieClip("land", 100);
onMouseMove = function () {
updateAfterEvent();
if (MouseD) {
draw();
}
};
wide.level = "31";
bosshealth = 100;
Instance of Symbol 193 MovieClip "flag" in Frame 37
onClipEvent (enterFrame) {
}
Instance of Symbol 199 MovieClip "player" in Frame 37
onClipEvent (load) {
var landtouch = false;
var scale = _xscale;
var w = (_width / 2);
var h = (_height / 2);
var flagx = _root.flag._x;
var ran = 0;
var xspeed = 0;
var yspeed = 0;
var landfric = 0.9;
var airfric = 0.95;
var yspdinc = 1;
var xspdinc = 0.75;
var jump = 10;
}
onClipEvent (enterFrame) {
xspeed = xspeed * landfric;
yspeed = yspeed * airfric;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
if (Key.isDown(37) || (Key.isDown(65))) {
xspeed = xspeed - xspdinc;
if (landtouch) {
ran++;
}
}
if (Key.isDown(39) || (Key.isDown(68))) {
xspeed = xspeed + xspdinc;
if (landtouch) {
ran++;
}
}
if (ran >= 3) {
_root.phold.attachMovie("particle", "particle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
ran = 0;
}
if (_root.land.hitTest(_x, (_y + h) - 25, true) || (_root.pboss.hitTest(_x, (_y + h) - 25, true))) {
while (_root.land.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y - 1E-5);
}
}
if (_root.land.hitTest(_x, _y, true) || (_root.pboss.hitTest(_x, _y, true))) {
if (yspeed > 10) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
}
landtouch = true;
yspeed = 0;
if (Key.isDown(38) || (Key.isDown(87))) {
yspeed = -jump;
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
}
} else {
landtouch = false;
yspeed = yspeed + yspdinc;
}
if (((_root.land.hitTest(_x + w, _y - h, true) || (_root.land.hitTest(_x + w, ((h * 2) / 6) * 400, true))) || (_root.pboss.hitTest(_x + w, _y - h, true))) || (_root.pboss.hitTest(_x + w, ((h * 2) / 6) * 400, true))) {
xspeed = 0;
_x = (_x - 2);
}
if (((_root.land.hitTest(_x - w, _y - h, true) || (_root.land.hitTest(_x - w, _y - (((h * 2) / 6) * 400), true))) || (_root.pboss.hitTest(_x - w, _y - h, true))) || (_root.pboss.hitTest(_x - w, _y - (((h * 2) / 6) * 400), true))) {
xspeed = 0;
_x = (_x + 2);
}
if (_root.land.hitTest(_x, _y - (h * 2), true) || (_root.pboss.hitTest(_x, _y - (h * 2), true))) {
yspeed = 0;
_y = (_y + 2);
}
if ((_y > (400 + (h * 2))) || (_y < (-(h * 2)))) {
_root.flashbacks.gotoAndStop("restart");
}
if (_root.cam._x > _root.flag._x) {
_root.cam._x = _root.flag._x;
}
if (_root.cam._x < 0) {
_root.cam._x = 0;
}
_root.cam._x = _root.cam._x - ((_root.cam._x - _x) / 10);
_root.wide._x = _root.cam._x;
_root.wide._rotation = _root.cam._rotation;
_root.screen._x = _root.cam._x;
_root.cam._rotation = _root.cam._rotation - ((_root.cam._rotation - _rotation) / 10);
}
Instance of Symbol 337 MovieClip "health" in Frame 37
onClipEvent (load) {
once = true;
}
onClipEvent (enterFrame) {
_root.bosshealth = _root.bosshealth - 0;
_x = _root.cam._x;
this.bar._width = _root.bosshealth * 2;
if (_root.bosshealth <= 0) {
if (once) {
_root.winner.play();
_root.pboss.stop();
_root.pboss.bosshurt = false;
_root.pboss.boss.play();
_root.winner.deathrepeat = _root.wide.deaths;
once = false;
}
}
}
Instance of Symbol 340 MovieClip "winner" in Frame 37
onClipEvent (enterFrame) {
this._x = _root.wide._x;
}
Frame 39
wide.levelcode = "Tutorial Part 1/2";
function draw() {
if (Key.isDown(81)) {
x = _xmouse;
if (once) {
y = _ymouse;
once = false;
}
}
if (Key.isDown(69)) {
y = _ymouse;
if (once) {
x = _xmouse;
once = false;
}
}
if ((!Key.isDown(81)) && (!Key.isDown(69))) {
once = true;
x = _xmouse;
y = _ymouse;
}
land.lineStyle(25, 0, 100);
land.lineTo(x, y);
}
var MouseD = false;
var once = true;
player._x = spawn._x;
player._y = spawn._y;
cam._x = player._x;
screen._x = player._x;
wode._x = player._x;
wide.level = 1;
wide.deaths = 0;
wide.gotoAndStop("Lframe");
land.removeMovieClip();
onMouseDown = function () {
if (Key.isDown(81)) {
x = _xmouse;
if (once) {
y = _ymouse;
once = false;
}
}
if (Key.isDown(69)) {
y = _ymouse;
if (once) {
x = _xmouse;
once = false;
}
}
if ((!Key.isDown(81)) && (!Key.isDown(69))) {
once = true;
x = _xmouse;
y = _ymouse;
}
land.moveTo(x, y);
MouseD = true;
};
onMouseUp = function () {
MouseD = false;
once = true;
};
createEmptyMovieClip("land", 100);
onMouseMove = function () {
updateAfterEvent();
if (MouseD) {
draw();
}
};
Instance of Symbol 193 MovieClip "flag" in Frame 39
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("next");
}
}
Instance of Symbol 199 MovieClip "player" in Frame 39
onClipEvent (load) {
var landtouch = false;
var scale = _xscale;
var w = (_width / 2);
var h = (_height / 2);
var flagx = _root.flag._x;
var ran = 0;
var xspeed = 0;
var yspeed = 0;
var landfric = 0.9;
var airfric = 0.95;
var yspdinc = 1;
var xspdinc = 0.75;
var jump = 10;
}
onClipEvent (enterFrame) {
xspeed = xspeed * landfric;
yspeed = yspeed * airfric;
_x = (_x + xspeed);
_y = (_y + yspeed);
if (Math.round(xspeed) == 0) {
xspeed = 0;
}
if (Key.isDown(37) || (Key.isDown(65))) {
xspeed = xspeed - xspdinc;
if (landtouch) {
ran++;
}
}
if (Key.isDown(39) || (Key.isDown(68))) {
xspeed = xspeed + xspdinc;
if (landtouch) {
ran++;
}
}
if (ran >= 3) {
_root.phold.attachMovie("particle", "particle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
ran = 0;
}
if (_root.land.hitTest(_x, (_y + h) - 25, true)) {
while (_root.land.hitTest(_x, (_y + h) - 25, true)) {
_y = (_y - 0.1);
}
}
if (_root.land.hitTest(_x, _y, true)) {
if (yspeed > 10) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
}
landtouch = true;
yspeed = 0;
if (Key.isDown(38) || (Key.isDown(87))) {
yspeed = -jump;
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
}
} else {
landtouch = false;
yspeed = yspeed + yspdinc;
}
if (_root.land.hitTest(_x + w, _y - h, true) || (_root.land.hitTest(_x + w, ((h * 2) / 6) * 400, true))) {
xspeed = 0;
_x = (_x - 2);
}
if (_root.land.hitTest(_x - w, _y - h, true) || (_root.land.hitTest(_x - w, _y - (((h * 2) / 6) * 400), true))) {
xspeed = 0;
_x = (_x + 2);
}
if (_root.land.hitTest(_x, _y - (h * 2), true)) {
yspeed = 0;
_y = (_y + 2);
}
if ((_y > (400 + (h * 2))) || (_y < (-(h * 2)))) {
_root.spawn.play();
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
xspeed = 0;
yspeed = 0;
}
if (_root.cam._x > _root.flag._x) {
_root.cam._x = _root.flag._x;
}
if (_root.cam._x < 0) {
_root.cam._x = 0;
}
_root.cam._x = _root.cam._x - ((_root.cam._x - _x) / 10);
_root.wide._x = _root.cam._x;
_root.wide._rotation = _root.cam._rotation;
_root.screen._x = _root.cam._x;
_root.cam._rotation = _root.cam._rotation - ((_root.cam._rotation - _rotation) / 10);
}
Instance of Symbol 201 MovieClip "spawn" in Frame 39
onClipEvent (load) {
_visible = false;
}
Frame 40
wide.levelcode = "Tutorial Part 2/2";
Instance of Symbol 193 MovieClip "flag" in Frame 40
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("menu");
}
}
Instance of Symbol 298 MovieClip "plowt1" in Frame 40
onClipEvent (load) {
var scale = "right";
var w = _width;
var h = _height;
var xspeed = 0;
var yspeed = 0;
var speed = 0.75;
var fric = 0.9;
var grav = 1;
var knock = 15;
var pspawn = 0;
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * fric;
yspeed = yspeed + grav;
pspawn++;
if ((!Math.floor(xspeed)) == 0) {
if (pspawn >= 3) {
_root.phold.attachMovie("plowparticle", "plowparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
pspawn = 0;
}
}
if (scale == "right") {
xspeed = xspeed + speed;
if ((((!_root.land.hitTest(_x + w, _y + 10, true)) || (_root.land.hitTest(_x + w, _y - (h / 4), true))) || (_root.land.hitTest(_x + w, _y - (h / 2), true))) || (_root.land.hitTest(_x + w, (_y - h) + 10, true))) {
scale = "left";
}
}
if (scale == "left") {
xspeed = xspeed - speed;
if ((((!_root.land.hitTest(_x - w, _y + 10, true)) || (_root.land.hitTest(_x - w, _y - (h / 4), true))) || (_root.land.hitTest(_x - w, _y - (h / 2), true))) || (_root.land.hitTest(_x - w, (_y - h) + 10, true))) {
scale = "right";
}
}
if (this.hitTest(_root.player.hit)) {
if (_root.player._x > _x) {
_root.player.xspeed = knock;
xspeed = (-knock) / 2;
} else {
_root.player.xspeed = -knock;
xspeed = knock / 2;
}
}
while (_root.land.hitTest(_x, _y - 5, true)) {
yspeed = 0;
_y = (_y-1);
}
}
Instance of Symbol 271 MovieClip "ballt1" in Frame 40
onClipEvent (load) {
_x = _root.bspawn._x;
_y = _root.bspawn._y;
size = _width;
r = _width / 2;
xspeed = 0;
yspeed = 0;
gravity = 0.5;
array = new Array(360);
}
onClipEvent (enterFrame) {
i = 0;
while (i < 360) {
x = (_x + xspeed) + (r * Math.cos((i / 180) * Math.PI));
y = (_y + yspeed) - (r * Math.sin((i / 180) * Math.PI));
(_root.land.hitTest(x, y, true) ? ((array[i] = 1)) : ((array[i] = 0)));
i = i + 5;
}
strt = 0;
end = 0;
i = 0;
while (i < 360) {
(((!last) and array[i]) ? ((strt = i)) : 0);
((last and (!array[i])) ? ((end = i)) : 0);
last = array[i];
i = i + 5;
}
((strt > end) ? ((angle = ((strt + end) / 2) + 180)) : ((angle = (strt + end) / 2)));
yspeed = yspeed + gravity;
angle2 = (Math.atan2(yspeed, xspeed) * 180) / Math.PI;
angle = (angle * 2) + angle2;
speed = Math.sqrt((xspeed * xspeed) + (yspeed * yspeed));
if (strt != end) {
_root.phold.attachMovie("jumpparticle", "jumpparticle" + _root.phold.getNextHighestDepth(), _root.phold.getNextHighestDepth(), {_x:_x, _y:_y});
_width = (_width * 0.75);
_height = (_height * 0.75);
r = _width / 2;
xspeed = (-speed) * Math.sin(((angle + 90) / 180) * Math.PI);
yspeed = (-speed) * Math.cos(((angle + 90) / 180) * Math.PI);
}
_y = (_y + yspeed);
_x = (_x + xspeed);
if ((_y > (400 + (r * 4))) || (_width <= 5)) {
xspeed = 0;
yspeed = 0;
_x = _root.bspawn._x;
_y = _root.bspawn._y;
_width = size;
_height = size;
}
if (yspeed > 10) {
yspeed = 10;
}
if (this.hitTest(_root.player.hit)) {
_root.player.alarm.play();
}
}
Instance of Symbol 201 MovieClip "bspawn" in Frame 40
onClipEvent (load) {
_visible = false;
}
Symbol 2 MovieClip Frame 1
function onEnterFrame() {
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + Math.random();
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
}
xspeed = random(7) - 3;
yspeed = -5 + (Math.random() * 4);
size = 50 + random(150);
_xscale = size;
_yscale = size;
Symbol 4 MovieClip [plowparticle] Frame 25
removeMovieClip(this);
removeMovieClip(_parent);
Symbol 7 MovieClip [pencilink] Frame 1
Symbol 7 MovieClip [pencilink] Frame 450
removeMovieClip(this);
stop();
Symbol 8 MovieClip Frame 1
function onEnterFrame() {
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + Math.random();
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
}
xspeed = random(9) - 4;
yspeed = -5 + (Math.random() * 4);
size = 50 + random(150);
_xscale = size;
_yscale = size;
Symbol 10 MovieClip Frame 25
removeMovieClip(this);
removeMovieClip(_parent);
Symbol 11 MovieClip [jumpparticle] Frame 1
gotoAndStop(random(5) + 2);
Symbol 12 MovieClip Frame 1
function onEnterFrame() {
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + Math.random();
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
}
xspeed = -2 + (Math.random() * 3);
yspeed = -5 + (Math.random() * 4);
size = 50 + random(150);
_xscale = size;
_yscale = size;
Symbol 14 MovieClip Frame 25
removeMovieClip(this);
removeMovieClip(_parent);
Symbol 27 MovieClip Frame 1
Instance of Symbol 28 MovieClip "up" in Symbol 131 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (_root.player.xspeed * 2.5));
}
Symbol 131 MovieClip Frame 100
stop();
Instance of Symbol 130 MovieClip in Symbol 131 MovieClip Frame 100
on (release) {
if (!_root.lock) {
_root.flashbacks.gotoAndStop("next");
}
}
Symbol 138 MovieClip Frame 6
_root.MouseD = false;
_root.wide.level++;
_root.player._alpha = 100;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.nextFrame();
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.cam._x = _root.player._x;
_root.screen._x = _root.player._x;
_root.wode._x = _root.player._x;
Symbol 138 MovieClip Frame 11
_root.flashbacks.gotoAndStop("stop");
Symbol 139 MovieClip Frame 6
_root.MouseD = false;
_root.wide.deaths++;
_root.player._alpha = 100;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.nextFrame();
_root.prevFrame();
_root.player._x = _root.spawn._x;
_root.player._y = _root.spawn._y;
_root.cam._x = _root.player._x;
_root.screen._x = _root.player._x;
_root.wode._x = _root.player._x;
Symbol 139 MovieClip Frame 11
_root.flashbacks.gotoAndStop("stop");
Symbol 140 MovieClip Frame 6
_root.MouseD = false;
_root.wide.deaths++;
_root.player._alpha = 100;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
_root.nextFrame();
_root.prevFrame();
Symbol 140 MovieClip Frame 11
_root.flashbacks.gotoAndStop("stop");
Symbol 141 MovieClip Frame 6
_root.gotoAndStop("mainmenu");
Symbol 141 MovieClip Frame 11
_root.flashbacks.gotoAndStop("stop");
Symbol 142 MovieClip Frame 6
_root.gotoAndStop("trophiemenu");
Symbol 142 MovieClip Frame 11
_root.flashbacks.gotoAndStop("stop");
Symbol 143 MovieClip Frame 6
_root.gotoAndStop("tutorial");
Symbol 143 MovieClip Frame 11
_root.flashbacks.gotoAndStop("stop");
Symbol 144 MovieClip Frame 6
_root.gotoAndStop("levels");
Symbol 144 MovieClip Frame 11
_root.flashbacks.gotoAndStop("stop");
Symbol 145 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
Symbol 183 MovieClip Frame 1
stop();
if ((_root._currentframe == 37) || (_root._currentframe == 38)) {
nextFrame();
}
Instance of Symbol 181 MovieClip "hurt" in Symbol 183 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit) && (_root.pboss.bosshurt || (_currentframe != 38))) {
_root.flashbacks.gotoAndStop("restart");
}
}
Instance of Symbol 181 MovieClip in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
var once = true;
var once2 = true;
var damageon = false;
var i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root._currentframe == 37) {
if (once2) {
damageon = true;
once2 = false;
}
}
if (_root.player.yspeed > 0) {
if (once) {
_root.player.yspeed = (-_root.player.yspeed) - 7.5;
once = false;
}
}
} else {
once = true;
}
}
Symbol 183 MovieClip Frame 2
stop();
Instance of Symbol 181 MovieClip in Symbol 183 MovieClip Frame 2
onClipEvent (load) {
var once = true;
var once2 = true;
var damageon = false;
var i = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root._currentframe == 37) {
if (once2) {
damageon = true;
once2 = false;
}
}
if (_root.player.yspeed > 0) {
if (once) {
_root.player.yspeed = (-_root.player.yspeed) - 7.5;
once = false;
}
}
} else {
once = true;
}
if (damageon) {
if (i < 13) {
_root.pboss.stop();
_root.pboss._alpha = _root.pboss._alpha - 7.7;
_root.pboss.bossdamage = false;
_root.bosshealth--;
i++;
} else {
_root.pboss.gotoAndPlay(1);
_root.pboss._alpha = 100;
trace(_root.pboss._alpha);
damageon = false;
once2 = true;
i = 0;
}
}
}
Symbol 183 MovieClip Frame 31
stop();
Symbol 186 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 189 Button
on (release) {
_root.flashbacks.gotoAndStop("menu");
}
Symbol 198 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip "up" in Symbol 199 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + (_root.player.xspeed * 2.5));
}
Symbol 201 MovieClip Frame 1
stop();
_visible = false;
Symbol 201 MovieClip Frame 5
_visible = true;
Symbol 206 Button
on (release) {
_root.flashbacks.gotoAndStop("restart");
}
Symbol 209 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 214 MovieClip Frame 5461
gotoAndPlay (11);
Symbol 214 MovieClip Frame 5462
stop();
Symbol 218 Button
on (release) {
_root.flashbacks.gotoAndStop("menu");
}
Symbol 220 Button
on (release) {
_root.wide.menusure.play();
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 15
stop();
Symbol 226 Button
on (release) {
if (_root.wide.menusure._currentframe < 14) {
_root.wide.menusure.play();
}
}
Symbol 227 Button
on (release) {
_root.flashbacks.gotoAndStop("menu");
}
Symbol 228 MovieClip Frame 1
stop();
Instance of Symbol 214 MovieClip in Symbol 233 MovieClip Frame 1
on (release) {
if (_currentframe < 5462) {
gotoAndStop (5462);
} else if (_currentframe == 5462) {
gotoAndPlay (11);
}
}
Instance of Symbol 232 MovieClip in Symbol 233 MovieClip Frame 1
on (release) {
getURL ("http://www.andkon.com/arcade/", "blank");
}
Symbol 235 MovieClip Frame 1
var copyrightNotice = "Copyright (c) 2006-2007 Sockpuppet Pty Ltd. All Rights Reserved. http://www.reanimator.net";
var reanimator = (new flash.geom.Transform(this));
var camera = (new flash.geom.Transform(this._parent));
var w = Stage.width;
var h = Stage.height;
this.onEnterFrame = function () {
this._parent.filters = this.filters;
var _local2 = reanimator.matrix;
camera.colorTransform = reanimator.colorTransform;
_local2.invert();
_local2.translate(w * 0.5, h * 0.5);
camera.matrix = _local2;
};
Instance of Symbol 250 MovieClip "tele1b" in Symbol 252 MovieClip Frame 1
onClipEvent (load) {
teleup = false;
teledown = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
teleup = true;
}
if (teleup) {
_root.player._alpha = _root.player._alpha - 5;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
if (_root.player._alpha <= 0) {
_root.player._x = _root.tele2._x;
_root.player._y = _root.tele2._y + 25;
teleup = false;
teledown = true;
}
}
if (teledown) {
_root.player._alpha = _root.player._alpha + 5;
_root.player.xspeed = 0;
_root.player.yspeed = 0;
if (_root.player._alpha >= 100) {
teledown = false;
}
}
}
Instance of Symbol 181 MovieClip in Symbol 259 MovieClip Frame 1
onClipEvent (load) {
var once = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.player.yspeed > 0) {
if (once) {
_root.player.yspeed = (-_root.player.yspeed) - 5;
once = false;
}
}
} else {
once = true;
}
}
Instance of Symbol 264 MovieClip in Symbol 265 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.player.xspeed = _root.player.xspeed - 2;
}
}
Instance of Symbol 181 MovieClip in Symbol 285 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.flashbacks.gotoAndStop("restart");
}
}
Symbol 334 MovieClip Frame 1
_alpha = 100;
gotoAndPlay(random(151));
bosshurt = false;
Symbol 334 MovieClip Frame 150
function onEnterFrame() {
if (chance == 0) {
if (once) {
_root.pboss._x = _root.player._x;
_root.pboss._y = (_root.player._y + random(401)) - 200;
gotoAndPlay ("slashrtl");
once = false;
}
}
if (chance == 1) {
if (once) {
_root.pboss._x = (_root.player._x + random(401)) - 200;
_root.pboss._y = _root.player._y;
gotoAndPlay ("slashutb");
once = false;
}
}
if (chance == 2) {
if (once) {
_root.pboss._x = (_root.player._x + random(401)) - 200;
_root.pboss._y = _root.player._y;
gotoAndPlay ("slashbtu");
once = false;
}
}
if (chance == 3) {
if (once) {
_root.pboss._x = _root.player._x;
_root.pboss._y = (_root.player._y + random(401)) - 200;
gotoAndPlay ("slashltr");
once = false;
}
}
if (chance == 4) {
if (once) {
_root.pboss._x = (_root.player._x + random(401)) - 200;
_root.pboss._y = _root.player._y;
gotoAndPlay ("dia1");
once = false;
}
}
if (chance == 5) {
if (once) {
_root.pboss._x = (_root.player._x + random(401)) - 200;
_root.pboss._y = _root.player._y;
gotoAndPlay ("dia2");
once = false;
}
}
if (chance == 6) {
if (once) {
_root.pboss._x = (_root.player._x + random(401)) - 200;
_root.pboss._y = _root.player._y;
gotoAndPlay ("dia3");
once = false;
}
}
if (chance == 7) {
if (once) {
_root.pboss._x = (_root.player._x + random(401)) - 200;
_root.pboss._y = _root.player._y;
gotoAndPlay ("dia4");
once = false;
}
}
if (bosshurt) {
_root.land.attachMovie("pencilink", "pencilink" + _root.land.getNextHighestDepth(), _root.land.getNextHighestDepth(), {_x:_root.pboss.boss._x + _root.pboss._x, _y:_root.pboss.boss._y + _root.pboss._y});
}
}
once = true;
chance = random(8);
Symbol 334 MovieClip Frame 179
bosshurt = true;
Symbol 334 MovieClip Frame 226
bosshurt = false;
Symbol 334 MovieClip Frame 256
gotoAndPlay (1);
Symbol 334 MovieClip Frame 284
bosshurt = true;
Symbol 334 MovieClip Frame 326
bosshurt = false;
Symbol 334 MovieClip Frame 356
gotoAndPlay (1);
Symbol 334 MovieClip Frame 386
bosshurt = true;
Symbol 334 MovieClip Frame 425
bosshurt = false;
Symbol 334 MovieClip Frame 455
gotoAndPlay (1);
Symbol 334 MovieClip Frame 485
bosshurt = true;
Symbol 334 MovieClip Frame 530
bosshurt = false;
Symbol 334 MovieClip Frame 560
gotoAndPlay (1);
Symbol 334 MovieClip Frame 561
bosshurt = true;
Symbol 334 MovieClip Frame 629
gotoAndPlay (1);
bosshurt = false;
Symbol 334 MovieClip Frame 630
bosshurt = true;
Symbol 334 MovieClip Frame 698
gotoAndPlay (1);
bosshurt = false;
Symbol 334 MovieClip Frame 699
bosshurt = true;
Symbol 334 MovieClip Frame 767
gotoAndPlay (1);
bosshurt = false;
Symbol 334 MovieClip Frame 768
bosshurt = true;
Symbol 334 MovieClip Frame 836
gotoAndPlay (1);
bosshurt = false;
Symbol 339 MovieClip Frame 1
function onEnterFrame() {
pnametran.text = pname.text;
}
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
function onEnterFrame() {
_root.player.xspeed = 0;
_root.player.yspeed = 0;
}
_root.wide.restartbutton.nextFrame();
Symbol 340 MovieClip Frame 30
stop();
_root.wide.menubutton.nextFrame();
Instance of Symbol 181 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player.hit)) {
_root.player.alarm.play();
}
}
Instance of Symbol 181 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (load) {
var once = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.player.yspeed > 0) {
if (once) {
_root.player.yspeed = (-_root.player.yspeed) - 7.5;
once = false;
}
}
} else {
once = true;
}
}
Symbol 368 MovieClip Frame 60
function onEnterFrame() {
if (_root.player._x > 200) {
play();
}
}
stop();
Symbol 368 MovieClip Frame 90
function onEnterFrame() {
if (_root.player._x > 525) {
play();
}
}
stop();
Symbol 368 MovieClip Frame 120
function onEnterFrame() {
if (_root.player._y < 150) {
play();
}
}
stop();
Symbol 368 MovieClip Frame 150
function onEnterFrame() {
if (_root.player._x > 1000) {
play();
}
}
stop();
Symbol 368 MovieClip Frame 180
function onEnterFrame() {
if (_root.player._x > 1350) {
play();
}
}
stop();
Symbol 368 MovieClip Frame 210
function onEnterFrame() {
if (_root.player._x > 1650) {
play();
}
}
stop();
Symbol 368 MovieClip Frame 240
function onEnterFrame() {
if (_root.player._x > 0) {
stop();
}
}
stop();
Symbol 389 MovieClip Frame 60
function onEnterFrame() {
if (_root.player._x > 700) {
play();
}
}
stop();
Symbol 389 MovieClip Frame 120
function onEnterFrame() {
if (_root.player._x > 1600) {
play();
}
}
stop();
Symbol 389 MovieClip Frame 190
function onEnterFrame() {
if (_root.player._x > 5000) {
play();
}
}
stop();