Frame 5
stop();
Frame 128
Physics.centerOnStart();
Physics.gravity = true;
Frame 157
Physics.center = true;
Frame 158
stop();
Frame 186
gotoAndPlay("/:81");
Frame 213
gotoAndPlay("/:214");
Frame 261
Physics.centerOnStart();
Physics.gravity = true;
Frame 290
Physics.center = true;
Frame 291
stop();
Frame 319
gotoAndPlay("/:214");
Frame 346
gotoAndPlay("/:347");
Frame 394
Physics.centerOnStart();
Physics.gravity = true;
Frame 423
Physics.center = true;
Frame 424
stop();
Frame 452
gotoAndPlay("/:480");
Frame 479
gotoAndPlay("/:347");
Frame 526
_xscale = 200;
_yscale = 200;
Frame 527
Physics.centerOnStart();
Physics.gravity = true;
Frame 556
Physics.center = true;
Frame 557
stop();
Frame 585
gotoAndPlay("/:613");
Frame 612
gotoAndPlay("/:480");
Frame 660
Physics.centerOnStart();
Physics.gravity = true;
Frame 689
Physics.center = true;
Frame 690
stop();
Frame 718
gotoAndPlay("/:81");
Frame 745
gotoAndPlay("/:613");
Symbol 22 Button
on (release) {
gotoAndPlay("/:6");
}
Symbol 26 MovieClip Frame 1
if (!hasOwnProperty("_load095E52D8")) {
_load095E52D8 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 34 MovieClip Frame 1
if (!hasOwnProperty("_load095E67E0")) {
_load095E67E0 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
p1portaled = false;
}
} else {
// unexpected jump
}
};
stop();
Symbol 35 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var centerOnPinkie = function () {
tellTarget ("..") {
_parent._x = ((_parent.GroundChar0._x * (_parent._xscale / 100)) * -1) + 280;
_parent._y = ((_parent.GroundChar0._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];
_root[a].canPortal = false;
portal(a, _root.blue_portal, _root.orange_portal);
portal(a, _root.orange_portal, _root.blue_portal);
a = "_level0." add a;
a = eval (a);
posx = a._x + a.dx;
posy = a._y + a.dy;
if (a.canPortal) {
// unexpected jump
}
a.touching_floor = false;
while (!((a.dy >= 1) || (!_parent.terrain.floors.hitTest(posx, (posy - (a._height / 2)) + 2, true)))) {
posy++;
clearInterval(a.g);
a.dy = 0;
}
while (!((a.dy <= -1) || (!_parent.terrain.floors.hitTest(posx, (posy + (a._height / 2)) - 3, true)))) {
posy--;
a.dy = 0;
a.dx = 0;
a.PlayerControls.maxdx = 5;
a.touching_floor = true;
}
while (!((a.dx >= 1) || (!_parent.terrain.walls.hitTest(posx - (a._width / 3), posy, true)))) {
posx++;
a.dx = 0;
a.stopping();
}
while (!((a.dx <= -1) || (!_parent.terrain.walls.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
var portal = function (physical_target, thisPort, otherPort) {
tellTarget ("..") {
if (!((!thisPort.hitTest(_root[physical_target]._x, _root[physical_target]._y + _root[physical_target].dy, true)) || ((!_root.blue_portal.active) || (!_root.orange_portal.active)))) {
if (!((thisPort.theta != _root.portal_gun.portal_right) || (_root[physical_target].dx <= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_left) || (_root[physical_target].dx >= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_down) || (_root[physical_target].dy <= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_up) || (_root[physical_target].dy >= 0))) {
_root[physical_target].canPortal = true;
}
if (_root[physical_target].canPortal) {
if (otherPort.theta == _root.portal_gun.portal_right) {
_root[physical_target]._x = ((otherPort._x - (otherPort._width / 2))-1);
_root[physical_target]._y = otherPort._y;
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dx = _root[physical_target].dx * -1;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].PlayerControls.maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy * -1;
_root[physical_target].dy = 0;
} else if (thisPort.theta == _root.portal_gun.portal_left) {
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].PlayerControls.maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy * -1;
_root[physical_target].dy = 0;
}
}
if (otherPort.theta == _root.portal_gun.portal_left) {
_root[physical_target]._x = ((otherPort._x + (otherPort._width / 2))+1);
_root[physical_target]._y = otherPort._y;
if (thisPort.theta == _root.portal_gun.portal_right) {
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].PlayerControls.maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy;
_root[physical_target].dy = 0;
} else if (thisPort.theta == _root.portal_gun.portal_left) {
var _local1 = "dx";
_root[physical_target][_local1] = _root[physical_target][_local1] * -1;
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].PlayerControls.maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = Math.abs(_root[physical_target].dy);
_root[physical_target].dy = 0;
}
}
if (otherPort.theta == _root.portal_gun.portal_up) {
_root[physical_target]._x = otherPort._x;
_root[physical_target]._y = ((otherPort._y + (otherPort._height / 2))+1);
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dy = _root[physical_target].dx * -1;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].dy = Math.abs(_root[physical_target].dy);
} else if (thisPort.theta == _root.portal_gun.portal_left) {
_root[physical_target].dy = Math.abs(_root[physical_target].dx);
} else if (thisPort.theta == _root.portal_gun.portal_down) {
}
}
if (otherPort.theta == _root.portal_gun.portal_down) {
_root[physical_target]._x = otherPort._x;
_root[physical_target]._y = ((otherPort._y - (otherPort._height / 2))-1);
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dy = _root[physical_target].dx * -1;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
} else if (thisPort.theta == _root.portal_gun.portal_left) {
_root[physical_target].dy = _root[physical_target].dx;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].dy = Math.abs(_root[physical_target].dy) * -1;
}
}
}
}
}
};
// unexpected jump
// unexpected jump
maxSpeed = 12;
posx = 0;
posy = 0;
center = false;
gravity = false;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 35 MovieClip Frame 3
tellTarget ("..") {
if (gravity) {
do_gravity();
}
do_hittest();
if (center) {
centerOnPinkie();
}
};
gotoAndPlay (2);
Symbol 39 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var func_up = function () {
tellTarget ("..") {
up._visible = true;
up._y = 0;
down._visible = false;
down._y = 200;
}
};
}
} else {
// unexpected jump
}
var func_down = function () {
tellTarget ("..") {
down._visible = true;
down._y = 0;
up._visible = false;
up._y = 200;
}
};
// unexpected jump
// unexpected jump
};
stop();
Symbol 72 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 72 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar0", _target);
var _local2 = (getProperty(getProperty("../GroundChar0", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar0", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:187");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 87 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
nyx = new Color(a);
nyx.setRGB(16711680);
}
} else {
// unexpected jump
}
};
stop();
Symbol 91 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
active = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 91 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.floors.platform1.func_up();
_parent.Path1.nyx.setRGB(10066176);
Up._yscale = 50;
active = true;
}
}
if ((in _local1) != null) {
// unexpected jump
}
}
if (!active) {
Up._yscale = 100;
_parent.terrain.floors.platform1.func_down();
_parent.Path1.nyx.setRGB(26265);
}
};
gotoAndPlay (2);
Symbol 96 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 98 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
recent_portal = new Color(colour);
portal_up = 180;
portal_down = 0;
portal_left = 90;
portal_right = -90;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 98 MovieClip Frame 3
tellTarget ("..") {
theta = Math.atan2(_parent._ymouse - _y, _parent._xmouse - _x) * 57.2957795130823;
_rotation = theta + 90;
};
gotoAndPlay (2);
Symbol 99 Button
on (keyPress "q") {
if (!_parent.orange_shell.active) {
clearInterval(_parent.orange_shell.currentaction);
_parent.orange_shell.fire(_parent._xmouse, _parent._ymouse);
this.gotoAndPlay(5);
}
recent_portal.setRGB(13395711);
}
on (keyPress "e") {
if (!_parent.blue_shell.active) {
clearInterval(_parent.blue_shell.currentaction);
_parent.blue_shell.fire();
this.gotoAndPlay(7);
}
recent_portal.setRGB(13421772);
}
Symbol 109 MovieClip Frame 4
stop();
Symbol 109 MovieClip Frame 6
stop();
Symbol 109 MovieClip Frame 8
stop();
stop();
Symbol 110 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;
canPortal = true;
rspeed = 0;
// unexpected jump
// unexpected jump
};
stop();
Symbol 111 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var walking = function (sign) {
tellTarget ("..") {
var _local1 = "dx";
_parent[_local1] = _parent[_local1] + (5 * sign);
if (Math.abs(_parent.dx) > maxdx) {
_parent.dx = ((_parent.dx < 0) ? -1 : (((_parent.dx == 0) ? 0 : 1))) * maxdx;
}
_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;
maxdx = 5;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 111 MovieClip Frame 3
tellTarget ("..") {
if (!((!Key.isDown(65)) || (!_root.Physics.center))) {
walking(-1);
} else if (!((!Key.isDown(68)) || (!_root.Physics.center))) {
walking(1);
} else if (_parent.touching_floor) {
stopping();
} else {
_parent.dx = 0;
}
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 112 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 177 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 193 MovieClip Frame 6
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 205 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var deactivate = function () {
tellTarget ("..") {
active = false;
_visible = false;
}
};
}
} else {
// unexpected jump
}
var activate = function (angle) {
tellTarget ("..") {
theta = angle;
active = true;
_visible = true;
}
};
// unexpected jump
// unexpected jump
active = false;
theta = 0;
deactivate();
incSpeed = 0;
opposite = "blue";
// unexpected jump
// unexpected jump
};
stop();
Symbol 210 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var deactivate = function () {
tellTarget ("..") {
active = false;
_visible = false;
}
};
}
} else {
// unexpected jump
}
var activate = function (angle) {
tellTarget ("..") {
theta = angle;
active = true;
_visible = true;
}
};
// unexpected jump
// unexpected jump
active = false;
deactivate();
theta = 0;
incSpeed = 0;
opposite = "orange";
// unexpected jump
// unexpected jump
};
stop();
Symbol 215 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var fired = function () {
tellTarget ("..") {
posx = _x + dx;
posy = _y + dy;
portal_activate = false;
while (!((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != 1) || (!_parent.portalSurface.hitTest(posx, posy + radius, true)))) {
posy--;
active = false;
if (!((!_root.terrain.hitTest(_x, _y - 20, true)) && ((!_root.terrain.hitTest(_x + 20, _y, true)) && (!_root.terrain.hitTest(_x - 20, _y, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_down);
}
}
while (!(portal_activate || ((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != -1) || (!_parent.portalSurface.hitTest(posx, posy - radius, true))))) {
posy++;
active = false;
if (!((!_root.terrain.hitTest(_x, _y + 20, true)) && ((!_root.terrain.hitTest(_x + 20, _y, true)) && (!_root.terrain.hitTest(_x - 20, _y, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_up);
}
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != -1) || (!_parent.portalSurface.hitTest(posx - radius, posy, true))))) {
posx++;
active = false;
if (!((!_root.terrain.hitTest(_x, _y - 20, true)) && ((!_root.terrain.hitTest(_x + 20, _y, true)) && (!_root.terrain.hitTest(_x, _y + 20, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_left);
}
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != 1) || (!_parent.portalSurface.hitTest(posx + radius, posy, true))))) {
posx--;
active = false;
if (!((!_root.terrain.hitTest(_x, _y - 20, true)) && ((!_root.terrain.hitTest(_x - 20, _y, true)) && (!_root.terrain.hitTest(_x, _y + 20, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_right);
}
}
if (portal_activate) {
_visible = false;
_root[myportal]._x = _x;
_root[myportal]._y = _y;
}
if (_parent.terrain.hitTest(posx, posy, true)) {
active = false;
_visible = false;
}
_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;
active = true;
while (active) {
fired();
}
active = false;
}
}
};
// 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;
myportal = "orange_portal";
// unexpected jump
// unexpected jump
};
stop();
Symbol 229 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var fired = function () {
tellTarget ("..") {
posx = _x + dx;
posy = _y + dy;
portal_activate = false;
while (!((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != 1) || (!_parent.portalSurface.hitTest(posx, posy + radius, true)))) {
posy--;
active = false;
if (!((!_root.terrain.hitTest(_x, _y - 20, true)) && ((!_root.terrain.hitTest(_x + 20, _y, true)) && (!_root.terrain.hitTest(_x - 20, _y, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_down);
}
}
while (!(portal_activate || ((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != -1) || (!_parent.portalSurface.hitTest(posx, posy - radius, true))))) {
posy++;
active = false;
if (!((!_root.terrain.hitTest(_x, _y + 20, true)) && ((!_root.terrain.hitTest(_x + 20, _y, true)) && (!_root.terrain.hitTest(_x - 20, _y, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_up);
}
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != -1) || (!_parent.portalSurface.hitTest(posx - radius, posy, true))))) {
posx++;
active = false;
if (!((!_root.terrain.hitTest(_x, _y - 20, true)) && ((!_root.terrain.hitTest(_x + 20, _y, true)) && (!_root.terrain.hitTest(_x, _y + 20, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_left);
}
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != 1) || (!_parent.portalSurface.hitTest(posx + radius, posy, true))))) {
posx--;
active = false;
if (!((!_root.terrain.hitTest(_x, _y - 20, true)) && ((!_root.terrain.hitTest(_x - 20, _y, true)) && (!_root.terrain.hitTest(_x, _y + 20, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_right);
}
}
if (portal_activate) {
_visible = false;
_root[myportal]._x = _x;
_root[myportal]._y = _y;
}
if (_parent.terrain.hitTest(posx, posy, true)) {
active = false;
_visible = false;
}
_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;
active = true;
while (active) {
fired();
}
active = false;
}
}
};
// 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;
myportal = "blue_portal";
// unexpected jump
// unexpected jump
};
stop();
Symbol 243 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 243 MovieClip Frame 3
tellTarget ("..") {
var _local3 = _height / 3;
var _local2 = _width / 2;
getProperty("../GroundChar0", _target);
if (!((!((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) || (triggered))) {
gotoAndPlay("/:159");
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.GroundChar0.PlayerControls.has_box = false;
_parent.box.spawn();
}
};
gotoAndPlay (2);
Symbol 250 MovieClip Frame 1
if (!hasOwnProperty("_load095EA6F8")) {
_load095EA6F8 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 251 MovieClip Frame 1
if (!hasOwnProperty("_load095EBC00")) {
_load095EBC00 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
p1portaled = false;
}
} else {
// unexpected jump
}
};
stop();
Symbol 260 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 260 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar0", _target);
var _local2 = (getProperty(getProperty("../GroundChar0", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar0", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:320");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 265 MovieClip Frame 4
stop();
Symbol 265 MovieClip Frame 6
stop();
Symbol 265 MovieClip Frame 8
stop();
stop();
Symbol 266 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 266 MovieClip Frame 3
tellTarget ("..") {
var _local3 = _height / 3;
var _local2 = _width / 2;
getProperty("../GroundChar0", _target);
if (!((!((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) || (triggered))) {
gotoAndPlay("/:292");
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.GroundChar0.PlayerControls.has_box = false;
_parent.box.spawn();
}
};
gotoAndPlay (2);
Symbol 268 MovieClip Frame 1
if (!hasOwnProperty("_load095EFB18")) {
_load095EFB18 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 269 MovieClip Frame 1
if (!hasOwnProperty("_load095F1020")) {
_load095F1020 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 315 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 315 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar0", _target);
var _local2 = (getProperty(getProperty("../GroundChar0", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar0", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:425");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 317 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
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;
active = true;
while (active) {
fired();
}
active = false;
}
}
};
}
} else {
// unexpected jump
}
var fired = function () {
tellTarget ("..") {
posx = _x + dx;
posy = _y + dy;
portal_activate = false;
if (_parent.terrain.hitTest(posx, posy, true)) {
active = false;
_visible = false;
return(0);
}
while (!((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != 1) || (!_root.terrain.floors.hitTest(posx, posy + radius, true)))) {
posy--;
active = false;
if (!((!_root.portalSurface.hitTest(_x, _y - 20, true)) && ((!_root.portalSurface.hitTest(_x + 20, _y, true)) && (!_root.portalSurface.hitTest(_x - 20, _y, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_down);
}
}
while (!(portal_activate || ((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != -1) || (!_root.terrain.floors.hitTest(posx, posy - radius, true))))) {
posy++;
active = false;
if (!((!_root.portalSurface.hitTest(_x, _y + 20, true)) && ((!_root.portalSurface.hitTest(_x + 20, _y, true)) && (!_root.portalSurface.hitTest(_x - 20, _y, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_up);
}
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != -1) || (!_root.terrain.walls.hitTest(posx - radius, posy, true))))) {
posx++;
active = false;
if (!((!_root.portalSurface.hitTest(_x, _y - 20, true)) && ((!_root.portalSurface.hitTest(_x + 20, _y, true)) && (!_root.portalSurface.hitTest(_x, _y + 20, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_left);
}
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != 1) || (!_root.terrain.walls.hitTest(posx + radius, posy, true))))) {
posx--;
active = false;
if (!((!_root.portalSurface.hitTest(_x, _y - 20, true)) && ((!_root.portalSurface.hitTest(_x - 20, _y, true)) && (!_root.portalSurface.hitTest(_x, _y + 20, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_right);
}
}
if (portal_activate) {
_visible = false;
_root[myportal]._x = _x;
_root[myportal]._y = _y;
}
_x = posx;
_y = posy;
}
};
// 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;
myportal = "orange_portal";
// unexpected jump
// unexpected jump
};
stop();
Symbol 319 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
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;
active = true;
while (active) {
fired();
}
active = false;
}
}
};
}
} else {
// unexpected jump
}
var fired = function () {
tellTarget ("..") {
posx = _x + dx;
posy = _y + dy;
portal_activate = false;
if (_parent.terrain.hitTest(posx, posy, true)) {
active = false;
_visible = false;
return(0);
}
while (!((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != 1) || (!_root.terrain.floors.hitTest(posx, posy + radius, true)))) {
posy--;
active = false;
if (!((!_root.portalSurface.hitTest(_x, _y - 20, true)) && ((!_root.portalSurface.hitTest(_x + 20, _y, true)) && (!_root.portalSurface.hitTest(_x - 20, _y, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_down);
}
}
while (!(portal_activate || ((((dy < 0) ? -1 : (((dy == 0) ? 0 : 1))) != -1) || (!_root.terrain.floors.hitTest(posx, posy - radius, true))))) {
posy++;
active = false;
if (!((!_root.portalSurface.hitTest(_x, _y + 20, true)) && ((!_root.portalSurface.hitTest(_x + 20, _y, true)) && (!_root.portalSurface.hitTest(_x - 20, _y, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_up);
}
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != -1) || (!_root.terrain.walls.hitTest(posx - radius, posy, true))))) {
posx++;
active = false;
if (!((!_root.portalSurface.hitTest(_x, _y - 20, true)) && ((!_root.portalSurface.hitTest(_x + 20, _y, true)) && (!_root.portalSurface.hitTest(_x, _y + 20, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_left);
}
}
while (!(portal_activate || ((((dx < 0) ? -1 : (((dx == 0) ? 0 : 1))) != 1) || (!_root.terrain.walls.hitTest(posx + radius, posy, true))))) {
posx--;
active = false;
if (!((!_root.portalSurface.hitTest(_x, _y - 20, true)) && ((!_root.portalSurface.hitTest(_x - 20, _y, true)) && (!_root.portalSurface.hitTest(_x, _y + 20, true))))) {
} else {
portal_activate = true;
_root[myportal].activate(_root.portal_gun.portal_right);
}
}
if (portal_activate) {
_visible = false;
_root[myportal]._x = _x;
_root[myportal]._y = _y;
}
_x = posx;
_y = posy;
}
};
// 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;
myportal = "blue_portal";
// unexpected jump
// unexpected jump
};
stop();
Symbol 321 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 321 MovieClip Frame 3
tellTarget ("..") {
var _local3 = _height / 3;
var _local2 = _width / 2;
getProperty("../GroundChar0", _target);
if (!((!((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) || (triggered))) {
gotoAndPlay("/:453");
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.GroundChar.PlayerControls.has_box = false;
_parent.box.spawn();
}
};
gotoAndPlay (2);
Symbol 323 MovieClip Frame 1
if (!hasOwnProperty("_load095F2528")) {
_load095F2528 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 324 MovieClip Frame 1
if (!hasOwnProperty("_load096DD480")) {
_load096DD480 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 325 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var centerOnPinkie = function () {
tellTarget ("..") {
_parent._x = ((_parent.GroundChar0._x * (_parent._xscale / 100)) * -1) + 280;
_parent._y = ((_parent.GroundChar0._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];
_root[a].canPortal = false;
portal(a, _root.blue_portal, _root.orange_portal);
portal(a, _root.orange_portal, _root.blue_portal);
a = "_level0." add a;
a = eval (a);
posx = a._x + a.dx;
posy = a._y + a.dy;
if (a.canPortal) {
// unexpected jump
}
a.touching_floor = false;
while (!((a.dy >= 1) || (!_parent.terrain.floors.hitTest(posx, (posy - (a._height / 2)) + 2, true)))) {
posy++;
clearInterval(a.g);
a.dy = 0;
}
while (!((a.dy <= -1) || (!_parent.terrain.floors.hitTest(posx, (posy + (a._height / 2)) - 3, true)))) {
posy--;
a.dy = 0;
a.PlayerControls.maxdx = 5;
if (_root.prop_gel.hitTest(posx, posy + (a._height / 2), true)) {
a.PlayerControls.maxdx = 20;
}
a.touching_floor = true;
}
while (!((a.dx >= 1) || (!_parent.terrain.walls.hitTest(posx - (a._width / 3), posy, true)))) {
posx++;
a.dx = 0;
a.stopping();
}
while (!((a.dx <= -1) || (!_parent.terrain.walls.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
var portal = function (physical_target, thisPort, otherPort) {
tellTarget ("..") {
if (!((!thisPort.hitTest(_root[physical_target]._x, _root[physical_target]._y + _root[physical_target].dy, true)) || ((!_root.blue_portal.active) || (!_root.orange_portal.active)))) {
if (!((thisPort.theta != _root.portal_gun.portal_right) || (_root[physical_target].dx <= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_left) || (_root[physical_target].dx >= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_down) || (_root[physical_target].dy <= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_up) || (_root[physical_target].dy >= 0))) {
_root[physical_target].canPortal = true;
}
if (_root[physical_target].canPortal) {
if (otherPort.theta == _root.portal_gun.portal_right) {
_root[physical_target]._x = ((otherPort._x - (otherPort._width / 2))-1);
_root[physical_target]._y = otherPort._y;
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dx = _root[physical_target].dx * -1;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].PlayerControls.maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy * -1;
_root[physical_target].dy = 0;
} else if (thisPort.theta == _root.portal_gun.portal_left) {
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].PlayerControls.maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy * -1;
_root[physical_target].dy = 0;
}
}
if (otherPort.theta == _root.portal_gun.portal_left) {
_root[physical_target]._x = ((otherPort._x + (otherPort._width / 2))+1);
_root[physical_target]._y = otherPort._y;
if (thisPort.theta == _root.portal_gun.portal_right) {
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].PlayerControls.maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy;
_root[physical_target].dy = 0;
} else if (thisPort.theta == _root.portal_gun.portal_left) {
var _local1 = "dx";
_root[physical_target][_local1] = _root[physical_target][_local1] * -1;
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].PlayerControls.maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = Math.abs(_root[physical_target].dy);
_root[physical_target].dy = 0;
}
}
if (otherPort.theta == _root.portal_gun.portal_up) {
_root[physical_target]._x = otherPort._x;
_root[physical_target]._y = ((otherPort._y + (otherPort._height / 2))+1);
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dy = _root[physical_target].dx * -1;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].dy = Math.abs(_root[physical_target].dy);
} else if (thisPort.theta == _root.portal_gun.portal_left) {
_root[physical_target].dy = Math.abs(_root[physical_target].dx);
} else if (thisPort.theta == _root.portal_gun.portal_down) {
}
}
if (otherPort.theta == _root.portal_gun.portal_down) {
_root[physical_target]._x = otherPort._x;
_root[physical_target]._y = ((otherPort._y - (otherPort._height / 2))-1);
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dy = _root[physical_target].dx * -1;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
} else if (thisPort.theta == _root.portal_gun.portal_left) {
_root[physical_target].dy = _root[physical_target].dx;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].dy = Math.abs(_root[physical_target].dy) * -1;
}
}
}
}
}
};
// unexpected jump
// unexpected jump
maxSpeed = 12;
posx = 0;
posy = 0;
center = false;
gravity = false;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 325 MovieClip Frame 3
tellTarget ("..") {
if (gravity) {
do_gravity();
}
do_hittest();
if (center) {
centerOnPinkie();
}
};
gotoAndPlay (2);
Symbol 350 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 350 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar0", _target);
var _local2 = (getProperty(getProperty("../GroundChar0", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar0", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:558");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 352 MovieClip Frame 1
if (!hasOwnProperty("_load096DE988")) {
_load096DE988 = true;
tellTarget ("..") {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 353 MovieClip Frame 1
if (!hasOwnProperty("_load096DFE90")) {
_load096DFE90 = true;
tellTarget ("..") {
entities = new Array();
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
}
} else {
// unexpected jump
}
};
stop();
Symbol 354 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var centerOnPinkie = function () {
tellTarget ("..") {
_parent._x = ((_parent.GroundChar0._x * (_parent._xscale / 100)) * -1) + 280;
_parent._y = ((_parent.GroundChar0._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];
_root[a].canPortal = false;
portal(a, _root.blue_portal, _root.orange_portal);
portal(a, _root.orange_portal, _root.blue_portal);
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.floors.hitTest(posx, (posy - (a._height / 2)) + 2, true)))) {
posy++;
clearInterval(a.g);
a.dy = 0;
}
while (!((a.dy <= -1) || (!_parent.terrain.floors.hitTest(posx, (posy + (a._height / 2)) - 3, true)))) {
posy--;
a.dy = 0;
if (_root.prop_gel.hitTest(posx, posy + (a._height / 2), true)) {
a.maxdx = 20;
} else {
a.maxdx = a.Omaxdx;
}
a.touching_floor = true;
}
while (!((a.dx >= 1) || (!_parent.terrain.walls.hitTest(posx - (a._width / 3), posy, true)))) {
posx++;
a.dx = 0;
a.stopping();
}
while (!((a.dx <= -1) || (!_parent.terrain.walls.hitTest(posx + (a._width / 3), posy, true)))) {
posx--;
a.dx = 0;
a.stopping();
}
if (a.dy > maxSpeed) {
a.dy = maxSpeed;
}
if (Math.abs(a.dx) > a.maxdx) {
a.dx = ((a.dx < 0) ? -1 : (((a.dx == 0) ? 0 : 1))) * a.maxdx;
}
a._y = posy;
a._x = posx;
}
if ((in _local1) != null) {
// unexpected jump
}
}
}
};
// unexpected jump
// unexpected jump
var portal = function (physical_target, thisPort, otherPort) {
tellTarget ("..") {
if (!((!thisPort.hitTest(_root[physical_target]._x, _root[physical_target]._y + _root[physical_target].dy, true)) || ((!_root.blue_portal.active) || (!_root.orange_portal.active)))) {
if (!((thisPort.theta != _root.portal_gun.portal_right) || (_root[physical_target].dx <= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_left) || (_root[physical_target].dx >= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_down) || (_root[physical_target].dy <= 0))) {
_root[physical_target].canPortal = true;
} else if (!((thisPort.theta != _root.portal_gun.portal_up) || (_root[physical_target].dy >= 0))) {
_root[physical_target].canPortal = true;
}
if (_root[physical_target].canPortal) {
if (otherPort.theta == _root.portal_gun.portal_right) {
_root[physical_target]._x = ((otherPort._x - (otherPort._width / 2))-1);
_root[physical_target]._y = otherPort._y;
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dx = _root[physical_target].dx * -1;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy * -1;
_root[physical_target].dy = 0;
} else if (thisPort.theta == _root.portal_gun.portal_left) {
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy * -1;
_root[physical_target].dy = 0;
}
}
if (otherPort.theta == _root.portal_gun.portal_left) {
_root[physical_target]._x = ((otherPort._x + (otherPort._width / 2))+1);
_root[physical_target]._y = otherPort._y;
if (thisPort.theta == _root.portal_gun.portal_right) {
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = _root[physical_target].dy;
_root[physical_target].dy = 0;
} else if (thisPort.theta == _root.portal_gun.portal_left) {
var _local1 = "dx";
_root[physical_target][_local1] = _root[physical_target][_local1] * -1;
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].maxdx = Math.abs(_root[physical_target].dy);
_root[physical_target].dx = Math.abs(_root[physical_target].dy);
_root[physical_target].dy = 0;
}
}
if (otherPort.theta == _root.portal_gun.portal_up) {
_root[physical_target]._x = otherPort._x;
_root[physical_target]._y = ((otherPort._y + (otherPort._height / 2))+1);
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dy = _root[physical_target].dx * -1;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
_root[physical_target].dy = Math.abs(_root[physical_target].dy);
} else if (thisPort.theta == _root.portal_gun.portal_left) {
_root[physical_target].dy = Math.abs(_root[physical_target].dx);
} else if (thisPort.theta == _root.portal_gun.portal_down) {
}
}
if (otherPort.theta == _root.portal_gun.portal_down) {
_root[physical_target]._x = otherPort._x;
_root[physical_target]._y = ((otherPort._y - (otherPort._height / 2))-1);
if (thisPort.theta == _root.portal_gun.portal_right) {
_root[physical_target].dy = _root[physical_target].dx * -1;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_up) {
} else if (thisPort.theta == _root.portal_gun.portal_left) {
_root[physical_target].dy = _root[physical_target].dx;
_root[physical_target].dx = 0;
} else if (thisPort.theta == _root.portal_gun.portal_down) {
_root[physical_target].dy = Math.abs(_root[physical_target].dy) * -1;
}
}
}
}
}
};
// unexpected jump
// unexpected jump
maxSpeed = 12;
posx = 0;
posy = 0;
center = false;
gravity = false;
// unexpected jump
// unexpected jump
};
nextFrame();
play();
Symbol 354 MovieClip Frame 3
tellTarget ("..") {
if (gravity) {
do_gravity();
}
do_hittest();
if (center) {
centerOnPinkie();
}
};
gotoAndPlay (2);
Symbol 370 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
up = 70;
down = 97;
}
} else {
// unexpected jump
}
};
stop();
Symbol 414 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 414 MovieClip Frame 3
tellTarget ("..") {
if (!triggered) {
getProperty("../GroundChar0", _target);
var _local2 = (getProperty(getProperty("../GroundChar0", _target), _width) + _width) / 2;
var _local3 = (getProperty(getProperty("../GroundChar0", _target), _height) + _height) / 2;
if (((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) {
gotoAndPlay("/:691");
triggered = true;
}
}
};
gotoAndPlay (2);
Symbol 419 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
active = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 419 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.floors.platform1._y = _parent.terrain.floors.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.floors.platform1._y = _parent.terrain.floors.platform1.down;
_parent.Path1.nyx.setRGB(26265);
}
};
gotoAndPlay (2);
Symbol 421 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();
maxdx = 0;
Omaxdx = 0;
// unexpected jump
// unexpected jump
};
stop();
Symbol 423 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;
canPortal = true;
rspeed = 0;
maxdx = 5;
Omaxdx = 5;
// unexpected jump
// unexpected jump
};
stop();
Symbol 424 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
var walking = function (sign) {
tellTarget ("..") {
var _local1 = "dx";
_parent[_local1] = _parent[_local1] + (5 * sign);
if (Math.abs(_parent.dx) > _parent.maxdx) {
_parent.dx = ((_parent.dx < 0) ? -1 : (((_parent.dx == 0) ? 0 : 1))) * _parent.maxdx;
}
_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 424 MovieClip Frame 3
tellTarget ("..") {
if (!((!Key.isDown(65)) || (!_root.Physics.center))) {
walking(-1);
} else if (!((!Key.isDown(68)) || (!_root.Physics.center))) {
walking(1);
} else if (_parent.touching_floor) {
stopping();
} else {
_parent.dx = 0;
}
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 425 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;
_parent._parent.box.maxdx = 7;
}
has_box = false;
}
}
Symbol 428 MovieClip Frame 1
if (!hasOwnProperty("_load")) {
_load = true;
tellTarget ("..") {
triggered = false;
}
} else {
// unexpected jump
}
};
nextFrame();
play();
Symbol 428 MovieClip Frame 3
tellTarget ("..") {
var _local3 = _height / 3;
var _local2 = _width / 2;
getProperty("../GroundChar0", _target);
if (!((!((_local2 < (getProperty(getProperty("../GroundChar0", _target), _x) - _x)) ? 0 : (((_local2 < (_x - getProperty(getProperty("../GroundChar0", _target), _x))) ? 0 : (((_local3 < (getProperty(getProperty("../GroundChar0", _target), _y) - _y)) ? 0 : (((_local3 < (_y - getProperty(getProperty("../GroundChar0", _target), _y))) ? 0 : 1)))))))) || (triggered))) {
gotoAndPlay("/:719");
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.GroundChar.PlayerControls.has_box = false;
_parent.box.spawn();
}
};
gotoAndPlay (2);