Frame 1
_lockroot = true;
Frame 5
stop();
ending = false;
Frame 83
gotoAndPlay("/:96");
Frame 95
stop();
Frame 140
gotoAndPlay("/:141");
Frame 141
_xscale = 200;
_yscale = 200;
Frame 142
Physics.centerOnStart();
Physics.gravity = true;
Frame 172
Physics.center = true;
Frame 173
stop();
Frame 245
_xscale = 200;
_yscale = 200;
Frame 246
Physics.centerOnStart();
Physics.gravity = true;
Frame 276
Physics.center = true;
Frame 277
stop();
Frame 305
gotoAndPlay("/:333");
Frame 332
gotoAndPlay("/:200");
Frame 378
_xscale = 200;
_yscale = 200;
Frame 379
Physics.centerOnStart();
Physics.gravity = true;
Frame 409
Physics.center = true;
Frame 410
stop();
Frame 481
gotoAndPlay("/:482");
Frame 484
Physics.centerOnStart();
Physics.gravity = true;
_xscale = 200;
_yscale = 200;
Frame 511
Physics.center = true;
Frame 512
stop();
Frame 541
_xscale = 100;
_yscale = 100;
_x = 0;
_y = 0;
Physics.center = false;
Physics.gravity = false;
Frame 542
stop();
Frame 569
gotoAndPlay("/:437");
Frame 574
stop();
Symbol 14 Button
on (press) {
gotoAndPlay("/:6");
}
Symbol 18 MovieClip Frame 1
if (!hasOwnProperty("_load05885818")) {
_load05885818 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 26 MovieClip Frame 1
if (!hasOwnProperty("_load058BBA98")) {
_load058BBA98 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 27 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var centerOnPinkie = function () {
tellTarget ("..") {
_parent._x = ((_parent.GroundChar._x * (_parent._xscale / 100)) * -1) + 280;
_parent._y = ((_parent.GroundChar._y * (_parent._yscale / 100)) * -1) + 205;
}
};
}
} else {
// unexpected jump
}
var centerOnStart = function () {
tellTarget ("..") {
_parent._x = ((_parent.Start._x * (_parent._xscale / 100)) * -1) + 280;
_parent._y = ((_parent.Start._y * (_parent._yscale / 100)) * -1) + 205;
}
};
// unexpected jump
// unexpected jump
var do_gravity = function () {
tellTarget ("..") {
delete _global.__resolve;
var a;
_global.__resolve = _global.__debugResolve;
var _local1 = _root.entities;
(in _local1);// not popped
if (_local1 != null) {
for (_reg0 in _local1) {
in _local1;
a = _local1[_reg0];
a = "_level0." add a;
a = eval (a);
_local1 = "dy";
a[_local1] = a[_local1] + 1;
}
if ((in _local1) != null) {
// unexpected jump
}
}
}
};
// unexpected jump
// unexpected jump
var do_hittest = function () {
tellTarget ("..") {
delete _global.__resolve;
var a;
_global.__resolve = _global.__debugResolve;
var _local1 = _root.entities;
(in _local1);// not popped
if (_local1 != null) {
for (_reg0 in _local1) {
in _local1;
a = _local1[_reg0];
a = "_level0." add a;
a = eval (a);
posx = a._x + a.dx;
posy = a._y + a.dy;
a.touching_floor = false;
while (!((a.dy >= 1) || (!_parent.terrain.hitTest(posx, (posy - (a._height / 2)) + 2, true)))) {
posy++;
clearInterval(a.g);
a.dy = 0;
}
while (!((a.dy <= -1) || (!_parent.terrain.hitTest(posx, (posy + (a._height / 2)) - 3, true)))) {
posy--;
if (a.dy > 1) {
a.stopping();
}
a.dy = 0;
a.dx = 0;
a.touching_floor = true;
}
while (!((a.dx >= 1) || (!_parent.terrain.hitTest(posx - (a._width / 3), posy, true)))) {
posx++;
a.dx = 0;
a.stopping();
}
while (!((a.dx <= -1) || (!_parent.terrain.hitTest(posx + (a._width / 3), posy, true)))) {
posx--;
a.dx = 0;
a.stopping();
}
if (a.dy > maxSpeed) {
a.dy = maxSpeed;
}
a._y = posy;
a._x = posx;
}
if ((in _local1) != null) {
// unexpected jump
}
}
}
};
// unexpected jump
// unexpected jump
maxSpeed = 12;
posx = 0;
posy = 0;
center = false;
gravity = false;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 27 MovieClip Frame 3
tellTarget ("..") {
if (gravity) {
do_gravity();
}
do_hittest();
if (center) {
centerOnPinkie();
}
};
gotoAndPlay (2);
Symbol 37 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
up = _y - (_height / 1.5);
down = _y;
}
} else {
// unexpected jump
}
};
stop();
Symbol 47 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 47 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar", _target);
var _local2 = (getProperty(getProperty("../GroundChar", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:174");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 58 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
nyx = new Color(a);
nyx.setRGB(16711680);
}
} else {
// unexpected jump
}
};
stop();
Symbol 62 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
active = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 62 MovieClip Frame 3
tellTarget ("..") {
active = false;
delete _global.__resolve;
var a;
_global.__resolve = _global.__debugResolve;
var _local1 = _root.entities;
(in _local1);// not popped
if (_local1 != null) {
for (_reg0 in _local1) {
in _local1;
a = _local1[_reg0];
a = "_level0." add a;
a = eval (a);
var _local3 = _height;
var _local2 = _width / 2;
getProperty(a, _target);
if (((_local2 < (getProperty(getProperty(a, _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty(a, _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty(a, _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty(a, _target), _y))) ? 0 : 1)))))))) {
_parent.terrain.platform1._y = _parent.terrain.platform1.up;
_parent.Path1.nyx.setRGB(10066176);
Up._yscale = 50;
active = true;
}
}
if ((in _local1) != null) {
// unexpected jump
}
}
if (!active) {
Up._yscale = 100;
_parent.terrain.platform1._y = _parent.terrain.platform1.down;
_parent.Path1.nyx.setRGB(26265);
}
};
gotoAndPlay (2);
Symbol 71 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var spawn = function () {
tellTarget ("..") {
_x = _parent.CubeDispenser._x;
_y = _parent.CubeDispenser._y;
dy = 0;
dx = 0;
}
};
}
} else {
// unexpected jump
}
dy = 0;
dx = 0;
_root.entities.push(_name);
spawn();
// unexpected jump
// unexpected jump
};
stop();
Symbol 73 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var near_box = function () {
tellTarget ("..") {
getProperty("../box", _target);
var _local3 = getProperty(getProperty("../box", _target), _x) - _x;
_local3 = getProperty(getProperty("../box", _target), _y) - _y;
if (2500 >= ((_local3 * _local3) + (_local3 * _local3))) {
return(true);
}
return(false);
}
};
}
} else {
// unexpected jump
}
_root.entities.push(_name);
dy = 0;
dx = 0;
touching_floor = false;
scale = _xscale;
// unexpected jump
// unexpected jump
};
stop();
Symbol 74 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var walking = function (sign) {
tellTarget ("..") {
_parent.dx = 5 * sign;
_parent._xscale = _parent.scale * sign;
_parent.walk._visible = true;
_parent.stand._visible = false;
_parent.flying._visible = false;
}
};
}
} else {
// unexpected jump
}
var stopping = function () {
tellTarget ("..") {
_parent.dx = 0;
_parent.walk._visible = false;
_parent.stand._visible = true;
_parent.flying._visible = false;
}
};
// unexpected jump
// unexpected jump
var takeoff = function () {
tellTarget ("..") {
jump = normal_jump / 2;
if (_parent.touching_floor) {
var _local1 = "_y";
_parent[_local1] = _parent[_local1] - 20;
_parent.dy = jump * -1;
}
_parent.walk._visible = false;
_parent.stand._visible = false;
_parent.flying._visible = true;
}
};
// unexpected jump
// unexpected jump
a = "";
normal_jump = 12;
has_box = false;
jump = 0;
box_side = 0;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 74 MovieClip Frame 3
tellTarget ("..") {
if (!((!Key.isDown(65)) || (!_parent.touching_floor))) {
walking(-1);
} else if (!((!Key.isDown(68)) || (!_parent.touching_floor))) {
walking(1);
} else if (_parent.touching_floor) {
stopping();
}
if (!((!Key.isDown(87)) && (_parent.touching_floor))) {
takeoff();
}
if (has_box) {
if (Key.isDown(37)) {
box_side = -20;
} else if (Key.isDown(39)) {
box_side = 20;
} else {
box_side = 0;
}
_parent._parent.box._x = _parent._x + box_side;
_parent._parent.box._y = _parent._y - 20;
_parent._parent.box.dy = -1;
}
_parent._parent.portal_gun._x = _parent._x + ((_parent._xscale < 0) ? -1 : (((_parent._xscale == 0) ? 0 : 1)));
_parent._parent.portal_gun._y = _parent._y - 10;
};
gotoAndPlay (2);
Symbol 75 Button
on (keyPress "<Space>") {
if (!has_box) {
if (!(((((_parent._parent.box._x - _parent._x) < 0) ? -1 : ((((_parent._parent.box._x - _parent._x) == 0) ? 0 : 1))) != ((_parent._xscale < 0) ? -1 : (((_parent._xscale == 0) ? 0 : 1)))) || (!_parent.near_box()))) {
has_box = true;
}
} else {
if (!((!Key.isDown(65)) && (!Key.isDown(68)))) {
_parent._parent.box.dx = ((_parent._xscale < 0) ? -1 : (((_parent._xscale == 0) ? 0 : 1))) * 7;
}
has_box = false;
}
}
Symbol 140 MovieClip Frame 2
tellTarget ("..") {
if (_visible) {
bounce_pinkiepie_right_gif.Up._visible = false;
bounce_pinkiepie_right_gif.Top._visible = false;
bounce_pinkiepie_right_gif.Bounce._visible = false;
bounce_pinkiepie_right_gif.Down._visible = false;
if (_parent.dy < 0) {
bounce_pinkiepie_right_gif.Up._visible = true;
} else if (!((_parent.dy != 0) || (_parent.touching_floor == true))) {
bounce_pinkiepie_right_gif.Top._visible = true;
bounce_pinkiepie_right_gif.Down.gotoAndPlay(1);
} else if (!((_parent.dy != 0) || (!_parent.touching_floor))) {
bounce_pinkiepie_right_gif.Bounce._visible = true;
bounce_pinkiepie_right_gif.Up.gotoAndPlay(1);
} else {
bounce_pinkiepie_right_gif.Down._visible = true;
}
}
};
gotoAndPlay (1);
Symbol 156 MovieClip Frame 6
stop();
Symbol 161 MovieClip Frame 2
stop();
Symbol 172 MovieClip Frame 1
if (!hasOwnProperty("_load0A318ED8")) {
_load0A318ED8 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 173 MovieClip Frame 1
if (!hasOwnProperty("_load0A358AA8")) {
_load0A358AA8 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 174 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
up = 90;
down = _y;
}
} else {
// unexpected jump
}
};
stop();
Symbol 194 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 194 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar", _target);
var _local2 = (getProperty(getProperty("../GroundChar", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:278");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 196 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
active = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 196 MovieClip Frame 3
tellTarget ("..") {
active = false;
delete _global.__resolve;
var a;
_global.__resolve = _global.__debugResolve;
var _local1 = _root.entities;
(in _local1);// not popped
if (_local1 != null) {
for (_reg0 in _local1) {
in _local1;
a = _local1[_reg0];
a = "_level0." add a;
a = eval (a);
var _local3 = _height;
var _local2 = _width / 2;
getProperty(a, _target);
if (((_local2 < (getProperty(getProperty(a, _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty(a, _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty(a, _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty(a, _target), _y))) ? 0 : 1)))))))) {
_parent.Path2.nyx.setRGB(10066176);
Up._yscale = 50;
active = true;
_parent.box.spawn();
}
}
if ((in _local1) != null) {
// unexpected jump
}
}
if (!active) {
Up._yscale = 100;
_parent.Path2.nyx.setRGB(26265);
}
};
gotoAndPlay (2);
Symbol 206 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var spawn = function () {
tellTarget ("..") {
dy = 0;
dx = 0;
_x = _parent.CubeDispenser._x;
_y = _parent.CubeDispenser._y;
}
};
}
} else {
// unexpected jump
}
dy = 0;
dx = 0;
_root.entities.push(_name);
spawn();
// unexpected jump
// unexpected jump
};
stop();
Symbol 208 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 208 MovieClip Frame 3
tellTarget ("..") {
var _local3 = _height / 3;
var _local2 = _width / 2;
getProperty("../GroundChar", _target);
if (!((!((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) || (triggered))) {
gotoAndPlay("/:306");
triggered = true;
}
};
gotoAndPlay (2);
Symbol 211 MovieClip Frame 1
if (!hasOwnProperty("_load0A667A48")) {
_load0A667A48 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 212 MovieClip Frame 1
if (!hasOwnProperty("_load0A626600")) {
_load0A626600 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 237 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 237 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar", _target);
var _local2 = (getProperty(getProperty("../GroundChar", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:411");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 239 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var reset = function () {
tellTarget ("..") {
_parent.blue_portal.used = false;
used = false;
clearInterval(resetTimer);
}
};
}
} else {
// unexpected jump
}
var deactivate = function () {
tellTarget ("..") {
active = false;
_visible = false;
}
};
// unexpected jump
// unexpected jump
var activate = function (angle) {
tellTarget ("..") {
theta = angle;
active = true;
_visible = true;
}
};
// unexpected jump
// unexpected jump
var recFromBlu = function (veloz, obj) {
tellTarget ("..") {
obj._x = _x;
obj._y = _y;
obj.dx = Math.cos(theta * (Math.PI/180)) * veloz;
obj.dy = Math.sin(theta * (Math.PI/180)) * veloz;
used = true;
}
};
// unexpected jump
// unexpected jump
used = false;
active = false;
theta = 0;
deactivate();
incSpeed = 0;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 239 MovieClip Frame 3
tellTarget ("..") {
if (!(used || ((!active) || (_parent.blue_portal.used || (!_parent.blue_portal.active))))) {
delete _global.__resolve;
var a;
_global.__resolve = _global.__debugResolve;
var _local1 = _root.entities;
(in _local1);// not popped
if (_local1 != null) {
for (_reg0 in _local1) {
in _local1;
a = _local1[_reg0];
a = "_level0." add a;
a = eval (a);
getProperty(a, _target);
var _local3 = getProperty(getProperty(a, _target), _x) - _x;
_local3 = getProperty(getProperty(a, _target), _y) - _y;
if (400 >= ((_local3 * _local3) + (_local3 * _local3))) {
used = true;
incSpeed = Math.sqrt(Math.abs(Math.pow(a.dx, 2) + Math.pow(a.dy, 2)));
_parent.blue_portal.recFromOrng(incSpeed, a);
resetTimer = setInterval(reset, 300);
}
}
if ((in _local1) != null) {
// unexpected jump
}
}
}
};
gotoAndPlay (2);
Symbol 244 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var reset = function () {
tellTarget ("..") {
_parent.orange_portal.used = false;
used = false;
clearInterval(resetTimer);
}
};
}
} else {
// unexpected jump
}
var deactivate = function () {
tellTarget ("..") {
active = false;
_visible = false;
}
};
// unexpected jump
// unexpected jump
var recFromOrng = function (veloz, obj) {
tellTarget ("..") {
obj._x = _x;
obj._y = _y;
obj.dx = Math.cos(theta * (Math.PI/180)) * veloz;
obj.dy = Math.sin(theta * (Math.PI/180)) * veloz;
used = true;
}
};
// unexpected jump
// unexpected jump
var activate = function (angle) {
tellTarget ("..") {
theta = angle;
active = true;
_visible = true;
}
};
// unexpected jump
// unexpected jump
used = false;
active = false;
deactivate();
theta = 0;
incSpeed = 0;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 244 MovieClip Frame 3
tellTarget ("..") {
if (!(used || ((!active) || (_parent.orange_portal.used || (!_parent.orange_portal.active))))) {
delete _global.__resolve;
var a;
_global.__resolve = _global.__debugResolve;
var _local1 = _root.entities;
(in _local1);// not popped
if (_local1 != null) {
for (_reg0 in _local1) {
in _local1;
a = _local1[_reg0];
a = "_level0." add a;
a = eval (a);
getProperty(a, _target);
var _local3 = getProperty(getProperty(a, _target), _x) - _x;
_local3 = getProperty(getProperty(a, _target), _y) - _y;
if (400 >= ((_local3 * _local3) + (_local3 * _local3))) {
used = true;
incSpeed = Math.sqrt(Math.abs(Math.pow(a.dx, 2) + Math.pow(a.dy, 2)));
_parent.orange_portal.recFromBlu(incSpeed, a);
resetTimer = setInterval(reset, 300);
}
}
if ((in _local1) != null) {
// unexpected jump
}
}
}
};
gotoAndPlay (2);
Symbol 249 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var fired = function () {
tellTarget ("..") {
posx = _x + dx;
posy = _y + dy;
while (!((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != 1) || (!_parent.portalSurface.hitTest(posx, posy + radius, true)))) {
posy--;
active = false;
portal_activate = true;
_parent.orange_portal.activate(90);
}
while (!(portal_activate || ((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != -1) || (!_parent.portalSurface.hitTest(posx, posy - radius, true))))) {
posy++;
active = false;
portal_activate = true;
_parent.orange_portal.activate(270);
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != -1) || (!_parent.portalSurface.hitTest(posx - radius, posy, true))))) {
posx++;
active = false;
portal_activate = true;
_parent.orange_portal.activate(0);
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != 1) || (!_parent.portalSurface.hitTest(posx + radius, posy, true))))) {
posx--;
active = false;
portal_activate = true;
_parent.orange_portal.activate(180);
}
if (portal_activate) {
portal_activate = false;
_visible = false;
_parent.orange_portal._x = _x;
_parent.orange_portal._y = _y;
clearInterval(currentaction);
}
if (_parent.terrain.hitTest(posx, posy, true)) {
active = false;
_visible = false;
clearInterval(currentaction);
}
_xscale++;
if (_xscale > 100) {
_xscale--;
}
_x = posx;
_y = posy;
}
};
}
} else {
// unexpected jump
}
var fire = function (x, y) {
tellTarget ("..") {
if (!active) {
_visible = true;
_xscale = 0;
theta = Math.atan2(_parent._ymouse - _parent.portal_gun._y, _parent._xmouse - _parent.portal_gun._x) * 57.2957795130823;
_rotation = theta + 90;
_x = _parent.portal_gun._x;
_y = _parent.portal_gun._y;
dx = Math.cos(theta * (Math.PI/180)) * speed;
dy = Math.sin(theta * (Math.PI/180)) * speed;
currentaction = setInterval(fired, 5);
active = true;
}
}
};
// unexpected jump
// unexpected jump
dx = 0;
dy = 0;
posx = 0;
posy = 0;
portal_activate = false;
theta = 0;
speed = 5;
radius = 4;
active = false;
_visible = false;
// unexpected jump
// unexpected jump
};
stop();
Symbol 263 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var fired = function () {
tellTarget ("..") {
posx = _x + dx;
posy = _y + dy;
while (!((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != 1) || (!_parent.portalSurface.hitTest(posx, posy + radius, true)))) {
posy--;
active = false;
portal_activate = true;
_parent.blue_portal.activate(90);
}
while (!(portal_activate || ((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != -1) || (!_parent.portalSurface.hitTest(posx, posy - radius, true))))) {
posy++;
active = false;
portal_activate = true;
_parent.blue_portal.activate(270);
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != -1) || (!_parent.portalSurface.hitTest(posx - radius, posy, true))))) {
posx++;
active = false;
portal_activate = true;
_parent.blue_portal.activate(0);
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != 1) || (!_parent.portalSurface.hitTest(posx + radius, posy, true))))) {
posx--;
active = false;
portal_activate = true;
_parent.blue_portal.activate(180);
}
if (portal_activate) {
portal_activate = false;
_visible = false;
_parent.blue_portal._x = _x;
_parent.blue_portal._y = _y;
clearInterval(currentaction);
}
if (_parent.terrain.hitTest(posx, posy, true)) {
active = false;
_visible = false;
clearInterval(currentaction);
}
_xscale++;
if (_xscale > 100) {
_xscale--;
}
_x = posx;
_y = posy;
}
};
}
} else {
// unexpected jump
}
var fire = function (x, y) {
tellTarget ("..") {
if (!active) {
_visible = true;
_xscale = 0;
theta = Math.atan2(_parent._ymouse - _parent.portal_gun._y, _parent._xmouse - _parent.portal_gun._x) * 57.2957795130823;
_rotation = theta + 90;
_x = _parent.portal_gun._x;
_y = _parent.portal_gun._y;
dx = Math.cos(theta * (Math.PI/180)) * speed;
dy = Math.sin(theta * (Math.PI/180)) * speed;
currentaction = setInterval(fired, 5);
active = true;
}
}
};
// unexpected jump
// unexpected jump
dx = 0;
dy = 0;
posx = 0;
posy = 0;
portal_activate = false;
theta = 0;
speed = 5;
radius = 4;
active = false;
_visible = false;
// unexpected jump
// unexpected jump
};
stop();
Symbol 277 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
recent_portal = new Color(colour);
mounted = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 277 MovieClip Frame 3
tellTarget ("..") {
getProperty("../GroundChar", _target);
var _local2 = (getProperty(getProperty("../GroundChar", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) {
mounted = true;
}
};
gotoAndPlay (2);
Symbol 278 Button
on (keyPress "q") {
if (mounted) {
if (!_parent.orange_shell.active) {
clearInterval(_parent.orange_shell.currentaction);
_parent.orange_shell.fire(_parent._xmouse, _parent._ymouse);
}
theta = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x) * 57.2957795130823;
_rotation = theta + 90;
recent_portal.setRGB(13395711);
}
}
on (keyPress "e") {
if (mounted) {
if (!_parent.blue_shell.active) {
clearInterval(_parent.blue_shell.currentaction);
_parent.blue_shell.fire();
}
theta = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x) * 57.2957795130823;
_rotation = theta + 90;
recent_portal.setRGB(13421772);
}
}
Symbol 287 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
_root.entities.push(_name);
dy = 0;
dx = 0;
touching_floor = false;
scale = _xscale;
}
} else {
// unexpected jump
}
};
stop();
Symbol 288 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var walking = function (sign) {
tellTarget ("..") {
_parent.dx = 5 * sign;
_parent._xscale = _parent.scale * sign;
_parent.walk._visible = true;
_parent.stand._visible = false;
_parent.flying._visible = false;
}
};
}
} else {
// unexpected jump
}
var stopping = function () {
tellTarget ("..") {
_parent.dx = 0;
_parent.walk._visible = false;
_parent.stand._visible = true;
_parent.flying._visible = false;
}
};
// unexpected jump
// unexpected jump
var takeoff = function () {
tellTarget ("..") {
jump = normal_jump / 2;
if (_parent.touching_floor) {
var _local1 = "_y";
_parent[_local1] = _parent[_local1] - 20;
_parent.dy = jump * -1;
}
_parent.walk._visible = false;
_parent.stand._visible = false;
_parent.flying._visible = true;
}
};
// unexpected jump
// unexpected jump
a = "";
normal_jump = 12;
has_box = false;
jump = 0;
box_side = 0;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 288 MovieClip Frame 3
tellTarget ("..") {
if (!((!Key.isDown(65)) || (!_parent.touching_floor))) {
walking(-1);
} else if (!((!Key.isDown(68)) || (!_parent.touching_floor))) {
walking(1);
} else if (_parent.touching_floor) {
stopping();
}
if (!((!Key.isDown(87)) && (_parent.touching_floor))) {
takeoff();
}
if (_parent._parent.portal_gun.mounted) {
_parent._parent.portal_gun._x = _parent._x + ((_parent._xscale < 0) ? -1 : (((_parent._xscale == 0) ? 0 : 1)));
_parent._parent.portal_gun._y = _parent._y - 10;
}
};
gotoAndPlay (2);
Symbol 293 MovieClip Frame 1
if (!hasOwnProperty("_load0AA29078")) {
_load0AA29078 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 294 MovieClip Frame 1
if (!hasOwnProperty("_load0AA2FE80")) {
_load0AA2FE80 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 295 MovieClip Frame 2
tellTarget ("..") {
var _local3 = _height / 2;
var _local2 = _width / 3;
getProperty("../GroundChar", _target);
if (((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) {
_parent.blue_portal.deactivate();
_parent.orange_portal.deactivate();
_parent.GroundChar.PlayerControls.has_box = false;
}
_local3 = _height / 2;
_local2 = _width / 3;
getProperty("../box", _target);
if (((_local2 < (getProperty(getProperty("../box", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../box", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../box", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../box", _target), _y))) ? 0 : 1)))))))) {
_parent.box.spawn();
_parent.GroundChar.PlayerControls.has_box = false;
}
};
gotoAndPlay (1);
Symbol 299 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 299 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar", _target);
var _local2 = (getProperty(getProperty("../GroundChar", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:515");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 301 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
up = _y - _height;
down = _y;
}
} else {
// unexpected jump
}
};
stop();
Symbol 341 MovieClip Frame 2
tellTarget ("..") {
var _local3 = _height / 2;
var _local2 = _width / 2;
getProperty("../GroundChar", _target);
if (((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) {
_parent._xscale = 75;
_parent._yscale = 75;
}
};
gotoAndPlay (1);
Symbol 346 MovieClip Frame 2
tellTarget ("..") {
_parent._xscale = 200;
_parent._yscale = 200;
var _local3 = _height / 2;
var _local2 = _width / 2;
getProperty("../GroundChar", _target);
if (((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) {
_parent._xscale = 75;
_parent._yscale = 75;
}
};
gotoAndPlay (1);
Symbol 352 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
recent_portal = new Color(colour);
}
} else {
// unexpected jump
}
};
stop();
Symbol 353 Button
on (keyPress "q") {
if (!_parent.orange_shell.active) {
clearInterval(_parent.orange_shell.currentaction);
_parent.orange_shell.fire(_parent._xmouse, _parent._ymouse);
}
theta = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x) * 57.2957795130823;
_rotation = theta + 90;
recent_portal.setRGB(13395711);
}
on (keyPress "e") {
if (!_parent.blue_shell.active) {
clearInterval(_parent.blue_shell.currentaction);
_parent.blue_shell.fire();
}
theta = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x) * 57.2957795130823;
_rotation = theta + 90;
recent_portal.setRGB(13421772);
}
Symbol 355 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 355 MovieClip Frame 3
tellTarget ("..") {
var _local3 = _height / 3;
var _local2 = _width / 2;
getProperty("../GroundChar", _target);
if (!((!((_local2 < (getProperty(getProperty("../GroundChar", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar", _target), _y))) ? 0 : 1)))))))) || (triggered))) {
gotoAndPlay("/:544");
triggered = true;
}
_local3 = _height / 3;
_local2 = _width / 2;
getProperty("../box", _target);
if (((_local2 < (getProperty(getProperty("../box", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../box", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../box", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../box", _target), _y))) ? 0 : 1)))))))) {
_parent.box.spawn();
}
};
gotoAndPlay (2);
Symbol 375 Button
on (press) {
gotoAndPlay("/:96");
}