Combined Code
frame 1 {
stop();
}
movieClip 2 {
}
// unknown tag 88 length 94
button 10 {
on (release) {
_root.nextFrame();
}
}
frame 2 {
stop();
}
movieClip 14 {
}
instance of movieClip 14 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
movieClip 20 {
frame 1 {
stop();
}
frame 28 {
_root.gotoAndStop('gameover');
}
}
movieClip 31 {
}
movieClip 34 {
}
movieClip 35 {
}
instance of movieClip 35 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.jugador)) {
_root.nextFrame();
}
}
}
movieClip 40 {
}
movieClip 45 {
}
movieClip 48 {
}
movieClip 51 {
}
movieClip 58 {
}
movieClip 59 {
}
instance jugador of movieClip 59 {
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;
}
}
}
frame 3 {
stop();
}
movieClip 61 {
}
instance jugador of movieClip 59 {
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;
}
}
}
movieClip 63 {
}
instance of movieClip 63 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.jugador)) {
_root.nextFrame();
}
}
}
frame 4 {
stop();
}
movieClip 66 {
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 72 {
}
instance of movieClip 72 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.jugador)) {
_root.nextFrame();
}
}
}
instance jugador of movieClip 59 {
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;
}
}
}
frame 5 {
stop();
}
instance jugador of movieClip 59 {
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;
}
}
}
movieClip 75 {
}
movieClip 77 {
}
instance of movieClip 77 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.jugador)) {
_root.nextFrame();
}
}
}
frame 6 {
stop();
}
movieClip 81 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
this.onUnload = resetStage;
}
}
instance vcam of movieClip 81 {
onClipEvent (enterFrame) {
_y = _y + (_root.jugador._y - _y) / 4;
_x = _x + (_root.jugador._x - _x) / 4;
}
}
movieClip 83 {
}
instance of movieClip 83 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
movieClip 90 {
}
movieClip 91 {
}
movieClip 92 {
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 72 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.jugador)) {
_root.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
}
instance jugador of movieClip 59 {
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;
}
}
}
frame 7 {
stop();
}
movieClip 97 {
}
movieClip 99 {
}
movieClip 101 {
}
button 109 {
on (release) {
_root.nextFrame();
}
}
frame 8 {
stop();
}
movieClip 112 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
this.onUnload = resetStage;
}
}
instance vcam of movieClip 112 {
onClipEvent (enterFrame) {
_y = _y + (_root.jugador._y - _y) / 4;
_x = _x + (_root.jugador._x - _x) / 4;
}
}
instance jugador of movieClip 59 {
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;
}
}
}
movieClip 115 {
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 91 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
}
movieClip 122 {
}
movieClip 133 {
}
movieClip 141 {
}
movieClip 142 {
}
instance of movieClip 142 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 142 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
frame 10 {
stop();
}
// unknown tag 88 length 68
button 151 {
on (release) {
_root.gotoAndStop('game');
}
}