Combined Code
frame 1 {
stop();
_root.puntuacion = 0;
}
movieClip 3 {
}
movieClip 6 {
}
movieClip 9 {
}
movieClip 11 {
}
movieClip 13 {
}
instance of movieClip 13 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.jugador.one)) {
_root.nextFrame();
}
}
}
movieClip 17 {
}
movieClip 18 {
}
movieClip 21 {
}
movieClip 22 {
frame 31 {
stop();
}
}
movieClip 23 {
frame 1 {
stop();
}
instance of movieClip 17 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.puntuacion += 5;
}
}
}
frame 2 {
stop();
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
movieClip 29 {
}
movieClip 34 {
}
movieClip 37 {
}
movieClip 102 {
}
movieClip 104 {
}
movieClip 106 {
}
movieClip 107 {
}
movieClip 109 {
}
movieClip 111 {
}
movieClip 113 {
}
movieClip 115 {
}
movieClip 117 {
}
movieClip 119 {
}
movieClip 121 {
}
movieClip 123 {
}
movieClip 125 {
}
movieClip 127 {
}
movieClip 129 {
}
movieClip 131 {
}
movieClip 133 {
}
movieClip 135 {
}
movieClip 147 {
}
movieClip 149 {
}
movieClip 179 {
}
movieClip 181 {
}
movieClip 183 {
}
movieClip 184 {
}
movieClip 215 {
}
movieClip 226 {
}
movieClip 247 {
frame 15 {
_root.gotoAndStop('perdistes');
}
frame 15 {
_root.vida -= 1;
_root.prevFrame();
stop();
}
}
movieClip 252 {
}
movieClip 267 {
}
movieClip 268 {
}
movieClip 269 {
frame 1 {
stop();
}
frame 2 {
stop();
_root.jugador.yvel = 0;
_root.jugador.xvel = 0;
_root.jugador.salto = 0;
}
}
instance jugador of movieClip 269 {
onClipEvent (load) {
xvel = 18;
yvel = 10;
salto = -14;
limite = 20;
}
onClipEvent (enterFrame) {
if (_root.suelo.hitTest(_x, _y + _height / 2.5, true)) {
while (_root.suelo.hitTest(_x, -2 + _y + _height / 2.5, true)) {
_y = _y - 1;
}
yvel = 0;
if (Key.isDown(38)) {
yvel = salto;
_y = _y + yvel;
}
} else {
if (_root.suelo.hitTest(_x, _y - _height / 2.5, true)) {
yvel *= -1;
_y = _y + yvel;
while (_root.suelo.hitTest(_x, _y - _height / 2.5, true)) {
_y = _y + 1;
}
} else {
_y = _y + yvel;
if (yvel <= limite) {
++yvel;
}
}
}
_x = _x + (Key.isDown(39) - Key.isDown(37)) * xvel;
while (_root.suelo.hitTest(_x + _width / 2, _y, true)) {
_x = _x - 1;
}
while (_root.suelo.hitTest(_x - _width / 2, _y, true)) {
_x = _x + 1;
}
}
}
movieClip 271 {
}
instance of movieClip 271 {
onClipEvent (enterFrame) {
ship = _root.jugador.one;
if (Key.isDown(39)) {
ship._xscale = 100;
ship.gotoAndStop('caminando');
} else {
if (Key.isDown(37)) {
ship._xscale = -100;
ship.gotoAndStop('caminando');
} else {
if (Key.isDown(32)) {
ship._yscale = 100;
ship.gotoAndStop('atak');
} else {
if (Key.isDown(40)) {
ship._yscale = 100;
ship.gotoAndStop('agachado');
} else {
ship.gotoAndStop('normal');
}
}
}
}
if (Key.isDown(38)) {
ship._yscale = 100;
ship.gotoAndStop('salto');
}
this._visible = false;
}
}
movieClip 274 {
}
movieClip 276 {
}
movieClip 279 {
}
movieClip 282 {
}
movieClip 285 {
}
movieClip 291 {
}
movieClip 292 {
}
movieClip 341 {
frame 25 {
stop();
}
}
movieClip 342 {
instance of movieClip 292 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 292 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 341 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
}
movieClip 359 {
frame 20 {
stop();
}
}
movieClip 360 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance enemigo01 of movieClip 360 {
onClipEvent (enterFrame) {
if (_root.jugador.one.atake.hitTest(this)) {
_root.vida_enemi1.nextFrame();
}
}
}
movieClip 365 {
frame 1 {
stop();
}
frame 30 {
_root.enemigo01.gotoAndStop(2);
}
}
movieClip 368 {
}
movieClip 371 {
}
movieClip 374 {
}
movieClip 377 {
}
movieClip 380 {
}
movieClip 381 {
}
movieClip 389 {
frame 20 {
stop();
}
}
movieClip 390 {
frame 1 {
stop();
}
instance of movieClip 381 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.jugador.one.atake.hitTest(this)) {
_root.bikingo.nextFrame();
}
}
onClipEvent (load) {
velocidad = 2;
}
onClipEvent (enterFrame) {
if (_root.bikingo._xscale == 100) {
_root.bikingo._x += velocidad;
}
if (_root.bikingo._xscale == -100) {
_root.bikingo._x -= velocidad;
}
if (_root.pared1.hitTest(_root.bikingo)) {
_root.bikingo._xscale = 100;
}
if (_root.pared2.hitTest(_root.bikingo)) {
_root.bikingo._xscale = -100;
}
}
}
frame 2 {
stop();
_root.bikingo._yvel = 0;
_root.bikingo._xvel = 0;
}
}
movieClip 392 {
}
instance pared2 of movieClip 392 {
onClipEvent (enterFrame) {
this._alpha = 0;
}
}
instance pared1 of movieClip 392 {
onClipEvent (enterFrame) {
this._alpha = 0;
}
}
movieClip 394 {
}
movieClip 395 {
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 0;
}
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 100;
}
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 0;
}
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 100;
}
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 0;
}
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 100;
}
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 0;
}
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 100;
}
}
frame 19 {
this._parent.gotoAndStop(1);
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 0;
}
}
}
movieClip 396 {
frame 1 {
stop();
}
instance of movieClip 394 {
onClipEvent (enterFrame) {
_root.jugador._alpha = 100;
}
}
frame 2 {
stop();
}
}
movieClip 399 {
frame 1 {
stop();
}
}
movieClip 402 {
frame 10 {
stop();
}
}
movieClip 403 {
frame 1 {
stop();
}
instance of movieClip 399 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.jugador.one.atake.hitTest(this)) {
_root.monstersonic.nextFrame();
}
}
}
frame 2 {
stop();
}
}
movieClip 406 {
frame 1 {
stop();
}
}
movieClip 408 {
frame 5 {
stop();
}
}
movieClip 409 {
frame 1 {
stop();
}
instance of movieClip 406 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.jugador.one.atake.hitTest(this)) {
_root.monsterspyro.nextFrame();
}
}
}
frame 2 {
stop();
}
}
movieClip 412 {
}
movieClip 419 {
}
movieClip 420 {
frame 1 {
stop();
}
frame 46 {
_root.jugador.gotoAndStop(5);
}
}
movieClip 422 {
}
// unknown tag 88 length 213
button 427 {
on (press) {
_root.vcam.musica.gotoAndStop(10);
}
}
button 430 {
on (press) {
_root.vcam.musica.gotoAndStop(2);
}
}
movieClip 431 {
frame 2 {
stop();
}
frame 10 {
stop();
stopAllSounds();
}
}
movieClip 435 {
}
button 437 {
on (release) {
_root._quality = 'LOW';
}
}
button 438 {
on (release) {
_root._quality = 'MEDIUM';
}
}
button 439 {
on (release) {
_root._quality = 'HIGH';
}
}
movieClip 440 {
frame 1 {
function camControl() {
rp.x = _x;
rp.y = _y;
var v5 = camH * (_yscale * 0.01);
var v6 = camW * (_xscale * 0.01);
var v3 = sH / v5;
var v4 = sW / v6;
_x2 = (v6 / 2) * v4;
_y2 = (v5 / 2) * v3;
_xscale2 = v4 * 100;
_yscale2 = v3 * 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 v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x += value - v2.x;
}
function get_x2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.x;
}
function set_y2(value) {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._y += value - v2.y;
}
function get_y2() {
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
return v2.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 v3 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v3);
_parent[prop] = n;
var v2 = {'x': rp.x, 'y': rp.y};
_parent.localToGlobal(v2);
_parent._x -= v2.x - v3.x;
_parent._y -= v2.y - v3.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;
}
instance of movieClip 412 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam._x += -18;
}
}
}
instance of movieClip 412 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam._x += 18;
}
}
}
instance of movieClip 412 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam._y += -16;
}
}
}
instance of movieClip 412 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam._y += 16;
}
}
}
}
movieClip 442 {
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance of movieClip 23 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
this.gotoAndStop(2);
}
}
}
instance jugador of movieClip 269 {
onClipEvent (load) {
xvel = 18;
yvel = 10;
salto = -14;
limite = 20;
}
onClipEvent (enterFrame) {
if (_root.suelo.hitTest(_x, _y + _height / 2.5, true)) {
while (_root.suelo.hitTest(_x, -2 + _y + _height / 2.5, true)) {
_y = _y - 1;
}
yvel = 0;
if (Key.isDown(38)) {
yvel = salto;
_y = _y + yvel;
}
} else {
if (_root.suelo.hitTest(_x, _y - _height / 2.5, true)) {
yvel *= -1;
_y = _y + yvel;
while (_root.suelo.hitTest(_x, _y - _height / 2.5, true)) {
_y = _y + 1;
}
} else {
_y = _y + yvel;
if (yvel <= limite) {
++yvel;
}
}
}
_x = _x + (Key.isDown(39) - Key.isDown(37)) * xvel;
while (_root.suelo.hitTest(_x + _width / 2, _y, true)) {
_x = _x - 1;
}
while (_root.suelo.hitTest(_x - _width / 2, _y, true)) {
_x = _x + 1;
}
}
}
instance of movieClip 271 {
onClipEvent (enterFrame) {
ship = _root.jugador.one;
if (Key.isDown(39)) {
ship._xscale = 100;
ship.gotoAndStop('caminando');
} else {
if (Key.isDown(37)) {
ship._xscale = -100;
ship.gotoAndStop('caminando');
} else {
if (Key.isDown(32)) {
ship._yscale = 100;
ship.gotoAndStop('atak');
} else {
if (Key.isDown(40)) {
ship._yscale = 100;
ship.gotoAndStop('agachado');
} else {
ship.gotoAndStop('normal');
}
}
}
}
if (Key.isDown(38)) {
ship._yscale = 100;
ship.gotoAndStop('salto');
}
this._visible = false;
}
}
instance enemigo01 of movieClip 360 {
onClipEvent (enterFrame) {
if (_root.jugador.one.atake.hitTest(this)) {
_root.vida_enemi1.nextFrame();
}
}
}
instance pared2 of movieClip 392 {
onClipEvent (enterFrame) {
this._alpha = 0;
}
}
instance pared1 of movieClip 392 {
onClipEvent (enterFrame) {
this._alpha = 0;
}
}
movieClip 445 {
frame 1 {
stop();
}
}
movieClip 446 {
frame 5 {
stop();
}
}
movieClip 447 {
frame 1 {
stop();
}
instance of movieClip 445 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.jugador.one.atake.hitTest(this)) {
_root.monsterbara.nextFrame();
}
}
}
frame 2 {
stop();
}
}
movieClip 451 {
}
instance jugador of movieClip 269 {
onClipEvent (load) {
xvel = 18;
yvel = 10;
salto = -18;
limite = 20;
}
onClipEvent (enterFrame) {
if (_root.suelo.hitTest(_x, _y + _height / 2.5, true)) {
while (_root.suelo.hitTest(_x, -2 + _y + _height / 2.5, true)) {
_y = _y - 1;
}
yvel = 0;
if (Key.isDown(38)) {
yvel = salto;
_y = _y + yvel;
}
} else {
if (_root.suelo.hitTest(_x, _y - _height / 2.5, true)) {
yvel *= -1;
_y = _y + yvel;
while (_root.suelo.hitTest(_x, _y - _height / 2.5, true)) {
_y = _y + 1;
}
} else {
_y = _y + yvel;
if (yvel <= limite) {
++yvel;
}
}
}
_x = _x + (Key.isDown(39) - Key.isDown(37)) * xvel;
while (_root.suelo.hitTest(_x + _width / 2, _y, true)) {
_x = _x - 1;
}
while (_root.suelo.hitTest(_x - _width / 2, _y, true)) {
_x = _x + 1;
}
}
}
instance of movieClip 271 {
onClipEvent (enterFrame) {
ship = _root.jugador.one;
if (Key.isDown(39)) {
ship._xscale = 100;
ship.gotoAndStop('caminando');
} else {
if (Key.isDown(37)) {
ship._xscale = -100;
ship.gotoAndStop('caminando');
} else {
if (Key.isDown(32)) {
ship._yscale = 100;
ship.gotoAndStop('atak');
} else {
if (Key.isDown(40)) {
ship._yscale = 100;
ship.gotoAndStop('agachado');
} else {
ship.gotoAndStop('normal');
}
}
}
}
if (Key.isDown(38)) {
ship._yscale = 100;
ship.gotoAndStop('salto');
}
this._visible = false;
}
}
movieClip 454 {
}
movieClip 457 {
}
movieClip 460 {
}
movieClip 463 {
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
_root.Daño_JD.gotoAndStop(2);
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.jugador.hitTest(this)) {
_root.vcam.vida.nextFrame();
}
}
}
}
movieClip 464 {
frame 45 {
stop();
}
}
movieClip 465 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance enemigo02 of movieClip 465 {
onClipEvent (enterFrame) {
if (_root.jugador.one.atake.hitTest(this)) {
_root.vida_golem.nextFrame();
}
}
}
movieClip 473 {
frame 1 {
stop();
}
frame 80 {
_root.enemigo02.gotoAndStop(2);
}
}
frame 4 {
stop();
}
// unknown tag 88 length 138
movieClip 479 {
}
button 483 {
on (press) {
_root.gotoAndStop('nivel1');
}
}