Frame 1
stop();
Mouse.hide();
Instance of Symbol 20 MovieClip "aimer" in Frame 1
onClipEvent (load) {
startDrag ("_root.aimer", true);
}
Frame 169
stop();
Mouse.hide();
Instance of Symbol 20 MovieClip "aimer" in Frame 169
onClipEvent (load) {
startDrag ("_root.aimer", true);
}
Frame 170
stop();
Mouse.hide();
Instance of Symbol 47 MovieClip "vcam" in Frame 170
onClipEvent (enterFrame) {
_y = (_y + ((_root.jugador._y - _y) / 4));
_x = (_x + ((_root.jugador._x - _x) / 4));
}
Instance of Symbol 50 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 57 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.jugador._x = 93.1;
_root.jugador.y = 54.8;
}
}
Instance of Symbol 57 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.jugador._x = 93.1;
_root.jugador.y = 54.8;
}
}
Instance of Symbol 59 MovieClip in Frame 170
onClipEvent (enterFrame) {
if (this.hitTest(_root.jugador)) {
_root.nextFrame();
}
}
Instance of Symbol 17 MovieClip "jugador" in Frame 170
onClipEvent (load) {
var grav = 2;
var speed = 10;
var jumpHeight = 12;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
action = true;
grav++;
_y = (_y + grav);
while (_root.nivel.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (Key.isDown(68)) {
_x = (_x + speed);
_xscale = scale;
if (_root.nivel.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.nivel.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.nivel.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && (_root.nivel.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.nivel.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.nivel.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.nivel.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.nivel.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.nivel.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.nivel.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.nivel.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
Instance of Symbol 62 MovieClip in Frame 170
onClipEvent (keyUp) {
if (_root.jugador.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
this.gotoAndStop(2);
_root.nivel.Pared.gotoAndPlay(2);
}
}
}
}
Instance of Symbol 20 MovieClip "aimer" in Frame 171
onClipEvent (load) {
startDrag ("_root.aimer", true);
}
Frame 172
stop();
Instance of Symbol 47 MovieClip "vcam" in Frame 172
onClipEvent (enterFrame) {
_y = (_y + ((_root.jugador._y - _y) / 4));
_x = (_x + ((_root.jugador._x - _x) / 4));
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 50 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
Instance of Symbol 59 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (this.hitTest(_root.jugador)) {
_root.nextFrame();
}
}
Instance of Symbol 57 MovieClip in Frame 172
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.jugador._x = 93.1;
_root.jugador.y = 54.8;
}
}
Instance of Symbol 17 MovieClip "jugador" in Frame 172
onClipEvent (load) {
var grav = 2;
var speed = 10;
var jumpHeight = 12;
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
action = true;
grav++;
_y = (_y + grav);
while (_root.nivel.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (Key.isDown(68)) {
_x = (_x + speed);
_xscale = scale;
if (_root.nivel.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.nivel.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if ((_root.nivel.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) {
this.gotoAndStop(3);
}
if ((((Key.isDown(79) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(73))) {
this.gotoAndStop(5);
}
if ((((Key.isDown(73) && (!Key.isDown(87))) && (!Key.isDown(65))) && (!Key.isDown(68))) && (!Key.isDown(79))) {
this.gotoAndStop(4);
}
if (Key.isDown(87) && (_root.nivel.hitTest(_x, _y + 3, true))) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.nivel.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.nivel.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.nivel.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.nivel.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.nivel.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.nivel.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.nivel.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
}
Instance of Symbol 62 MovieClip in Frame 172
onClipEvent (keyUp) {
if (_root.jugador.hitTest(this)) {
if (this._currentframe == 1) {
if (Key.getCode() == 32) {
this.gotoAndStop(2);
_root.nivel.Pared.gotoAndPlay(2);
}
}
}
}
Instance of Symbol 20 MovieClip "aimer" in Frame 173
onClipEvent (load) {
startDrag ("_root.aimer", true);
}
Instance of Symbol 99 MovieClip in Frame 175
on (release) {
_root.gotoAndStop("game");
}
Instance of Symbol 20 MovieClip "aimer" in Frame 175
onClipEvent (load) {
startDrag ("_root.aimer", true);
}
Symbol 15 Button
on (release) {
gotoAndStop (169);
}
Symbol 36 Button
on (release) {
gotoAndStop (170);
}
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 41
_root.gotoAndStop("gameover");
Symbol 47 MovieClip Frame 1
function camControl() {
rp.x = _x;
rp.y = _y;
var _local5 = camH * (_yscale * 0.01);
var _local6 = camW * (_xscale * 0.01);
var _local3 = sH / _local5;
var _local4 = sW / _local6;
_x2 = (_local6 / 2) * _local4;
_y2 = (_local5 / 2) * _local3;
_xscale2 = _local4 * 100;
_yscale2 = _local3 * 100;
_rotation2 = -_rotation;
_parent.filters = this.filters;
_parent.transform.colorTransform = this.transform.colorTransform;
}
function reset() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
_parent._rotation = 0;
_parent._visible = true;
}
function set_x2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x + (value - _local2.x);
}
function get_x2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.x);
}
function set_y2(value) {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._y = _parent._y + (value - _local2.y);
}
function get_y2() {
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
return(_local2.y);
}
function get_xscale2() {
return(_parent._xscale);
}
function set_xscale2(value) {
setProperty2("_xscale", value);
}
function get_yscale2() {
return(_parent._yscale);
}
function set_yscale2(value) {
setProperty2("_yscale", value);
}
function get_rotation2() {
return(parent.rotation);
}
function set_rotation2(value) {
setProperty2("_rotation", value);
}
function setProperty2(prop, n) {
var _local3 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local3);
_parent[prop] = n;
var _local2 = {x:rp.x, y:rp.y};
_parent.localToGlobal(_local2);
_parent._x = _parent._x - (_local2.x - _local3.x);
_parent._y = _parent._y - (_local2.y - _local3.y);
}
addProperty("_x2", get_x2, set_x2);
addProperty("_y2", get_y2, set_y2);
addProperty("_xscale2", get_xscale2, set_xscale2);
addProperty("_yscale2", get_yscale2, set_yscale2);
addProperty("_rotation2", get_rotation2, set_rotation2);
var oldScaleMode = stage.scaleMode;
stage.scaleMode = "exactFit";
var sW = Stage.width;
var sH = Stage.height;
stage.scaleMode = oldScaleMode;
var bounds_obj = this.getBounds(this);
var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin);
var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin);
var rp = {x:this._x, y:this._y};
onEnterFrame = function () {
camControl();
};
this.onUnload = reset;
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 20
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 67 Button
on (release) {
_root.nextFrame();
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 20
stop();
Symbol 78 Button
on (release) {
_root.nextFrame();
}
Symbol 91 MovieClip Frame 15
stop();
Symbol 93 MovieClip Frame 38
stop();
Symbol 95 MovieClip Frame 69
stop();