Frame 1
duh = 0;
fscommand ("flashstudio.setdxres", "\"640\",\"480\",\"16\"");
Frame 2
_quality = "HIGH";
Frame 3
n = int((getBytesLoaded() / getBytesTotal()) * 100);
if (n >= 5) {
gotoAndPlay (5);
} else {
barra.gotoAndStop(n);
}
Frame 4
gotoAndPlay (3);
Frame 5
n = int((getBytesLoaded() / getBytesTotal()) * 100);
if (n >= 100) {
gotoAndPlay (34);
} else {
barra.gotoAndStop(n);
}
Frame 6
gotoAndPlay (5);
Frame 34
fscommand ("showmenu", "false");
Instance of Symbol 81 MovieClip in Frame 34
onClipEvent (keyDown) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIP1");
}
}
Frame 349
function defaultKeys() {
_root.ARRIBA = 38;
_root.DER = 39;
_root.IZQ = 37;
_root.SHOOT = 17;
_root.SLIDEKEY = 16;
}
function restoreKeys() {
_root.heroe.ARRIBA = (_root.controles.data.ARRIBA = (_root.ARRIBA = 38));
_root.heroe.DER = (_root.controles.data.DER = (_root.DER = 39));
_root.heroe.IZQ = (_root.controles.data.IZQ = (_root.IZQ = 37));
_root.heroe.SHOOT = (_root.controles.data.SHOOT = (_root.SHOOT = 17));
_root.heroe.SLIDEKEY = (_root.controles.data.SLIDEKEY = (_root.SLIDEKEY = 16));
_root.controles.flush();
}
function aleatorio(a, b) {
return(Math.floor(Math.random() * ((b - a) + 1)) + a);
}
function m2s(tiempo) {
var mins = Math.floor(tiempo / 60000);
var secs = Math.floor((tiempo % 60000) / 1000);
if (mins < 10) {
mins = "0" + String(mins);
}
if (secs < 10) {
secs = "0" + String(secs);
}
return((("00:" + String(mins)) + ":") + String(secs));
}
defaultKeys();
controles = SharedObject.getLocal("fiscontroles");
if (controles.data.ARRIBA != null) {
ARRIBA = controles.data.ARRIBA;
}
if (controles.data.DER != null) {
DER = controles.data.DER;
}
if (controles.data.IZQ != null) {
IZQ = controles.data.IZQ;
}
if (controles.data.SHOOT != null) {
SHOOT = controles.data.SHOOT;
}
if (controles.data.SLIDEKEY != null) {
SLIDEKEY = controles.data.SLIDEKEY;
}
stopAllSounds();
fscommand ("trapallkeys", "true");
play();
Frame 438
totalBTN = 6;
i = 1;
while (i <= totalBTN) {
eval ("btn" + i).enabled = false;
i++;
}
cheat = "";
Frame 451
stop();
i = 1;
while (i <= totalBTN) {
eval ("btn" + i).enabled = true;
i++;
}
Instance of Symbol 112 MovieClip in Frame 451
onClipEvent (keyDown) {
function ponerFoco(desde, modo) {
if (Selection.getFocus() == null) {
Selection.setFocus("_root.btn1");
return(undefined);
}
desde = Number(desde);
if (modo == 0) {
((desde < total) ? (desde++) : ((desde = 1)));
Selection.setFocus("_root.btn" + desde);
return(undefined);
}
if (modo == 1) {
((desde > 1) ? (desde--) : ((desde = total)));
Selection.setFocus("_root.btn" + desde);
return(undefined);
}
}
total = _root.totalBTN;
if (Key.isDown(40)) {
ponerFoco(Selection.getFocus().substring(11), 0);
}
if (Key.isDown(38)) {
ponerFoco(Selection.getFocus().substring(11), 1);
}
}
Instance of Symbol 113 MovieClip "cheatReader" in Frame 451
onClipEvent (load) {
cheatlist = ["bosses", "onemorechance", "allmovies"];
if (_root.cheat == "") {
read = true;
s = new Sound();
s.attachSound("cheater");
} else {
read = false;
}
}
onClipEvent (keyDown) {
function parse(clave) {
for (i in cheatlist) {
if (clave == cheatlist[i]) {
read = false;
s.start();
}
}
}
if (read) {
_root.cheat = _root.cheat + String.fromCharCode(Key.getAscii());
parse(_root.cheat);
}
}
Frame 452
i = 1;
while (i <= totalBTN) {
eval ("btn" + i).enabled = false;
i++;
}
Frame 467
stop();
Instance of Symbol 112 MovieClip in Frame 467
onClipEvent (keyDown) {
if (Key.isDown(40) || (Key.isDown(38))) {
Selection.setFocus("_root.btn0");
}
}
Frame 477
gotoAndPlay (409);
Frame 478
i = 1;
while (i <= totalBTN) {
eval ("btn" + i).enabled = false;
i++;
}
Frame 493
stop();
Instance of Symbol 112 MovieClip in Frame 493
onClipEvent (keyDown) {
if (Key.isDown(40) || (Key.isDown(38))) {
Selection.setFocus("_root.btn0");
}
}
Frame 503
gotoAndPlay (409);
Frame 505
i = 1;
while (i <= totalBTN) {
eval ("btn" + i).enabled = false;
i++;
}
Frame 520
stop();
Instance of Symbol 112 MovieClip in Frame 520
onClipEvent (keyDown) {
if (Key.isDown(40) || (Key.isDown(38))) {
Selection.setFocus("_root.btn0");
}
}
Frame 530
gotoAndPlay (409);
Frame 532
i = 1;
while (i <= totalBTN) {
eval ("btn" + i).enabled = false;
i++;
}
Frame 547
stop();
Instance of Symbol 200 MovieClip "scoretable" in Frame 547
onClipEvent (load) {
function procesar() {
var temp;
_visible = ((loaded = true));
_root.msg.text = "";
exito.start();
_root.scoretable.name0.text = this.NAME0;
_root.scoretable.name1.text = this.NAME1;
_root.scoretable.name2.text = this.NAME2;
_root.scoretable.name3.text = this.NAME3;
_root.scoretable.name4.text = this.NAME4;
_root.scoretable.name5.text = this.NAME5;
_root.scoretable.name6.text = this.NAME6;
_root.scoretable.name7.text = this.NAME7;
_root.scoretable.name8.text = this.NAME8;
_root.scoretable.name9.text = this.NAME9;
_root.scoretable.score0.text = this.SCORE0;
_root.scoretable.score1.text = this.SCORE1;
_root.scoretable.score2.text = this.SCORE2;
_root.scoretable.score3.text = this.SCORE3;
_root.scoretable.score4.text = this.SCORE4;
_root.scoretable.score5.text = this.SCORE5;
_root.scoretable.score6.text = this.SCORE6;
_root.scoretable.score7.text = this.SCORE7;
_root.scoretable.score8.text = this.SCORE8;
_root.scoretable.score9.text = this.SCORE9;
var i = 0;
while (i <= 9) {
if (eval ("this.SCORE" + i) != 0) {
temp = (18750 - eval ("this.SCORE" + i)) / 0.021;
eval ("_root.scoretable.time" + i).text = _root.m2s(temp);
} else {
eval ("_root.scoretable.time" + i).text = "Empty";
}
trace((eval ("_root.scoretable.name" + i).text + "\t") + eval ("_root.scoretable.score" + i).text);
i++;
}
}
_visible = false;
u = false;
variables = new LoadVars();
datos = new LoadVars();
datos.onLoad = procesar;
variables.filename = "fis.sco";
variables.scoresize = 10;
variables.action = "VIEW";
variables.viewtype = "FLASH";
variables.sendAndLoad("http://www.dzarchive.com/iragination/hiscotumay.php", datos, "GET");
mwait = getTimer() + 40000;
loaded = false;
failed = new Sound();
failed.attachSound("fhitted");
exito = new Sound();
exito.attachSound("cheater");
}
onClipEvent (enterFrame) {
if (((getTimer() >= mwait) && (!loaded)) && (!u)) {
_root.msg.text = "No data file found";
failed.start();
u = true;
this.nextFrame();
}
}
Instance of Symbol 112 MovieClip in Frame 547
onClipEvent (keyDown) {
if (Key.isDown(40) || (Key.isDown(38))) {
Selection.setFocus("_root.btn0");
}
}
Frame 556
gotoAndPlay (409);
Frame 566
i = 1;
while (i <= totalBTN) {
eval ("btn" + i).enabled = false;
i++;
}
Frame 581
BTNpress = new Sound();
BTNpress.attachSound("BTNpress");
stop();
Instance of Symbol 113 MovieClip in Frame 581
onClipEvent (keyDown) {
_root.IZQ = key.getCode();
_root.BTNpress.start();
_root.controles.data.IZQ = _root.IZQ;
_root.nextFrame();
}
Instance of Symbol 113 MovieClip in Frame 582
onClipEvent (keyDown) {
_root.DER = key.getCode();
_root.BTNpress.start();
_root.controles.data.DER = _root.DER;
_root.nextFrame();
}
Instance of Symbol 113 MovieClip in Frame 583
onClipEvent (keyDown) {
_root.ARRIBA = key.getCode();
_root.BTNpress.start();
_root.controles.data.ARRIBA = _root.ARRIBA;
_root.nextFrame();
}
Instance of Symbol 113 MovieClip in Frame 584
onClipEvent (keyDown) {
_root.SHOOT = key.getCode();
_root.BTNpress.start();
_root.controles.data.SHOOT = _root.SHOOT;
_root.nextFrame();
}
Instance of Symbol 113 MovieClip in Frame 585
onClipEvent (keyDown) {
_root.SLIDEKEY = key.getCode();
_root.BTNpress.start();
_root.controles.data.SLIDEKEY = _root.SLIDEKEY;
_root.play();
}
Instance of Symbol 219 MovieClip "mapa" in Frame 589
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 230 MovieClip "shoot1" in Frame 589
onClipEvent (load) {
_x = 120;
_y = -1000;
heroe = eval (_root.heroe);
dx = 20;
_visible = false;
impact = false;
u = 0;
}
onClipEvent (enterFrame) {
if (_visible) {
this.gotoAndStop(1);
if (((_x >= 256) || (_x <= 0)) || (impact)) {
if (!u) {
this.gotoAndStop("hit");
u = 1;
} else {
_x = 120;
_y = -1000;
this.gotoAndStop(1);
heroe.shooting = false;
_visible = false;
u = 0;
}
} else {
_x = (_x + (dx - heroe.scrollspeed));
_y = (_y - heroe.vscrollspeed);
}
} else {
impact = false;
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 589
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if (heroe.horizontal || (heroe.scrollspeed)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 589
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
if (_root.posY && (!_root.died)) {
_y = _root.posY;
}
if (_root.died) {
_root.currentdamage = 0;
}
_root.died = false;
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed();
}
lastX = _x;
lastY = _y;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating && (!rising)) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
rising = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (!horizontal) {
this.gotoAndStop("attackST");
return(undefined);
}
if (horizontal) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else {
if (!horizontal) {
this.gotoAndStop("standing");
_root.estado = 0;
return(undefined);
}
if (horizontal) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
}
}
render();
frame = sprite._currentframe;
}
Frame 592
stop();
Frame 596
gotoAndPlay (409);
Frame 608
i = 1;
while (i <= totalBTN) {
eval ("btn" + i).enabled = false;
i++;
}
Instance of Symbol 112 MovieClip in Frame 617
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
if (!v) {
n = n - 5;
}
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
v = true;
delete _root.loop;
}
}
Frame 641
delete i;
delete totalBTN;
delete BTNpress;
currentdamage = 0;
explo01 = new Sound();
explo01.attachSound("explo01");
hitted = new Sound();
hitted.attachSound("hitted");
fhitted = new Sound();
fhitted.attachSound("fhitted");
fdeath = new Sound();
fdeath.attachSound("explo10");
escudo = new Sound();
escudo.attachSound("escudo");
fscommand ("trapallkeys", "true");
stop();
Posy = 0;
estado = 0;
reveal = true;
if (cheat == "bosses") {
gotoAndPlay (1054);
} else {
play();
}
if (cheat == "onemorechance") {
lives = 6;
} else {
lives = 2;
}
Instance of Symbol 295 MovieClip in Frame 642
onClipEvent (keyDown) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIPepisode1");
}
}
Frame 719
function aleatorio(a, b) {
return(Math.floor(Math.random() * ((b - a) + 1)) + a);
}
stopAllSounds();
_quality = "HIGH";
Instance of Symbol 295 MovieClip in Frame 719
onClipEvent (keyDown) {
if (Key.isDown(13)) {
this.play();
}
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIPMapaIntro");
}
}
Frame 768
stop();
Instance of Symbol 112 MovieClip in Frame 768
onClipEvent (keyUp) {
_root.nextFrame();
}
Instance of Symbol 112 MovieClip in Frame 770
onClipEvent (load) {
c = (i = 0);
xi = Math.abs(_x - _root.city._x);
}
onClipEvent (enterFrame) {
_x = (_root.city._x - xi);
c++;
if (c >= 2) {
c = 0;
i++;
if (i >= 10) {
i = 1;
}
initObj = {_x:_x + _root.aleatorio(-15, 15), _y:_y + _root.aleatorio(-50, 60)};
_root.exs.duplicateMovieClip("exs" + i, i, initObj);
}
}
Frame 771
play();
Frame 796
stop();
Instance of Symbol 112 MovieClip in Frame 796
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 799
play();
Frame 999
_root.fader.duplicateMovieClip("fader300", 300);
Frame 1000
_root.fader300.play();
Instance of Symbol 112 MovieClip in Frame 1039
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
if (!v) {
n = n - 10;
}
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
v = true;
delete _root.loop;
}
}
Frame 1040
i = 1;
while (i <= 10) {
who = eval ("exs" + i);
who.removeMovieClip();
i++;
}
fader300.removeMovieClip();
delete i;
delete who;
ttotal = 0;
tmark = getTimer();
trace("Inicio:" + tmark);
if (cheat == "allmovies") {
gotoAndPlay (1460);
}
Frame 1054
duh = duh + _currentframe;
stopAllSounds();
if (cheat == "bosses") {
gotoAndStop (1154);
} else {
play();
}
Frame 1055
function aleatorio(a, b) {
return(Math.floor(Math.random() * ((b - a) + 1)) + a);
}
checkpoint = _root._currentframe;
next = "B";
currentdamage = 0;
windx = 0;
_quality = "LOW";
stop();
Instance of Symbol 327 MovieClip "fade" in Frame 1055
onClipEvent (load) {
begin = (reveal = (hide = false));
DELAY = 40;
if (_root.reveal) {
this.gotoAndStop("reveal");
}
}
onClipEvent (enterFrame) {
if (begin) {
wait = true;
begin = false;
c = 0;
}
if (wait) {
c++;
if (c > DELAY) {
wait = false;
hide = true;
}
}
if (hide) {
play();
}
if (_root.reveal) {
this.gotoAndStop("reveal");
_root.reveal = false;
reveal = true;
}
if (reveal) {
play();
}
}
Instance of Symbol 328 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - (heroe.scrollspeed / 4));
_y = (_y - (heroe.vscrollspeed / 4));
}
Instance of Symbol 331 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - (heroe.scrollspeed / 3));
_y = (_y - (heroe.vscrollspeed / 3));
}
Instance of Symbol 331 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - (heroe.scrollspeed / 3));
_y = (_y - (heroe.vscrollspeed / 3));
}
Instance of Symbol 331 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - (heroe.scrollspeed / 3));
_y = (_y - (heroe.vscrollspeed / 3));
}
Instance of Symbol 333 MovieClip "scrollmask" in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 80 MovieClip in Frame 1055
onClipEvent (enterFrame) {
_x = (_x - _root.heroe.scrollspeed);
}
Instance of Symbol 335 MovieClip in Frame 1055
onClipEvent (enterFrame) {
_x = (_x - _root.heroe.scrollspeed);
}
Instance of Symbol 362 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
SPEED = 5;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
SPEED = 5;
xi = _x;
yi = _y;
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = yi;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
delete shoot;
death = true;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
SPEED = 5;
xi = _x;
yi = _y;
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = yi;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
delete shoot;
death = true;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
SPEED = 5;
xi = _x;
yi = _y;
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = yi;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
delete shoot;
death = true;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
SPEED = 5;
xi = _x;
yi = _y;
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = yi;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
delete shoot;
death = true;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
SPEED = 5;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
SPEED = 5;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
SPEED = 5;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 364 MovieClip "mapa" in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 396 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 398 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
u = false;
_visible = false;
_x = 1008;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - _root.heroe.vscrollspeed);
if (this.hitTest(heroe.sprite.hotzone) && (!u)) {
u = true;
_root.Posy = heroe._y;
_root.Posx = heroe._x;
_root.nextFrame();
}
}
Instance of Symbol 80 MovieClip in Frame 1055
onClipEvent (enterFrame) {
_x = (_x - _root.heroe.scrollspeed);
}
Instance of Symbol 424 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = (dx = 2);
delta = 60;
xi = _x - _root.plataforma0._x;
DAMAGE = 1;
MAXDAMAGE = 3;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = SPEED;
this.gotoAndStop("standing");
}
function drawframe() {
if (dx < 0) {
forward = true;
} else {
forward = false;
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
}
xi = xi - _parent.heroe.scrollspeed;
_x = (_x - (dx + _parent.heroe.scrollspeed));
_y = (_y - heroe.vscrollspeed);
if (Math.abs(_x - xi) >= delta) {
dx = dx * -1;
}
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (!death) {
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
_root.bevil.gotoAndStop(MAXDAMAGE);
death = true;
}
if (death) {
_root.shoot1.impact = false;
_root.bigexp.play();
dx = 0;
}
drawframe();
} else {
doexplode();
}
} else {
_visible = false;
if (death && (Math.abs(heroe._x - _x) >= 200)) {
dorespawn();
}
}
}
Instance of Symbol 436 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
dx = (dy = 0);
SPEED = 0.5;
MAX = 18;
xi = _x;
yi = _y;
forward = false;
idle = true;
descending = false;
attack = false;
done = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = 0;
this.gotoAndStop("standing");
idle = true;
descending = false;
attack = false;
_x = xi;
_y = yi;
}
function drawframe() {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
if (attack) {
this.gotoAndStop("attack");
} else {
this.gotoAndStop("standing");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
yi = yi - heroe.vscrollspeed;
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
dx = 0;
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 160) && (_root.mascara.hitTest(_x, _y + 20))) {
idle = false;
descending = true;
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= (heroe._y - (heroe._height / 2))) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack) {
heroe.DAMAGE = 3;
dx = dx * 1.3;
if (Math.abs(dx) >= MAX) {
((dx > 0) ? ((dx = MAX)) : ((dx = -1 * MAX)));
}
_x = (_x - dx);
if (Math.abs(_x - 160) >= 260) {
dorespawn();
}
}
drawframe();
} else if (!_root.mascara.hitTest(xi, yi + 20)) {
dorespawn();
}
}
Instance of Symbol 455 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("jump");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 15;
falling = true;
vertical = 2;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
landing = new Sound();
landing.attachSound("sapolanding");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
if (mapa.hitTest(_x - 11, _y, true) || (mapa.hitTest(_x + 11, _y, true))) {
falling = (attack = false);
idle = true;
currenthigh = 0;
landing.start();
j = -15;
while (j <= 15) {
if ((mapa.hitTest(_x - 11, _y + j, true) && (!mapa.hitTest(_x - 11, (_y + j) - 1, true))) || (mapa.hitTest(_x + 11, _y + j, true) && (!mapa.hitTest(_x + 11, (_y + j) - 1, true)))) {
break;
}
j++;
}
_y = ((_y + j) - heroe.vscrollspeed);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
if (mapa.hitTest(_x + 7, _y - 48, true)) {
u = (techo = true);
}
return(u);
}
function setScale() {
if (preattack) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (attack) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
falling = true;
idle = (attack = (preattack = (attacking = (jump = (rising = false)))));
horizontal = 0;
vertical = 2;
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
landing = new Sound();
landing.attachSound("sapolanding");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attack) {
this.gotoAndStop("jump");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete landing;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (idle) {
horizontal = 0;
if (hitable) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
timer = 3;
}
}
if (attack && (!jump)) {
timer--;
if (!timer) {
jump = true;
}
}
if (jump) {
horizontal = setSpeed();
vertical = vforce * -1;
rising = true;
jump = false;
}
if (rising) {
if (roof()) {
falling = true;
rising = false;
}
Paredes();
if (currenthigh < MAXJUMP) {
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * heroe.gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
falling = true;
rising = false;
}
}
}
if (falling) {
Paredes();
hitPlatforms();
vertical = Math.abs(vertical) * heroe.accel;
if (vertical > heroe.MAXVERTICAL) {
vertical = heroe.MAXVERTICAL;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(_x, _y)) && (!_root.mascara.hitTest(xi, yi))) {
dorespawn();
}
}
Instance of Symbol 518 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("hide");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_y = (_y + 1);
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 25;
WALKTIME = 40;
timer = DELAY;
hide = true;
falling = false;
vertical = 0;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
suelo = true;
if (((!mapa.hitTest(_x - 2, _y, true)) && (horizontal < 0)) || ((!mapa.hitTest(_x + 2, _y, true)) && (horizontal > 0))) {
suelo = false;
horizontal = 0;
}
return(undefined);
}
function setScale() {
if (hide && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (walk) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("hide");
hide = true;
attack = (walk = (wake = (prewalk = false)));
horizontal = (vertical = 0);
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
function drawframe() {
if (hide) {
this.gotoAndStop("hide");
return(undefined);
}
if (wake) {
this.gotoAndStop("wake");
return(undefined);
}
if (attack || (prewalk)) {
this.gotoAndStop("attack");
return(undefined);
}
if (walk) {
this.gotoAndStop("walk");
return(undefined);
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if ((this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) && (!us)) {
_root.shoot1.impact = true;
us = true;
if (!shield) {
hitted = true;
_root.hitted.start();
} else {
_root.escudo.start();
shieldtimer = 5;
_root.frebote._x = _x;
_root.frebote._y = _root.shoot1._y + 4;
_root.frebote.gotoAndPlay(2);
}
}
if (shieldtimer != 0) {
shieldtimer--;
}
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (hide) {
if (timer) {
timer--;
}
shield = true;
horizontal = 0;
if (((Math.abs(heroe._x - _x) <= 60) && (Math.abs(heroe._y - _y) <= 200)) && (!timer)) {
attack = (attacking = false);
hide = false;
wake = true;
shield = false;
timer = 10;
}
}
if (wake) {
timer--;
if (!timer) {
wake = false;
attack = true;
timer = 5;
}
}
if (attack) {
timer--;
if (!timer) {
attack = false;
prewalk = true;
timer = 4;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
this.attachMovie("bullet", "b3", 3);
shoot.start();
b1.control.dx = (-1 * SPEED) * 2.5;
b1.control.dy = (-1 * SPEED) * 2.5;
b1._x = 20;
b1._y = -13;
b2.control.dx = (-1 * SPEED) * 3.5;
b2._x = 20;
b2._y = -13;
b3.control.dx = (-1 * SPEED) * 2.5;
b3.control.dy = SPEED * 2.5;
b3._x = 20;
b3._y = -13;
}
}
if (prewalk) {
timer--;
if (!timer) {
prewalk = false;
walk = true;
timer = WALKTIME;
}
}
if (walk) {
timer--;
horizontal = setSpeed();
Paredes();
hitPlatforms();
if (((!timer) || (!suelo)) || (wall)) {
horizontal = 0;
walk = false;
hide = true;
timer = DELAY;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(xi, _y)) && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
dorespawn();
}
}
Instance of Symbol 455 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("jump");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 15;
falling = true;
vertical = 2;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
landing = new Sound();
landing.attachSound("sapolanding");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
if (mapa.hitTest(_x - 11, _y, true) || (mapa.hitTest(_x + 11, _y, true))) {
falling = (attack = false);
idle = true;
currenthigh = 0;
landing.start();
j = -15;
while (j <= 15) {
if ((mapa.hitTest(_x - 11, _y + j, true) && (!mapa.hitTest(_x - 11, (_y + j) - 1, true))) || (mapa.hitTest(_x + 11, _y + j, true) && (!mapa.hitTest(_x + 11, (_y + j) - 1, true)))) {
break;
}
j++;
}
_y = ((_y + j) - heroe.vscrollspeed);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
if (mapa.hitTest(_x + 7, _y - 48, true)) {
u = (techo = true);
}
return(u);
}
function setScale() {
if (preattack) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (attack) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
falling = true;
idle = (attack = (preattack = (attacking = (jump = (rising = false)))));
horizontal = 0;
vertical = 2;
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
landing = new Sound();
landing.attachSound("sapolanding");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attack) {
this.gotoAndStop("jump");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete landing;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (idle) {
horizontal = 0;
if (hitable) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
timer = 3;
}
}
if (attack && (!jump)) {
timer--;
if (!timer) {
jump = true;
}
}
if (jump) {
horizontal = setSpeed();
vertical = vforce * -1;
rising = true;
jump = false;
}
if (rising) {
if (roof()) {
falling = true;
rising = false;
}
Paredes();
if (currenthigh < MAXJUMP) {
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * heroe.gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
falling = true;
rising = false;
}
}
}
if (falling) {
Paredes();
hitPlatforms();
vertical = Math.abs(vertical) * heroe.accel;
if (vertical > heroe.MAXVERTICAL) {
vertical = heroe.MAXVERTICAL;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if (!_root.mascara.hitTest(xi, yi)) {
dorespawn();
}
}
Instance of Symbol 530 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
dx = (dy = 0);
SPEED = 0.5;
MAX = 18;
xi = _x;
yi = _y;
forward = false;
idle = true;
descending = false;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = 0;
this.gotoAndStop("standing");
idle = true;
descending = false;
attack = false;
_x = xi;
_y = yi;
}
function drawframe() {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
dx = 0;
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (_root.mascara.hitTest(_x, _y))) {
attacking = false;
idle = false;
descending = true;
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
}
drawframe();
} else if ((!_root.mascara.hitTest(xi, yi)) && (!(b1._visible || (b2._visible)))) {
dorespawn();
}
}
Instance of Symbol 530 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
dx = (dy = 0);
SPEED = 0.5;
MAX = 18;
xi = _x;
yi = _y;
forward = false;
idle = true;
descending = false;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = 0;
this.gotoAndStop("standing");
idle = true;
descending = false;
attack = false;
_x = xi;
_y = yi;
}
function drawframe() {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
dx = 0;
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (_root.mascara.hitTest(_x, _y))) {
attacking = false;
idle = false;
descending = true;
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
}
drawframe();
} else if ((!_root.mascara.hitTest(xi, yi)) && (!(b1._visible || (b2._visible)))) {
dorespawn();
}
}
Instance of Symbol 530 MovieClip in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
dx = (dy = 0);
SPEED = 0.5;
MAX = 18;
xi = _x;
yi = _y;
forward = false;
idle = true;
descending = false;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = 0;
this.gotoAndStop("standing");
idle = true;
descending = false;
attack = false;
_x = xi;
_y = yi;
}
function drawframe() {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
dx = 0;
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (_root.mascara.hitTest(_x, _y))) {
attacking = false;
idle = false;
descending = true;
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
}
drawframe();
} else if ((!_root.mascara.hitTest(xi, yi)) && (!(b1._visible || (b2._visible)))) {
dorespawn();
}
}
Instance of Symbol 538 MovieClip "topeizq" in Frame 1055
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - _parent.heroe.scrollspeed);
}
Instance of Symbol 539 MovieClip "topeder" in Frame 1055
onClipEvent (load) {
_visible = false;
_x = 1024;
}
onClipEvent (enterFrame) {
_x = (_x - _parent.heroe.scrollspeed);
}
Instance of Symbol 538 MovieClip "topeabajo" in Frame 1055
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y - _root.heroe.vscrollspeed);
}
Instance of Symbol 230 MovieClip "shoot1" in Frame 1055
onClipEvent (load) {
_x = 120;
_y = -1000;
heroe = eval (_root.heroe);
dx = 20;
_visible = false;
impact = false;
u = 0;
}
onClipEvent (enterFrame) {
if (_visible) {
this.gotoAndStop(1);
if (((_x >= 256) || (_x <= 0)) || (impact)) {
if (!u) {
this.gotoAndStop("hit");
u = 1;
} else {
_x = 120;
_y = -1000;
this.gotoAndStop(1);
heroe.shooting = false;
_visible = false;
u = 0;
}
} else {
_x = (_x + (dx - heroe.scrollspeed));
_y = (_y - heroe.vscrollspeed);
}
} else {
impact = false;
}
}
Instance of Symbol 550 MovieClip "frebote" in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if (heroe.horizontal || (heroe.scrollspeed)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 557 MovieClip "smoke" in Frame 1055
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1055
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
if (_root.posY && (!_root.died)) {
_y = _root.posY;
}
if (_root.died) {
_root.currentdamage = 0;
}
_root.died = false;
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed();
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating && (!rising)) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
rising = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
doVscroll = false;
vscrollspeed = 0;
if (((_y <= 112) && (rising)) || ((_y >= 192) && (falling))) {
doVscroll = true;
}
if (_root.topeabajo.hitTest(_root.scrollmask) && (!rising)) {
doVscroll = false;
}
if (doVscroll) {
_y = lastY;
vscrollspeed = vertical;
}
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (!horizontal) {
this.gotoAndStop("attackST");
return(undefined);
}
if (horizontal) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else {
if (!horizontal) {
this.gotoAndStop("standing");
_root.estado = 0;
return(undefined);
}
if (horizontal) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
}
}
render();
frame = sprite._currentframe;
}
Instance of Symbol 333 MovieClip "mascara" in Frame 1055
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 112 MovieClip "music" in Frame 1055
onClipEvent (load) {
_root.intro = new Sound();
_root.intro.setVolume(100);
_root.intro.attachSound("MapaIntro");
_root.loop = new Sound();
_root.loop.attachSound("MapaLoop");
_root.loop.setVolume(100);
_root.intro.start();
}
onClipEvent (enterFrame) {
_root.intro.onSoundComplete = function () {
_root.loop.start(0, 99);
};
}
Instance of Symbol 573 MovieClip "trans" in Frame 1056
onClipEvent (load) {
dx = 8;
}
onClipEvent (enterFrame) {
if (_x > -256) {
_x = (_x - dx);
}
if (_x <= -256) {
_root.gotoAndStop(_root.next);
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1056
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
estado = _root.estado;
}
onClipEvent (enterFrame) {
function drawFrame() {
_visible = true;
if (((estado == 1) || (estado == 2)) || (estado == 6)) {
_visible = false;
}
if (((estado == 3) || (estado == 4)) || (estado == 5)) {
_y = ((heroe._y - yi) - 6);
this.gotoAndStop("move");
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1056
onClipEvent (load) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
_y = _root.Posy;
_x = _root.Posx;
dx = _root.trans.dx * 0.8;
drawframe2();
}
onClipEvent (enterFrame) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
if (_x > 32) {
_x = (_x - dx);
}
if (_root.trans.u) {
_y = (_y + 1);
}
drawframe2();
}
Frame 1074
heroe._x = heroe._x + 10;
heroe.doscroll = false;
windx = 0;
locks = 3;
next = "C";
unlocked = new Sound();
unlocked.attachSound("cheater");
stop();
Instance of Symbol 333 MovieClip "scrollmask" in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 80;
_y = 16;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 576;
_y = 64;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 1072;
_y = -400;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 178;
_y = 16;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 626;
_y = 64;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 1169;
_y = -400;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 513;
_y = -192;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 753;
_y = -48;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = (_root.mapa._y - yi);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 946;
_y = -240;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 657;
_y = -192;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 929;
_y = -48;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 362 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 994;
_y = -240;
SPEED = 7;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 20;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
idle = true;
attack = (preattack = (attacking = false));
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("barrelshoot");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attacking) {
this.gotoAndStop("attack");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_root.mapa._y - yi);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if ((Math.abs(heroe._x - _x) <= 140) && (Math.abs(heroe._y - _y) <= 220)) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = SPEED;
b1.control.dy = -1 * SPEED;
b1._x = -12;
b1._y = -14;
b2.control.dx = -1 * SPEED;
b2.control.dy = -1 * SPEED;
b2._x = 12;
b2._y = -14;
}
if (attacking) {
if ((!b1.hitTest(_root.mascara)) && (!b2.hitTest(_root.mascara))) {
attacking = (attack = (preattack = false));
idle = true;
}
}
drawframe();
} else if ((Math.abs(heroe._x - _x) >= 200) || (Math.abs(heroe._y - _y) >= 200)) {
dorespawn();
}
}
Instance of Symbol 580 MovieClip "mapa" in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 615 MovieClip "texturas" in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 618 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
u = false;
_x = 1264;
_y = 176;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
if ((this.hitTest(heroe.sprite.hotzone) && (!u)) && (_root.locks == 0)) {
u = true;
_root.Posy = heroe._y;
_root.Posx = heroe._x;
_root.Posx2 = _root.texturas.lastblock._x;
_root.Posy2 = _root.mapa._y;
_root.pause = true;
_root.nextFrame();
}
}
Instance of Symbol 633 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
DAMAGE = 1;
MAXDAMAGE = 10;
currentdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
FLASHTIME = 10;
timerdamage = 0;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (!death) {
this.gotoAndStop("stand");
} else {
this.gotoAndStop("death");
}
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if ((currentdamage >= MAXDAMAGE) && (!death)) {
myColor.setTransform(myColorTransform);
death = true;
_root.locks = _root.locks - 1;
_root.msgbox.msg = "";
_root.msgbox.begin = true;
if (_root.locks > 0) {
_root.msgbox.msg = _root.locks + " more locks to destroy!".toUpperCase();
} else {
_root.msgbox.msg = "All locks destroyed.".toUpperCase();
}
}
if (death && (!v)) {
_root.shoot1.impact = false;
myColor.setTransform(myColorNormal);
v = true;
}
}
drawFrame();
}
Instance of Symbol 633 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 1200;
_y = -288;
DAMAGE = 1;
MAXDAMAGE = 10;
currentdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
FLASHTIME = 10;
timerdamage = 0;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (!death) {
this.gotoAndStop("stand");
} else {
this.gotoAndStop("death");
}
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if ((currentdamage >= MAXDAMAGE) && (!death)) {
myColor.setTransform(myColorTransform);
death = true;
_root.locks = _root.locks - 1;
_root.msgbox.msg = "";
_root.msgbox.begin = true;
if (_root.locks > 0) {
_root.msgbox.msg = _root.locks + " more locks to destroy!".toUpperCase();
} else {
_root.msgbox.msg = "All locks destroyed.".toUpperCase();
}
}
if (death && (!v)) {
_root.shoot1.impact = false;
myColor.setTransform(myColorNormal);
v = true;
}
}
drawFrame();
}
Instance of Symbol 633 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
_x = 848;
_y = -48;
DAMAGE = 1;
MAXDAMAGE = 10;
currentdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
FLASHTIME = 10;
timerdamage = 0;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (!death) {
this.gotoAndStop("stand");
} else {
this.gotoAndStop("death");
}
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if ((currentdamage >= MAXDAMAGE) && (!death)) {
myColor.setTransform(myColorTransform);
death = true;
_root.locks = _root.locks - 1;
_root.msgbox.msg = "";
_root.msgbox.begin = true;
if (_root.locks > 0) {
_root.msgbox.msg = _root.locks + " more locks to destroy!".toUpperCase();
} else {
_root.msgbox.msg = "All locks destroyed.".toUpperCase();
}
}
if (death && (!v)) {
_root.shoot1.impact = false;
myColor.setTransform(myColorNormal);
v = true;
}
}
drawFrame();
}
Instance of Symbol 455 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("jump");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 370;
_y = -143;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 15;
falling = true;
vertical = 2;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
landing = new Sound();
landing.attachSound("sapolanding");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
if (mapa.hitTest(_x - 11, _y, true) || (mapa.hitTest(_x + 11, _y, true))) {
falling = (attack = false);
idle = true;
currenthigh = 0;
landing.start();
j = -15;
while (j <= 15) {
if ((mapa.hitTest(_x - 11, _y + j, true) && (!mapa.hitTest(_x - 11, (_y + j) - 1, true))) || (mapa.hitTest(_x + 11, _y + j, true) && (!mapa.hitTest(_x + 11, (_y + j) - 1, true)))) {
break;
}
j++;
}
_y = ((_y + j) - heroe.vscrollspeed);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
if (mapa.hitTest(_x + 7, _y - 48, true)) {
u = (techo = true);
}
return(u);
}
function setScale() {
if (preattack) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (attack) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
falling = true;
idle = (attack = (preattack = (attacking = (jump = (rising = false)))));
horizontal = 0;
vertical = 2;
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
landing = new Sound();
landing.attachSound("sapolanding");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attack) {
this.gotoAndStop("jump");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete landing;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (idle) {
horizontal = 0;
if (hitable) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
timer = 3;
}
}
if (attack && (!jump)) {
timer--;
if (!timer) {
jump = true;
}
}
if (jump) {
horizontal = setSpeed();
vertical = vforce * -1;
rising = true;
jump = false;
}
if (rising) {
if (roof()) {
falling = true;
rising = false;
}
Paredes();
if (currenthigh < MAXJUMP) {
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * heroe.gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
falling = true;
rising = false;
}
}
}
if (falling) {
Paredes();
hitPlatforms();
vertical = Math.abs(vertical) * heroe.accel;
if (vertical > heroe.MAXVERTICAL) {
vertical = heroe.MAXVERTICAL;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(_x, _y)) && (!_root.mascara.hitTest(xi, yi))) {
dorespawn();
}
}
Instance of Symbol 455 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("jump");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 578;
_y = -207;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 15;
falling = true;
vertical = 2;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
landing = new Sound();
landing.attachSound("sapolanding");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
if (mapa.hitTest(_x - 11, _y, true) || (mapa.hitTest(_x + 11, _y, true))) {
falling = (attack = false);
idle = true;
currenthigh = 0;
landing.start();
j = -15;
while (j <= 15) {
if ((mapa.hitTest(_x - 11, _y + j, true) && (!mapa.hitTest(_x - 11, (_y + j) - 1, true))) || (mapa.hitTest(_x + 11, _y + j, true) && (!mapa.hitTest(_x + 11, (_y + j) - 1, true)))) {
break;
}
j++;
}
_y = ((_y + j) - heroe.vscrollspeed);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
if (mapa.hitTest(_x + 7, _y - 48, true)) {
u = (techo = true);
}
return(u);
}
function setScale() {
if (preattack) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (attack) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
falling = true;
idle = (attack = (preattack = (attacking = (jump = (rising = false)))));
horizontal = 0;
vertical = 2;
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
landing = new Sound();
landing.attachSound("sapolanding");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attack) {
this.gotoAndStop("jump");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete landing;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (idle) {
horizontal = 0;
if (hitable) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
timer = 3;
}
}
if (attack && (!jump)) {
timer--;
if (!timer) {
jump = true;
}
}
if (jump) {
horizontal = setSpeed();
vertical = vforce * -1;
rising = true;
jump = false;
}
if (rising) {
if (roof()) {
falling = true;
rising = false;
}
Paredes();
if (currenthigh < MAXJUMP) {
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * heroe.gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
falling = true;
rising = false;
}
}
}
if (falling) {
Paredes();
hitPlatforms();
vertical = Math.abs(vertical) * heroe.accel;
if (vertical > heroe.MAXVERTICAL) {
vertical = heroe.MAXVERTICAL;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(_x, _y)) && (!_root.mascara.hitTest(xi, yi))) {
dorespawn();
}
}
Instance of Symbol 455 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("jump");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 778;
_y = -207;
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 15;
falling = true;
vertical = 2;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 2;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
landing = new Sound();
landing.attachSound("sapolanding");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
if (mapa.hitTest(_x - 11, _y, true) || (mapa.hitTest(_x + 11, _y, true))) {
falling = (attack = false);
idle = true;
currenthigh = 0;
landing.start();
j = -15;
while (j <= 15) {
if ((mapa.hitTest(_x - 11, _y + j, true) && (!mapa.hitTest(_x - 11, (_y + j) - 1, true))) || (mapa.hitTest(_x + 11, _y + j, true) && (!mapa.hitTest(_x + 11, (_y + j) - 1, true)))) {
break;
}
j++;
}
_y = ((_y + j) - heroe.vscrollspeed);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
if (mapa.hitTest(_x + 7, _y - 48, true)) {
u = (techo = true);
}
return(u);
}
function setScale() {
if (preattack) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (attack) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
falling = true;
idle = (attack = (preattack = (attacking = (jump = (rising = false)))));
horizontal = 0;
vertical = 2;
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
landing = new Sound();
landing.attachSound("sapolanding");
}
function drawframe() {
if (idle) {
this.gotoAndStop("standing");
}
if (attack) {
this.gotoAndStop("jump");
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete landing;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (idle) {
horizontal = 0;
if (hitable) {
attack = (attacking = false);
idle = false;
preattack = true;
timer = DELAY;
}
}
if (preattack) {
timer--;
if (!timer) {
preattack = false;
attack = true;
timer = 3;
}
}
if (attack && (!jump)) {
timer--;
if (!timer) {
jump = true;
}
}
if (jump) {
horizontal = setSpeed();
vertical = vforce * -1;
rising = true;
jump = false;
}
if (rising) {
if (roof()) {
falling = true;
rising = false;
}
Paredes();
if (currenthigh < MAXJUMP) {
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * heroe.gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
falling = true;
rising = false;
}
}
}
if (falling) {
Paredes();
hitPlatforms();
vertical = Math.abs(vertical) * heroe.accel;
if (vertical > heroe.MAXVERTICAL) {
vertical = heroe.MAXVERTICAL;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(_x, _y)) && (!_root.mascara.hitTest(xi, yi))) {
dorespawn();
}
}
Instance of Symbol 518 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("hide");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 1169;
_y = -288;
_y = (_y + 1);
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 25;
WALKTIME = 40;
timer = DELAY;
hide = true;
falling = false;
vertical = 0;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
suelo = true;
if (((!mapa.hitTest(_x - 2, _y, true)) && (horizontal < 0)) || ((!mapa.hitTest(_x + 2, _y, true)) && (horizontal > 0))) {
suelo = false;
horizontal = 0;
}
return(undefined);
}
function setScale() {
if (hide && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (walk) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("hide");
hide = true;
attack = (walk = (wake = (prewalk = false)));
horizontal = (vertical = 0);
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
function drawframe() {
if (hide) {
this.gotoAndStop("hide");
return(undefined);
}
if (wake) {
this.gotoAndStop("wake");
return(undefined);
}
if (attack || (prewalk)) {
this.gotoAndStop("attack");
return(undefined);
}
if (walk) {
this.gotoAndStop("walk");
return(undefined);
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if ((this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) && (!us)) {
_root.shoot1.impact = true;
us = true;
if (!shield) {
hitted = true;
_root.hitted.start();
} else {
_root.escudo.start();
shieldtimer = 5;
_root.frebote._x = _x;
_root.frebote._y = _root.shoot1._y + 4;
_root.frebote.gotoAndPlay(2);
}
}
if (shieldtimer != 0) {
shieldtimer--;
}
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (hide) {
if (timer) {
timer--;
}
shield = true;
horizontal = 0;
if (((Math.abs(heroe._x - _x) <= 60) && (Math.abs(heroe._y - _y) <= 200)) && (!timer)) {
attack = (attacking = false);
hide = false;
wake = true;
shield = false;
timer = 10;
}
}
if (wake) {
timer--;
if (!timer) {
wake = false;
attack = true;
timer = 5;
}
}
if (attack) {
timer--;
if (!timer) {
attack = false;
prewalk = true;
timer = 4;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
this.attachMovie("bullet", "b3", 3);
shoot.start();
b1.control.dx = (-1 * SPEED) * 2.5;
b1.control.dy = (-1 * SPEED) * 2.5;
b1._x = 20;
b1._y = -13;
b2.control.dx = (-1 * SPEED) * 3.5;
b2._x = 20;
b2._y = -13;
b3.control.dx = (-1 * SPEED) * 2.5;
b3.control.dy = SPEED * 2.5;
b3._x = 20;
b3._y = -13;
}
}
if (prewalk) {
timer--;
if (!timer) {
prewalk = false;
walk = true;
timer = WALKTIME;
}
}
if (walk) {
timer--;
horizontal = setSpeed();
Paredes();
hitPlatforms();
if (((!timer) || (!suelo)) || (wall)) {
horizontal = 0;
walk = false;
hide = true;
timer = DELAY;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(xi, _y)) && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
dorespawn();
}
}
Instance of Symbol 518 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("hide");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 1152;
_y = -32;
_y = (_y + 1);
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 25;
WALKTIME = 40;
timer = DELAY;
hide = true;
falling = false;
vertical = 0;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
suelo = true;
if (((!mapa.hitTest(_x - 2, _y, true)) && (horizontal < 0)) || ((!mapa.hitTest(_x + 2, _y, true)) && (horizontal > 0))) {
suelo = false;
horizontal = 0;
}
return(undefined);
}
function setScale() {
if (hide && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (walk) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("hide");
hide = true;
attack = (walk = (wake = (prewalk = false)));
horizontal = (vertical = 0);
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
function drawframe() {
if (hide) {
this.gotoAndStop("hide");
return(undefined);
}
if (wake) {
this.gotoAndStop("wake");
return(undefined);
}
if (attack || (prewalk)) {
this.gotoAndStop("attack");
return(undefined);
}
if (walk) {
this.gotoAndStop("walk");
return(undefined);
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if ((this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) && (!us)) {
_root.shoot1.impact = true;
us = true;
if (!shield) {
hitted = true;
_root.hitted.start();
} else {
_root.escudo.start();
shieldtimer = 5;
_root.frebote._x = _x;
_root.frebote._y = _root.shoot1._y + 4;
_root.frebote.gotoAndPlay(2);
}
}
if (shieldtimer != 0) {
shieldtimer--;
}
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (hide) {
if (timer) {
timer--;
}
shield = true;
horizontal = 0;
if (((Math.abs(heroe._x - _x) <= 60) && (Math.abs(heroe._y - _y) <= 200)) && (!timer)) {
attack = (attacking = false);
hide = false;
wake = true;
shield = false;
timer = 10;
}
}
if (wake) {
timer--;
if (!timer) {
wake = false;
attack = true;
timer = 5;
}
}
if (attack) {
timer--;
if (!timer) {
attack = false;
prewalk = true;
timer = 4;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
this.attachMovie("bullet", "b3", 3);
shoot.start();
b1.control.dx = (-1 * SPEED) * 2.5;
b1.control.dy = (-1 * SPEED) * 2.5;
b1._x = 20;
b1._y = -13;
b2.control.dx = (-1 * SPEED) * 3.5;
b2._x = 20;
b2._y = -13;
b3.control.dx = (-1 * SPEED) * 2.5;
b3.control.dy = SPEED * 2.5;
b3._x = 20;
b3._y = -13;
}
}
if (prewalk) {
timer--;
if (!timer) {
prewalk = false;
walk = true;
timer = WALKTIME;
}
}
if (walk) {
timer--;
horizontal = setSpeed();
Paredes();
hitPlatforms();
if (((!timer) || (!suelo)) || (wall)) {
horizontal = 0;
walk = false;
hide = true;
timer = DELAY;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(xi, _y)) && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
dorespawn();
}
}
Instance of Symbol 518 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("hide");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 352;
_y = -224;
_y = (_y + 1);
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 25;
WALKTIME = 40;
timer = DELAY;
hide = true;
falling = false;
vertical = 0;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
suelo = true;
if (((!mapa.hitTest(_x - 2, _y, true)) && (horizontal < 0)) || ((!mapa.hitTest(_x + 2, _y, true)) && (horizontal > 0))) {
suelo = false;
horizontal = 0;
}
return(undefined);
}
function setScale() {
if (hide && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (walk) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("hide");
hide = true;
attack = (walk = (wake = (prewalk = false)));
horizontal = (vertical = 0);
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
function drawframe() {
if (hide) {
this.gotoAndStop("hide");
return(undefined);
}
if (wake) {
this.gotoAndStop("wake");
return(undefined);
}
if (attack || (prewalk)) {
this.gotoAndStop("attack");
return(undefined);
}
if (walk) {
this.gotoAndStop("walk");
return(undefined);
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if ((this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) && (!us)) {
_root.shoot1.impact = true;
us = true;
if (!shield) {
hitted = true;
_root.hitted.start();
} else {
_root.escudo.start();
shieldtimer = 5;
_root.frebote._x = _x;
_root.frebote._y = _root.shoot1._y + 4;
_root.frebote.gotoAndPlay(2);
}
}
if (shieldtimer != 0) {
shieldtimer--;
}
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (hide) {
if (timer) {
timer--;
}
shield = true;
horizontal = 0;
if (((Math.abs(heroe._x - _x) <= 60) && (Math.abs(heroe._y - _y) <= 200)) && (!timer)) {
attack = (attacking = false);
hide = false;
wake = true;
shield = false;
timer = 10;
}
}
if (wake) {
timer--;
if (!timer) {
wake = false;
attack = true;
timer = 5;
}
}
if (attack) {
timer--;
if (!timer) {
attack = false;
prewalk = true;
timer = 4;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
this.attachMovie("bullet", "b3", 3);
shoot.start();
b1.control.dx = (-1 * SPEED) * 2.5;
b1.control.dy = (-1 * SPEED) * 2.5;
b1._x = 20;
b1._y = -13;
b2.control.dx = (-1 * SPEED) * 3.5;
b2._x = 20;
b2._y = -13;
b3.control.dx = (-1 * SPEED) * 2.5;
b3.control.dy = SPEED * 2.5;
b3._x = 20;
b3._y = -13;
}
}
if (prewalk) {
timer--;
if (!timer) {
prewalk = false;
walk = true;
timer = WALKTIME;
}
}
if (walk) {
timer--;
horizontal = setSpeed();
Paredes();
hitPlatforms();
if (((!timer) || (!suelo)) || (wall)) {
horizontal = 0;
walk = false;
hide = true;
timer = DELAY;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(xi, _y)) && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
dorespawn();
}
}
Instance of Symbol 518 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("hide");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 512;
_y = -16;
_y = (_y + 1);
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 25;
WALKTIME = 40;
timer = DELAY;
hide = true;
falling = false;
vertical = 0;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
suelo = true;
if (((!mapa.hitTest(_x - 2, _y, true)) && (horizontal < 0)) || ((!mapa.hitTest(_x + 2, _y, true)) && (horizontal > 0))) {
suelo = false;
horizontal = 0;
}
return(undefined);
}
function setScale() {
if (hide && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (walk) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("hide");
hide = true;
attack = (walk = (wake = (prewalk = false)));
horizontal = (vertical = 0);
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
function drawframe() {
if (hide) {
this.gotoAndStop("hide");
return(undefined);
}
if (wake) {
this.gotoAndStop("wake");
return(undefined);
}
if (attack || (prewalk)) {
this.gotoAndStop("attack");
return(undefined);
}
if (walk) {
this.gotoAndStop("walk");
return(undefined);
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if ((this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) && (!us)) {
_root.shoot1.impact = true;
us = true;
if (!shield) {
hitted = true;
_root.hitted.start();
} else {
_root.escudo.start();
shieldtimer = 5;
_root.frebote._x = _x;
_root.frebote._y = _root.shoot1._y + 4;
_root.frebote.gotoAndPlay(2);
}
}
if (shieldtimer != 0) {
shieldtimer--;
}
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (hide) {
if (timer) {
timer--;
}
shield = true;
horizontal = 0;
if (((Math.abs(heroe._x - _x) <= 60) && (Math.abs(heroe._y - _y) <= 200)) && (!timer)) {
attack = (attacking = false);
hide = false;
wake = true;
shield = false;
timer = 10;
}
}
if (wake) {
timer--;
if (!timer) {
wake = false;
attack = true;
timer = 5;
}
}
if (attack) {
timer--;
if (!timer) {
attack = false;
prewalk = true;
timer = 4;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
this.attachMovie("bullet", "b3", 3);
shoot.start();
b1.control.dx = (-1 * SPEED) * 2.5;
b1.control.dy = (-1 * SPEED) * 2.5;
b1._x = 20;
b1._y = -13;
b2.control.dx = (-1 * SPEED) * 3.5;
b2._x = 20;
b2._y = -13;
b3.control.dx = (-1 * SPEED) * 2.5;
b3.control.dy = SPEED * 2.5;
b3._x = 20;
b3._y = -13;
}
}
if (prewalk) {
timer--;
if (!timer) {
prewalk = false;
walk = true;
timer = WALKTIME;
}
}
if (walk) {
timer--;
horizontal = setSpeed();
Paredes();
hitPlatforms();
if (((!timer) || (!suelo)) || (wall)) {
horizontal = 0;
walk = false;
hide = true;
timer = DELAY;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(xi, _y)) && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
dorespawn();
}
}
Instance of Symbol 518 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("hide");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 817;
_y = -48;
_y = (_y + 1);
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 25;
WALKTIME = 40;
timer = DELAY;
hide = true;
falling = false;
vertical = 0;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
suelo = true;
if (((!mapa.hitTest(_x - 2, _y, true)) && (horizontal < 0)) || ((!mapa.hitTest(_x + 2, _y, true)) && (horizontal > 0))) {
suelo = false;
horizontal = 0;
}
return(undefined);
}
function setScale() {
if (hide && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (walk) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("hide");
hide = true;
attack = (walk = (wake = (prewalk = false)));
horizontal = (vertical = 0);
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
function drawframe() {
if (hide) {
this.gotoAndStop("hide");
return(undefined);
}
if (wake) {
this.gotoAndStop("wake");
return(undefined);
}
if (attack || (prewalk)) {
this.gotoAndStop("attack");
return(undefined);
}
if (walk) {
this.gotoAndStop("walk");
return(undefined);
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if ((this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) && (!us)) {
_root.shoot1.impact = true;
us = true;
if (!shield) {
hitted = true;
_root.hitted.start();
} else {
_root.escudo.start();
shieldtimer = 5;
_root.frebote._x = _x;
_root.frebote._y = _root.shoot1._y + 4;
_root.frebote.gotoAndPlay(2);
}
}
if (shieldtimer != 0) {
shieldtimer--;
}
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (hide) {
if (timer) {
timer--;
}
shield = true;
horizontal = 0;
if (((Math.abs(heroe._x - _x) <= 60) && (Math.abs(heroe._y - _y) <= 200)) && (!timer)) {
attack = (attacking = false);
hide = false;
wake = true;
shield = false;
timer = 10;
}
}
if (wake) {
timer--;
if (!timer) {
wake = false;
attack = true;
timer = 5;
}
}
if (attack) {
timer--;
if (!timer) {
attack = false;
prewalk = true;
timer = 4;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
this.attachMovie("bullet", "b3", 3);
shoot.start();
b1.control.dx = (-1 * SPEED) * 2.5;
b1.control.dy = (-1 * SPEED) * 2.5;
b1._x = 20;
b1._y = -13;
b2.control.dx = (-1 * SPEED) * 3.5;
b2._x = 20;
b2._y = -13;
b3.control.dx = (-1 * SPEED) * 2.5;
b3.control.dy = SPEED * 2.5;
b3._x = 20;
b3._y = -13;
}
}
if (prewalk) {
timer--;
if (!timer) {
prewalk = false;
walk = true;
timer = WALKTIME;
}
}
if (walk) {
timer--;
horizontal = setSpeed();
Paredes();
hitPlatforms();
if (((!timer) || (!suelo)) || (wall)) {
horizontal = 0;
walk = false;
hide = true;
timer = DELAY;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(xi, _y)) && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
dorespawn();
}
}
Instance of Symbol 518 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
this.gotoAndStop("hide");
SPEED = 2;
vforce = 15;
vforcei = 10;
MAXJUMP = 60;
currenthigh = 0;
_x = 929;
_y = 32;
_y = (_y + 1);
xi = _x;
yi = Math.abs(_y - _root.mapa._y);
DELAY = 25;
WALKTIME = 40;
timer = DELAY;
hide = true;
falling = false;
vertical = 0;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
onClipEvent (enterFrame) {
function hitPlatforms() {
suelo = true;
if (((!mapa.hitTest(_x - 2, _y, true)) && (horizontal < 0)) || ((!mapa.hitTest(_x + 2, _y, true)) && (horizontal > 0))) {
suelo = false;
horizontal = 0;
}
return(undefined);
}
function setScale() {
if (hide && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
if (_x <= heroe._x) {
_xscale = Math.abs(_xscale);
} else {
_xscale = (-1 * Math.abs(_xscale));
}
}
}
function setSpeed() {
if (walk) {
if (_xscale > 0) {
return(SPEED);
}
return(-1 * SPEED);
}
}
function wallizq() {
return(mapa.hitTest(_x - 23, _y - 24, true));
}
function wallder() {
return(mapa.hitTest(_x + 23, _y - 24, true));
}
function Paredes() {
if (wallder() && (horizontal > 0)) {
horizontal = 0;
wall = true;
}
if (wallizq() && (horizontal < 0)) {
horizontal = 0;
wall = true;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
currenthigh = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("hide");
hide = true;
attack = (walk = (wake = (prewalk = false)));
horizontal = (vertical = 0);
_x = xi;
_y = ((_root.mapa._y - yi) - heroe.vscrollspeed);
shoot = new Sound();
shoot.attachSound("metoolshoot");
}
function drawframe() {
if (hide) {
this.gotoAndStop("hide");
return(undefined);
}
if (wake) {
this.gotoAndStop("wake");
return(undefined);
}
if (attack || (prewalk)) {
this.gotoAndStop("attack");
return(undefined);
}
if (walk) {
this.gotoAndStop("walk");
return(undefined);
}
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if ((this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) && (!us)) {
_root.shoot1.impact = true;
us = true;
if (!shield) {
hitted = true;
_root.hitted.start();
} else {
_root.escudo.start();
shieldtimer = 5;
_root.frebote._x = _x;
_root.frebote._y = _root.shoot1._y + 4;
_root.frebote.gotoAndPlay(2);
}
}
if (shieldtimer != 0) {
shieldtimer--;
}
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
rising = (falling = false);
doexplode();
}
}
if (!death) {
if (hide) {
if (timer) {
timer--;
}
shield = true;
horizontal = 0;
if (((Math.abs(heroe._x - _x) <= 60) && (Math.abs(heroe._y - _y) <= 200)) && (!timer)) {
attack = (attacking = false);
hide = false;
wake = true;
shield = false;
timer = 10;
}
}
if (wake) {
timer--;
if (!timer) {
wake = false;
attack = true;
timer = 5;
}
}
if (attack) {
timer--;
if (!timer) {
attack = false;
prewalk = true;
timer = 4;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
this.attachMovie("bullet", "b3", 3);
shoot.start();
b1.control.dx = (-1 * SPEED) * 2.5;
b1.control.dy = (-1 * SPEED) * 2.5;
b1._x = 20;
b1._y = -13;
b2.control.dx = (-1 * SPEED) * 3.5;
b2._x = 20;
b2._y = -13;
b3.control.dx = (-1 * SPEED) * 2.5;
b3.control.dy = SPEED * 2.5;
b3._x = 20;
b3._y = -13;
}
}
if (prewalk) {
timer--;
if (!timer) {
prewalk = false;
walk = true;
timer = WALKTIME;
}
}
if (walk) {
timer--;
horizontal = setSpeed();
Paredes();
hitPlatforms();
if (((!timer) || (!suelo)) || (wall)) {
horizontal = 0;
walk = false;
hide = true;
timer = DELAY;
}
}
_y = (_y + vertical);
_x = (_x + horizontal);
setScale();
drawframe();
} else if ((!_root.mascara.hitTest(xi, _y)) && (!((b1._visible || (b2._visible)) || (b3._visible)))) {
dorespawn();
}
}
Instance of Symbol 538 MovieClip "topeizq" in Frame 1074
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - _parent.heroe.scrollspeed);
}
Instance of Symbol 539 MovieClip "topeder" in Frame 1074
onClipEvent (load) {
_visible = false;
_x = 1280;
}
onClipEvent (enterFrame) {
_x = (_x - _parent.heroe.scrollspeed);
}
Instance of Symbol 538 MovieClip "topeabajo" in Frame 1074
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y - _root.heroe.vscrollspeed);
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if (heroe.horizontal || (heroe.scrollspeed)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 557 MovieClip "smoke" in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1074
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
if (_root.posY) {
_y = _root.posY;
}
if (_root.died) {
_root.currentdamage = 0;
}
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed();
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating && (!rising)) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
rising = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
doVscroll = false;
vscrollspeed = 0;
if (((_y <= 112) && (rising)) || ((_y >= 192) && (falling))) {
doVscroll = true;
}
if (_root.topeabajo.hitTest(_root.scrollmask) && (!rising)) {
doVscroll = false;
}
if (doVscroll) {
_y = lastY;
vscrollspeed = vertical;
}
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (!horizontal) {
this.gotoAndStop("attackST");
return(undefined);
}
if (horizontal) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else {
if (!horizontal) {
this.gotoAndStop("standing");
_root.estado = 0;
return(undefined);
}
if (horizontal) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
}
}
if (!pause) {
render();
}
frame = sprite._currentframe;
}
Instance of Symbol 640 MovieClip in Frame 1074
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - (heroe.scrollspeed * 1.1));
_y = (_y - (heroe.vscrollspeed * 1.1));
}
Instance of Symbol 643 MovieClip "msgbox" in Frame 1074
onClipEvent (load) {
yi = _y;
yf = 222;
c = 0;
lapse = 2;
DELAY = 60;
begin = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (begin) {
scrollup = true;
begin = false;
}
if (scrollup) {
_visible = true;
_y = (_y + ((yf - _y) / lapse));
if (_y <= yf) {
_y = yf;
scrollup = false;
stay = true;
c = 0;
}
}
if (stay) {
c = c + 1;
if (c >= DELAY) {
stay = false;
scrolldown = true;
}
}
if (scrolldown) {
dy = 1.5;
_y = (_y + dy);
if (_y >= yi) {
_y = _yi;
scrolldown = false;
_visible = false;
}
}
}
Instance of Symbol 684 MovieClip "trans" in Frame 1075
onClipEvent (load) {
dx = 8;
_y = _root.Posy2;
door = _root.trans.door;
}
onClipEvent (enterFrame) {
u = false;
if ((_y < 224) && (!door.pause)) {
_y = (_y + 1);
u = true;
}
if ((_x > -256) && (!door.pause)) {
_x = (_x - dx);
}
if ((_x <= -256) && (!v)) {
door.pause = true;
door._x = 256;
door.gotoAndPlay("close");
v = true;
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1075
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
estado = _root.estado;
}
onClipEvent (enterFrame) {
function drawFrame() {
_visible = true;
if (((estado == 1) || (estado == 2)) || (estado == 6)) {
_visible = false;
}
if (((estado == 3) || (estado == 4)) || (estado == 5)) {
_y = ((heroe._y - yi) - 6);
this.gotoAndStop("move");
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1075
onClipEvent (load) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
_y = _root.Posy;
_x = _root.Posx;
dx = _root.trans.dx * 0.8;
drawframe2();
}
onClipEvent (enterFrame) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
if ((_x > 32) && (!_root.trans.door.pause)) {
_x = (_x - dx);
}
if (_root.trans.u) {
_y = (_y + 1);
}
drawframe2();
}
Frame 1094
checkpoint = _root._currentframe;
next = "D";
delete unlocked;
windx = 0;
Instance of Symbol 686 MovieClip "mapa" in Frame 1094
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 618 MovieClip in Frame 1094
onClipEvent (load) {
heroe = eval (_root.heroe);
u = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
if (this.hitTest(heroe.sprite.hotzone) && (!u)) {
u = true;
_root.Posy = heroe._y;
_root.Posx = heroe._x;
_root.Posx2 = _root.texturas.lastblock._x;
_root.Posy2 = _root.mapa._y;
_root.pause = true;
_root.nextFrame();
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1094
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if (heroe.horizontal || (heroe.scrollspeed)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 557 MovieClip "smoke" in Frame 1094
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1094
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
if (_root.posY && (!_root.died)) {
_y = _root.posY;
}
if (_root.died) {
_root.currentdamage = 0;
}
_root.died = false;
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed();
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating && (!rising)) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
rising = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
doVscroll = false;
vscrollspeed = 0;
if (((_y <= 112) && (rising)) || ((_y >= 192) && (falling))) {
doVscroll = true;
}
if (_root.topeabajo.hitTest(_root.scrollmask) && (!rising)) {
doVscroll = false;
}
if (doVscroll) {
_y = lastY;
vscrollspeed = vertical;
}
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (!horizontal) {
this.gotoAndStop("attackST");
return(undefined);
}
if (horizontal) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else {
if (!horizontal) {
this.gotoAndStop("standing");
_root.estado = 0;
return(undefined);
}
if (horizontal) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
}
}
render();
frame = sprite._currentframe;
}
Instance of Symbol 690 MovieClip "trans" in Frame 1095
onClipEvent (load) {
dx = 8;
_y = _root.Posy2;
door = _root.trans.door;
}
onClipEvent (enterFrame) {
u = false;
if ((_y < 224) && (!door.pause)) {
_y = (_y + 1);
u = true;
}
if ((_x > -256) && (!door.pause)) {
_x = (_x - dx);
}
if ((_x <= -256) && (!v)) {
door.pause = true;
door._x = 256;
door.gotoAndPlay("close");
v = true;
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1095
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
estado = _root.estado;
}
onClipEvent (enterFrame) {
function drawFrame() {
_visible = true;
if (((estado == 1) || (estado == 2)) || (estado == 6)) {
_visible = false;
}
if (((estado == 3) || (estado == 4)) || (estado == 5)) {
_y = ((heroe._y - yi) - 6);
this.gotoAndStop("move");
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1095
onClipEvent (load) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
_y = _root.Posy;
_x = _root.Posx;
dx = _root.trans.dx * 0.8;
drawframe2();
}
onClipEvent (enterFrame) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
if ((_x > 32) && (!_root.trans.door.pause)) {
_x = (_x - dx);
}
if (_root.trans.u) {
_y = (_y + 1);
}
drawframe2();
}
Frame 1114
locks = true;
next = "E";
windx = 0;
rumble.begin = true;
Instance of Symbol 550 MovieClip "rumble" in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 1;
DELAY = 20;
c = 0;
yi = _root._y;
}
onClipEvent (enterFrame) {
if (begin) {
dorumble = true;
begin = false;
c = 0;
}
if (dorumble) {
dy = dy * -1;
_root._y = _root._y + dy;
c = c + 1;
if (c > DELAY) {
dorumble = false;
_root._y = yi;
}
}
}
Instance of Symbol 692 MovieClip in Frame 1114
onClipEvent (load) {
dy = 0.1;
MAX = 20;
c = 0;
DELAY = 495;
MIN = 0.5;
}
onClipEvent (enterFrame) {
if (c < DELAY) {
c++;
if (dy < MAX) {
dy = dy + ((20 - dy) / 20);
}
if (c >= DELAY) {
detener = true;
}
}
if (detener) {
if (dy > MIN) {
dy = dy + ((-dy) / 40);
} else {
detenido = true;
detener = false;
}
}
if (detenido) {
dy = 0;
_root.locks = false;
}
_y = (_y + dy);
if (_y > 240) {
_y = -1;
}
}
Instance of Symbol 692 MovieClip in Frame 1114
onClipEvent (load) {
dy = 0.1;
MAX = 20;
c = 0;
DELAY = 495;
MIN = 0.5;
}
onClipEvent (enterFrame) {
if (c < DELAY) {
c++;
if (dy < MAX) {
dy = dy + ((20 - dy) / 20);
}
if (c >= DELAY) {
detener = true;
}
}
if (detener) {
if (dy > MIN) {
dy = dy + ((-dy) / 40);
} else {
detenido = true;
detener = false;
}
}
if (detenido) {
dy = 0;
_root.locks = false;
}
_y = (_y + dy);
if (_y > 240) {
_y = -1;
}
}
Instance of Symbol 694 MovieClip "mapa" in Frame 1114
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 618 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
u = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
if ((this.hitTest(heroe.sprite.hotzone) && (!u)) && (!_root.locks)) {
u = true;
_root.Posy = heroe._y;
_root.Posx = heroe._x;
_root.Posx2 = _root.texturas.lastblock._x;
_root.Posy2 = _root.mapa._y;
_root.pause = true;
_root.nextFrame();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 424 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
dy = 3;
SPEED = (dx = 5);
dx = 0;
DAMAGE = 1;
MAXDAMAGE = 3;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x - 20, _y - 5, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x + 20, _y - 5, true)));
}
function setdx() {
if (hitable) {
if (!u) {
dx = SPEED;
u = true;
}
if (wallder()) {
dx = -1 * SPEED;
}
if (wallizq()) {
dx = SPEED;
}
}
}
function setdy() {
dy = 3;
if (this.hitTest(mapa)) {
dy = 16;
}
if (mapa.hitTest(_x, _y, true)) {
dy = 0;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = SPEED;
this.gotoAndStop("standing");
}
function drawframe() {
((dx > 0) ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
dx = 0;
}
}
if (!death) {
setdx();
setdy();
_x = (_x + dx);
_y = (_y + dy);
drawframe();
} else {
doexplode();
}
}
Instance of Symbol 424 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
dy = 3;
SPEED = (dx = 5);
dx = 0;
DAMAGE = 1;
MAXDAMAGE = 3;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x - 20, _y - 5, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x + 20, _y - 5, true)));
}
function setdx() {
if (hitable) {
if (!u) {
dx = SPEED;
u = true;
}
if (wallder()) {
dx = -1 * SPEED;
}
if (wallizq()) {
dx = SPEED;
}
}
}
function setdy() {
dy = 3;
if (this.hitTest(mapa)) {
dy = 16;
}
if (mapa.hitTest(_x, _y, true)) {
dy = 0;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = SPEED;
this.gotoAndStop("standing");
}
function drawframe() {
((dx > 0) ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
dx = 0;
}
}
if (!death) {
setdx();
setdy();
_x = (_x + dx);
_y = (_y + dy);
drawframe();
} else {
doexplode();
}
}
Instance of Symbol 424 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
dy = 3;
SPEED = (dx = 5);
dx = 0;
DAMAGE = 1;
MAXDAMAGE = 3;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x - 20, _y - 5, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x + 20, _y - 5, true)));
}
function setdx() {
if (hitable) {
if (!u) {
dx = SPEED;
u = true;
}
if (wallder()) {
dx = -1 * SPEED;
}
if (wallizq()) {
dx = SPEED;
}
}
}
function setdy() {
dy = 3;
if (this.hitTest(mapa)) {
dy = 16;
}
if (mapa.hitTest(_x, _y, true)) {
dy = 0;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = SPEED;
this.gotoAndStop("standing");
}
function drawframe() {
((dx > 0) ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
dx = 0;
}
}
if (!death) {
setdx();
setdy();
_x = (_x + dx);
_y = (_y + dy);
drawframe();
} else {
doexplode();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 530 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0;
SPEED = 0.5;
MAX = 18;
DELAY = 30;
xi = _x;
yi = _y;
forward = false;
descending = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
xi = xi - heroe.scrollspeed;
_x = (_x - heroe.scrollspeed);
yi = yi - heroe.vscrollspeed;
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
death = true;
delete shoot;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
doexplode();
}
}
if (!death) {
if (descending) {
heroe.DAMAGE = 2;
dy = 3;
_y = (_y + dy);
if ((_y >= ((heroe._y - (heroe._height / 2)) - 64)) && (heroe.vertical == 0)) {
dy = 0;
descending = false;
attack = true;
shoot = new Sound();
shoot.attachSound("mflyershoot");
if (_x > heroe._x) {
dx = SPEED;
forward = false;
} else {
dx = -1 * SPEED;
forward = true;
}
}
}
if (attack && (!attacking)) {
attacking = true;
this.attachMovie("bullet", "b1", 1);
this.attachMovie("bullet", "b2", 2);
shoot.start();
b1.control.dx = 2;
b1.control.dy = 2;
b1._x = -8;
b1._y = b1._y + 13;
b2.control.dx = -2;
b2.control.dy = 2;
b2._x = 8;
b2._y = b2._y + 13;
wait = true;
c = 0;
}
if (wait) {
c = c + 1;
if (c >= DELAY) {
wait = false;
leave = true;
dy = 3;
}
}
if (leave) {
_y = (_y + dy);
if (_y >= 240) {
this.removeMovieClip();
}
}
drawframe();
}
}
Instance of Symbol 424 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
dy = 3;
SPEED = (dx = 5);
dx = 0;
DAMAGE = 1;
MAXDAMAGE = 3;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x - 20, _y - 5, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x + 20, _y - 5, true)));
}
function setdx() {
if (hitable) {
if (!u) {
dx = SPEED;
u = true;
}
if (wallder()) {
dx = -1 * SPEED;
}
if (wallizq()) {
dx = SPEED;
}
}
}
function setdy() {
dy = 3;
if (this.hitTest(mapa)) {
dy = 16;
}
if (mapa.hitTest(_x, _y, true)) {
dy = 0;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = SPEED;
this.gotoAndStop("standing");
}
function drawframe() {
((dx > 0) ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
dx = 0;
}
}
if (!death) {
setdx();
setdy();
_x = (_x + dx);
_y = (_y + dy);
drawframe();
} else {
doexplode();
}
}
Instance of Symbol 424 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
dy = 3;
SPEED = (dx = 5);
dx = 0;
DAMAGE = 1;
MAXDAMAGE = 3;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x - 20, _y - 5, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x + 20, _y - 5, true)));
}
function setdx() {
if (hitable) {
if (!u) {
dx = SPEED;
u = true;
}
if (wallder()) {
dx = -1 * SPEED;
}
if (wallizq()) {
dx = SPEED;
}
}
}
function setdy() {
dy = 3;
if (this.hitTest(mapa)) {
dy = 16;
}
if (mapa.hitTest(_x, _y, true)) {
dy = 0;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = SPEED;
this.gotoAndStop("standing");
}
function drawframe() {
((dx > 0) ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
dx = 0;
}
}
if (!death) {
setdx();
setdy();
_x = (_x + dx);
_y = (_y + dy);
drawframe();
} else {
doexplode();
}
}
Instance of Symbol 424 MovieClip in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
mapa = eval (_root.mapa);
dy = 3;
SPEED = (dx = 5);
dx = 0;
DAMAGE = 1;
MAXDAMAGE = 3;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x - 20, _y - 5, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x + 20, _y - 5, true)));
}
function setdx() {
if (hitable) {
if (!u) {
dx = SPEED;
u = true;
}
if (wallder()) {
dx = -1 * SPEED;
}
if (wallizq()) {
dx = SPEED;
}
}
}
function setdy() {
dy = 3;
if (this.hitTest(mapa)) {
dy = 16;
}
if (mapa.hitTest(_x, _y, true)) {
dy = 0;
}
}
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
dx = SPEED;
this.gotoAndStop("standing");
}
function drawframe() {
((dx > 0) ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_root.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death && (!du)) {
_root.shoot1.impact = false;
du = true;
dx = 0;
}
}
if (!death) {
setdx();
setdy();
_x = (_x + dx);
_y = (_y + dy);
drawframe();
} else {
doexplode();
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if (heroe.horizontal || (heroe.scrollspeed)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 557 MovieClip "smoke" in Frame 1114
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1114
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
if (_root.posY && (!_root.died)) {
_y = _root.posY;
}
_root.died = false;
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed();
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating && (!rising)) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
rising = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
doVscroll = false;
vscrollspeed = 0;
if (((_y <= 112) && (rising)) || ((_y >= 192) && (falling))) {
doVscroll = true;
}
if (_root.topeabajo.hitTest(_root.scrollmask) && (!rising)) {
doVscroll = false;
}
if (doVscroll) {
_y = lastY;
vscrollspeed = vertical;
}
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (!horizontal) {
this.gotoAndStop("attackST");
return(undefined);
}
if (horizontal) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else {
if (!horizontal) {
this.gotoAndStop("standing");
_root.estado = 0;
return(undefined);
}
if (horizontal) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
}
}
render();
frame = sprite._currentframe;
}
Instance of Symbol 733 MovieClip "trans" in Frame 1115
onClipEvent (load) {
dx = 8;
_y = _root.Posy2;
door = _root.trans.door;
}
onClipEvent (enterFrame) {
u = false;
if ((_y < 224) && (!door.pause)) {
_y = (_y + 1);
u = true;
}
if ((_x > -256) && (!door.pause)) {
_x = (_x - dx);
}
if ((_x <= -256) && (!v)) {
door.pause = true;
door._x = 256;
door.gotoAndPlay("close");
v = true;
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1115
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
estado = _root.estado;
}
onClipEvent (enterFrame) {
function drawFrame() {
_visible = true;
if (((estado == 1) || (estado == 2)) || (estado == 6)) {
_visible = false;
}
if (((estado == 3) || (estado == 4)) || (estado == 5)) {
_y = ((heroe._y - yi) - 6);
this.gotoAndStop("move");
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1115
onClipEvent (load) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
_y = _root.Posy;
_x = _root.Posx;
dx = _root.trans.dx * 0.8;
drawframe2();
}
onClipEvent (enterFrame) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
if ((_x > 32) && (!_root.trans.door.pause)) {
_x = (_x - dx);
}
if (_root.trans.u) {
_y = (_y + 1);
}
drawframe2();
}
Frame 1134
next = "F";
windx = 0;
Instance of Symbol 333 MovieClip "scrollmask" in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 735 MovieClip "mapa" in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 80 MovieClip in Frame 1134
onClipEvent (enterFrame) {
_x = (_x - _root.heroe.scrollspeed);
}
Instance of Symbol 80 MovieClip in Frame 1134
onClipEvent (enterFrame) {
_x = (_x - _root.heroe.scrollspeed);
}
Instance of Symbol 738 MovieClip in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
u = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - _root.heroe.vscrollspeed);
if (this.hitTest(heroe.sprite.hotzone) && (!u)) {
u = true;
_root.Posy = heroe._y;
_root.Posx = heroe._x;
_root.pause = true;
_root.nextFrame();
}
}
Instance of Symbol 618 MovieClip in Frame 1134
onClipEvent (load) {
heroe = _root.heroe;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 746 MovieClip in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 783 MovieClip in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
DAMAGE = 1;
MAXDAMAGE = 5;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attack = true;
sentido = 1;
attackTIME = 60;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
v = false;
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death && (!v)) {
_root.shoot1.impact = false;
_root.windx = 0;
v = true;
}
if (!death) {
if (attack) {
this.gotoAndStop("attack");
attack = false;
attacking = true;
c = 0;
sentido = sentido * -1;
}
if (attacking) {
this.gotoAndStop("attack");
_root.windx = (heroe.hforce * 0.6) * sentido;
c = c + 1;
if (c >= attackTIME) {
attacking = false;
change = true;
c = 0;
_root.windx = 0;
}
}
if (change) {
this.gotoAndStop("change");
c = c + 1;
if (c >= 16) {
change = false;
attack = true;
}
}
} else {
doexplode();
}
} else {
_visible = false;
if (death && (Math.abs(heroe._x - _x) >= 200)) {
dorespawn();
}
}
}
Instance of Symbol 783 MovieClip in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
DAMAGE = 1;
MAXDAMAGE = 5;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attack = true;
sentido = 1;
attackTIME = 60;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function dorespawn() {
currentdamage = 0;
hitted = false;
flashing = false;
timerdamage = 0;
death = false;
this.gotoAndStop("standing");
v = false;
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
}
if (death && (!v)) {
_root.shoot1.impact = false;
_root.windx = 0;
v = true;
}
if (!death) {
if (attack) {
this.gotoAndStop("attack");
attack = false;
attacking = true;
c = 0;
sentido = sentido * -1;
}
if (attacking) {
this.gotoAndStop("attack");
_root.windx = (heroe.hforce * 0.6) * sentido;
c = c + 1;
if (c >= attackTIME) {
attacking = false;
change = true;
c = 0;
_root.windx = 0;
}
}
if (change) {
this.gotoAndStop("change");
c = c + 1;
if (c >= 16) {
change = false;
attack = true;
}
}
} else {
doexplode();
}
} else {
_visible = false;
if (death && (Math.abs(heroe._x - _x) >= 200)) {
dorespawn();
}
}
}
Instance of Symbol 815 MovieClip in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
dx = 2;
dy = 0;
yi = _y;
rad = 0;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if (hitable) {
idle = false;
attack = true;
}
}
if (attack) {
_x = (_x - 2);
rad++;
_y = (yi + (5 * Math.sin((Math.PI * rad) / 20)));
if (_x <= -64) {
attack = false;
_visible = false;
}
}
drawframe();
}
}
Instance of Symbol 815 MovieClip in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
dx = 2;
dy = 0;
yi = _y;
rad = 0;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if (hitable) {
idle = false;
attack = true;
}
}
if (attack) {
_x = (_x - 2);
rad++;
_y = (yi + (5 * Math.sin((Math.PI * rad) / 20)));
if (_x <= -64) {
attack = false;
_visible = false;
}
}
drawframe();
}
}
Instance of Symbol 815 MovieClip in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
dx = 2;
dy = 0;
yi = _y;
rad = 0;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if (hitable) {
idle = false;
attack = true;
}
}
if (attack) {
_x = (_x - 2);
rad++;
_y = (yi + (5 * Math.sin((Math.PI * rad) / 20)));
if (_x <= -64) {
attack = false;
_visible = false;
}
}
drawframe();
}
}
Instance of Symbol 815 MovieClip in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
dx = 2;
dy = 0;
yi = _y;
rad = 0;
idle = true;
attack = false;
DAMAGE = 1;
MAXDAMAGE = 1;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 5;
timerdamage = 0;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"200", ga:"100", gb:"180", ba:"100", bb:"150", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
attacking = false;
}
onClipEvent (enterFrame) {
function doexplode() {
myColor.setTransform(myColorNormal);
this.gotoAndStop("death");
}
function drawframe() {
this.gotoAndStop("standing");
}
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
_visible = false;
hitable = this.hitTest(_parent.mascara);
if (hitable) {
_visible = true;
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
_root.hitted.start();
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if (currentdamage >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
death = true;
delete shoot;
}
if (death) {
_root.shoot1.impact = false;
doexplode();
}
}
if (!death) {
if (idle) {
if (hitable) {
idle = false;
attack = true;
}
}
if (attack) {
_x = (_x - 2);
rad++;
_y = (yi + (5 * Math.sin((Math.PI * rad) / 20)));
if (_x <= -64) {
attack = false;
_visible = false;
}
}
drawframe();
}
}
Instance of Symbol 538 MovieClip "topeizq" in Frame 1134
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - _parent.heroe.scrollspeed);
}
Instance of Symbol 539 MovieClip "topeder" in Frame 1134
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - _parent.heroe.scrollspeed);
}
Instance of Symbol 538 MovieClip "topeabajo" in Frame 1134
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y - _root.heroe.vscrollspeed);
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if ((heroe.horizontal || (heroe.scrollspeed)) || (_root.windx)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function drawFrameWind() {
if (_root.windx && (!heroe.slide)) {
_visible = true;
}
}
function scale() {
_xscale = heroe._xscale;
if (_root.windx > 0) {
_xscale = (-1 * Math.abs(_xscale));
}
if (_root.windx < 0) {
_xscale = Math.abs(_xscale);
}
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
if (heroe.shooting && (!(heroe.rising || (heroe.falling)))) {
if (_xscale > 0) {
_x = (heroe._x + 2);
}
if (_xscale < 0) {
_x = (heroe._x - 2);
}
if (_root.windx) {
((heroe._xscale > 0) ? (_x = (heroe._x + 2)heroe._x + 2) : (_x = (heroe._x - 2)heroe._x - 2));
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
drawFrameWind();
} else {
_visible = false;
}
}
Instance of Symbol 557 MovieClip "smoke" in Frame 1134
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1134
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
if (_root.posY) {
_y = _root.posY;
}
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed() + _root.windx;
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating && (!rising)) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
rising = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (horizontal != _root.windx) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else if (horizontal != _root.windx) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
if (shooting) {
this.gotoAndStop("attackST");
} else {
this.gotoAndStop("standing");
}
}
render();
frame = sprite._currentframe;
}
Instance of Symbol 848 MovieClip "trans" in Frame 1135
onClipEvent (load) {
dx = 8;
_y = _root.Posy2;
door = _root.trans.door;
}
onClipEvent (enterFrame) {
if ((_x > -256) && (!door.pause)) {
_x = (_x - dx);
}
if ((_x <= -256) && (!v)) {
door.pause = true;
door._x = 256;
door.gotoAndPlay("close");
v = true;
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1135
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
estado = _root.estado;
}
onClipEvent (enterFrame) {
function drawFrame() {
_visible = true;
if (((estado == 1) || (estado == 2)) || (estado == 6)) {
_visible = false;
}
if (((estado == 3) || (estado == 4)) || (estado == 5)) {
_y = ((heroe._y - yi) - 6);
this.gotoAndStop("move");
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1135
onClipEvent (load) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
_y = _root.Posy;
_x = _root.Posx;
dx = _root.trans.dx * 0.8;
drawframe2();
}
onClipEvent (enterFrame) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
if ((_x > 32) && (!_root.trans.door.pause)) {
_x = (_x - dx);
}
if (_root.trans.u) {
_y = (_y + 1);
}
drawframe2();
}
Frame 1154
checkpoint = _root._currentframe;
trace("PreBossRoom:");
trace("checkpoint:" + checkpoint);
trace("currentframe:" + _currentframe);
windx = 0;
next = "G";
Instance of Symbol 850 MovieClip "mapa" in Frame 1154
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 738 MovieClip in Frame 1154
onClipEvent (load) {
heroe = eval (_root.heroe);
u = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
if (this.hitTest(heroe.sprite.hotzone) && (!u)) {
u = true;
_root.Posy = heroe._y;
_root.Posx = heroe._x;
_root.pause = true;
_root.nextFrame();
}
}
Instance of Symbol 854 MovieClip in Frame 1154
onClipEvent (enterFrame) {
if (this.hitTest(_root.heroe.sprite.hotzone) && (!u)) {
_root.lives++;
u = true;
this.nextFrame();
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1154
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if (heroe.horizontal || (heroe.scrollspeed)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 557 MovieClip "smoke" in Frame 1154
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1154
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
if (_root.posY && (!_root.died)) {
_y = _root.posY;
}
if (_root.died) {
_root.currentdamage = 0;
}
_root.died = false;
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed();
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating && (!rising)) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
rising = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (!horizontal) {
this.gotoAndStop("attackST");
return(undefined);
}
if (horizontal) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else {
if (!horizontal) {
this.gotoAndStop("standing");
_root.estado = 0;
return(undefined);
}
if (horizontal) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
}
}
pause = _root.pause;
if (!pause) {
render();
}
frame = sprite._currentframe;
}
Frame 1155
trace("ERROR " + _currentframe);
Instance of Symbol 861 MovieClip "trans" in Frame 1155
onClipEvent (load) {
dy = 8;
door = _root.trans.door;
}
onClipEvent (enterFrame) {
if ((_y > -224) && (!door.pause)) {
_y = (_y - dy);
}
if ((_y <= -224) && (!v)) {
door.pause = true;
door._x = 256;
door.gotoAndPlay("close");
v = true;
}
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1155
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
estado = _root.estado;
}
onClipEvent (enterFrame) {
function drawFrame() {
_visible = true;
if (((estado == 1) || (estado == 2)) || (estado == 6)) {
_visible = false;
}
if (((estado == 3) || (estado == 4)) || (estado == 5)) {
_y = ((heroe._y - yi) - 6);
this.gotoAndStop("move");
}
}
function scale() {
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
_xscale = heroe._xscale;
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1155
onClipEvent (load) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
_y = _root.Posy;
_x = _root.Posx;
dy = _root.trans.dy;
drawframe2();
}
onClipEvent (enterFrame) {
function drawframe2() {
if (_root.estado == 6) {
this.gotoAndStop("slide");
return(undefined);
}
if (_root.estado == 3) {
this.gotoAndStop("jump");
return(undefined);
}
if (_root.estado == 4) {
this.gotoAndStop("attackJ");
return(undefined);
}
if (_root.estado == 5) {
this.gotoAndStop("fall");
return(undefined);
}
if (_root.estado == 2) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
return(undefined);
}
if (_root.estado == 0) {
this.gotoAndStop("standing");
return(undefined);
}
if (_root.estado == 1) {
this.gotoAndStop("run");
return(undefined);
}
}
death = false;
if ((_y > 16) && (!_root.trans.door.pause)) {
_y = (_y - dy);
}
drawframe2();
}
Instance of Symbol 112 MovieClip in Frame 1155
onClipEvent (load) {
n = 100;
who = _root.loop;
}
onClipEvent (enterFrame) {
n = n - 7;
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
delete _root.loop;
}
}
Frame 1156
trace("ERROR " + _currentframe);
Frame 1157
trace("ERROR " + _currentframe);
Frame 1158
trace("ERROR " + _currentframe);
Frame 1159
trace("ERROR " + _currentframe);
Frame 1160
trace("ERROR " + _currentframe);
Frame 1161
trace("ERROR " + _currentframe);
Frame 1162
trace("ERROR " + _currentframe);
Frame 1163
trace("ERROR " + _currentframe);
Frame 1164
trace("ERROR " + _currentframe);
Frame 1165
trace("ERROR " + _currentframe);
Frame 1166
trace("ERROR " + _currentframe);
Frame 1167
trace("ERROR " + _currentframe);
Frame 1168
trace("ERROR " + _currentframe);
Frame 1169
trace("ERROR " + _currentframe);
Frame 1170
trace("ERROR " + _currentframe);
Frame 1171
trace("ERROR " + _currentframe);
Frame 1172
trace("ERROR " + _currentframe);
Frame 1173
trace("ERROR " + _currentframe);
Frame 1174
trace("Frame G2: " + _currentframe);
stop();
windx = 0;
hittedBIG = new Sound();
hittedBIG.attachSound("hittedBIG");
thunder1 = new Sound();
thunder1.attachSound("thunder1");
wind01 = new Sound(tenguman);
wind01.attachSound("wind01");
wind04 = new Sound(heroe);
wind04.attachSound("wind04");
Instance of Symbol 333 MovieClip "scrollmask" in Frame 1174
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 863 MovieClip "mapa" in Frame 1174
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 860 MovieClip in Frame 1174
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 112 MovieClip in Frame 1174
onClipEvent (load) {
timer = 10;
}
onClipEvent (enterFrame) {
timer--;
if (timer < 0) {
_root.gotoAndStop(_root.next);
}
}
Instance of Symbol 872 MovieClip "tenguhz" in Frame 1174
onClipEvent (load) {
_visible = false;
setxy = true;
tenguman = eval (_root.tenguman);
mapa = eval (_root.mapa);
heroe = eval (_root.heroe);
SPEED = 30;
dx = 0;
xi = _x;
yi = _y;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_visible = false;
if (tenguman.zoom && (setxy)) {
setxy = false;
start = true;
_x = xi;
_y = yi;
if (tenguman.dx > 0) {
_xscale = Math.abs(_xscale);
dx = SPEED;
} else {
_xscale = (-1 * Math.abs(_xscale));
dx = -1 * SPEED;
}
}
if (start) {
if ((tenguman._x > (_mapa._x + 120)) && (dx > 0)) {
_x = mapa._x;
_y = (mapa._y - 30);
start = false;
flow = true;
}
if ((tenguman._x < ((_mapa._x + 240) - 120)) && (dx < 0)) {
_x = (mapa._x + 240);
_y = (mapa._y - 30);
start = false;
flow = true;
}
}
if (flow) {
_x = (_x + dx);
if ((dx > 0) && (_x > (mapa._x + 240))) {
dx = 0;
flow = false;
setxy = true;
}
if ((dx < 0) && (_x < mapa._x)) {
dx = 0;
flow = false;
setxy = true;
}
}
_visible = ((dx != 0) && (Math.abs(tenguman._y - (mapa._y - 32)) <= 30));
}
Instance of Symbol 91 MovieClip in Frame 1174
onClipEvent (load) {
_visible = false;
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
if (this.hitTest(heroe.sprite.hotzone)) {
heroe.tornado = true;
}
}
Instance of Symbol 91 MovieClip in Frame 1174
onClipEvent (load) {
_visible = false;
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
if (this.hitTest(heroe.sprite.hotzone)) {
heroe.tornado = true;
}
}
Instance of Symbol 967 MovieClip "tenguman" in Frame 1174
onClipEvent (load) {
asecho = true;
opening = true;
descending = true;
zoom = false;
rise = true;
landing = true;
attack = 0;
DELTA = 80;
rad = 0;
dx = 5;
dy = 1;
opCounter = 160;
platform = eval (_root.mapa);
heroe = eval (_root.heroe);
heroe.keys = false;
DAMAGE = 2;
barra = eval (_root.bevil);
MAXDAMAGE = barra._totalframes;
FLASHTIME = 30;
timerdamage = 0;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"130", ga:"100", gb:"200", ba:"100", bb:"255", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
u = 0;
}
onClipEvent (enterFrame) {
function drawframe() {
if (!zoom) {
forward = _x > heroe._x;
backward = _x < heroe._x;
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = Math.abs(_xscale)Math.abs(_xscale)) : (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1));
}
if (descending) {
this.gotoAndStop("laugh");
return(undefined);
}
if (opening && (!descending)) {
this.gotoAndStop("opening");
return(undefined);
}
if (((attack == 0) || (landing && (attack == 4))) || (rise && ((attack == 1) || (attack == 2)))) {
this.gotoAndStop("asechando");
return(undefined);
}
if (zoom) {
this.gotoAndStop("zoom");
return(undefined);
}
if (zoomUp) {
this.gotoAndStop("zoomUp");
return(undefined);
}
if (arrogant && (attack == 4)) {
this.gotoAndStop("arrogant");
return(undefined);
}
}
function generaAtaque() {
return(Math.floor(Math.random() * 10) % 5);
}
LastX = _x;
LastY = _y;
_x = (_x - heroe.scrollspeed);
if (!death) {
hitable = this.hitTest(_root.mascara);
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
_root.heroe.hitted = true;
}
if ((u > 0) || (_root.wind01.getVolume() > 0)) {
u = u - 5;
_root.wind01.setVolume(u);
if (u == 0) {
_root.wind01.stop();
}
}
if (opening) {
if (descending && (_y < 88)) {
_y = (_y + dy);
} else {
descending = false;
}
opCounter++;
if (opCounter >= 160) {
opCounter = 0;
opening = false;
heroe.keys = true;
dy = 3;
attack = 0;
}
}
if (attack == 0) {
_root.windx = 0;
heroe.DAMAGE = 3;
opCounter++;
if (_x < (platform._x - 6)) {
dx = Math.abs(dx);
}
if (_x > ((platform._x + 240) + 6)) {
dx = Math.abs(dx) * -1;
}
if ((_y > 88) && (!asecho)) {
rad = 10;
dy = -6;
_y = (_y + dy);
if (_y < 88) {
asecho = true;
dy = 0;
}
}
if ((_y < 88) && (!asecho)) {
dy = 6;
rad = 0;
_y = (_y + dy);
if (_y > 88) {
asecho = true;
dy = 0;
}
}
if (asecho) {
rad = rad + 1;
_y = (88 + (24 * Math.sin((Math.PI * rad) / 10)));
}
_x = (_x + dx);
if (opCounter >= 60) {
opCounter = 0;
attack = generaAtaque();
dy = 3;
}
}
if ((attack == 1) || (attack == 3)) {
_root.windx = 0;
heroe.DAMAGE = 5;
if (rise && (!zoom)) {
dy = Math.abs(dy) * 1.5;
_y = (_y - dy);
}
if (((_y <= 0) && (rise)) && (!zoom)) {
rise = false;
_y = heroe._y;
if (_x <= 128) {
_x = (-DELTA);
StartX = -DELTA;
} else {
_x = (256 + DELTA);
StartX = 256 + DELTA;
}
_root.thunder1.start();
((StartX <= (-DELTA)) ? ((dx = 30)) : ((dx = -30)));
if (StartX <= (-DELTA)) {
forward = false;
backward = true;
} else {
forward = true;
backward = false;
}
dy = 0;
zoom = true;
}
if (zoom) {
_x = (_x + dx);
if (((Startx <= 0) && (_x >= 286)) || ((StartX >= 256) && (_x <= -30))) {
zoom = (asecho = false);
attack = generaAtaque();
dy = -6;
((currentdamage >= (MAXDAMAGE / 2)) ? ((dx = -10)) : ((dx = 5)));
rise = true;
}
}
}
if (attack == 2) {
_root.windx = 0;
heroe.DAMAGE = 7;
dy = Math.abs(dy) * 1.5;
if (rise && (!zoom)) {
_y = (_y - dy);
}
if ((_y <= 0) && (rise)) {
rise = false;
_y = ((235 + _height) + DELTA);
_x = heroe._x;
StartX = heroe._x;
_root.thunder1.start();
zoomUp = true;
}
if (zoomUp) {
_y = (_y - 30);
if (_y < 0) {
zoomUp = (asecho = false);
attack = generaAtaque();
dy = 6;
((currentdamage >= (MAXDAMAGE / 2)) ? ((dx = -10)) : ((dx = 5)));
rise = true;
}
}
}
if (attack == 4) {
heroe.DAMAGE = 10;
if ((_x >= (platform._x - 10)) && (_x <= ((platform._x + platform._width) + 10))) {
((currentdamage >= (MAXDAMAGE / 2)) ? ((dy = 6)) : ((dy = 3)));
if (landing) {
_y = (_y + dy);
}
if (_y >= (platform._y - platform._height)) {
_y = (platform._y - platform._height);
landing = false;
arrogant = true;
u = 100;
_root.wind01.setVolume(100);
}
if (arrogant) {
opCounter++;
if (((opCounter >= 70) || (_y != (platform._y - platform._height))) || (!((_x >= (platform._x - 10)) && (_x <= ((platform._x + platform._width) + 10))))) {
_root.wind01.setVolume(100);
opCounter = 0;
_root.windx = 0;
arrogant = (asecho = false);
landing = true;
attack = generaAtaque();
u = 100;
}
}
} else {
attack = 2;
}
}
if (this.sprite.hotzone.hitTest(_parent.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
if (timerdamage != 0) {
_root.hitted.start();
}
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
_root.bevil.gotoAndStop(currentdamage + 1);
_parent.hittedBIG.start();
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if ((currentdamage + 1) >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
_root.bevil.gotoAndStop(MAXDAMAGE);
death = true;
}
if (death) {
_root.shoot1.impact = false;
_root.bigexp.play();
}
x1 = LastX - platform._x;
x2 = _x - platform._x;
drawframe();
} else {
_root.windx = 0;
_root.wind01.stop();
myColor.setTransform(myColorNormal);
_root.bigexp._visible = true;
}
}
Instance of Symbol 976 MovieClip in Frame 1174
onClipEvent (load) {
tenguman = eval (_root.tenguman);
heroe = eval (_root.heroe);
SPEED = 10;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 538 MovieClip "topeizq" in Frame 1174
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - _parent.heroe.scrollspeed);
}
Instance of Symbol 539 MovieClip "topeder" in Frame 1174
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - _parent.heroe.scrollspeed);
}
Instance of Symbol 538 MovieClip "topeabajo" in Frame 1174
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_y = (_y - _root.heroe.vscrollspeed);
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1174
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if ((heroe.horizontal || (heroe.scrollspeed)) || (_root.windx)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function drawFrameWind() {
if (_root.windx && (!heroe.slide)) {
_visible = true;
}
}
function scale() {
_xscale = heroe._xscale;
if (_root.windx > 0) {
_xscale = (-1 * Math.abs(_xscale));
}
if (_root.windx < 0) {
_xscale = Math.abs(_xscale);
}
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
drawFrameWind();
} else {
_visible = false;
}
}
Instance of Symbol 557 MovieClip "smoke" in Frame 1174
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1174
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
_x = _root.posX;
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed() + _root.windx;
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
falling = false;
rising = true;
startfall = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (horizontal != _root.windx) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else if (horizontal != _root.windx) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
if (shooting) {
this.gotoAndStop("attackST");
} else {
this.gotoAndStop("standing");
}
}
render();
frame = sprite._currentframe;
}
Instance of Symbol 112 MovieClip "music" in Frame 1174
onClipEvent (load) {
_root.intro = new Sound();
_root.intro.setVolume(100);
_root.intro.attachSound("TenguIntro");
_root.loop = new Sound();
_root.loop.setVolume(100);
_root.loop.attachSound("TenguLoop");
_root.intro.start();
}
onClipEvent (enterFrame) {
_root.intro.onSoundComplete = function () {
_root.loop.start(0, 99);
};
}
Frame 1175
trace("ERROR " + _currentframe);
Instance of Symbol 985 MovieClip "mapa" in Frame 1175
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Frame 1176
trace("ERROR " + _currentframe);
Frame 1177
trace("ERROR " + _currentframe);
Frame 1178
trace("ERROR " + _currentframe);
Frame 1179
checkpoint = _root._currentframe;
windx = 0;
currentdamage = 0;
stop();
hittedBIG = new Sound();
hittedBIG.attachSound("hittedBIG");
stop();
Instance of Symbol 550 MovieClip "rumble" in Frame 1179
onClipEvent (load) {
heroe = eval (_root.heroe);
dy = 0.5;
DELAY = 10;
c = 0;
yi = _root._y;
}
onClipEvent (enterFrame) {
if (begin) {
dorumble = true;
begin = false;
c = 0;
}
if (dorumble) {
dy = dy * -1;
_root._y = _root._y + dy;
c = c + 1;
if (c > DELAY) {
dorumble = false;
_root._y = yi;
}
}
}
Instance of Symbol 333 MovieClip "scrollmask" in Frame 1179
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 989 MovieClip in Frame 1179
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 91 MovieClip in Frame 1179
onClipEvent (load) {
_visible = false;
heroe = _root.heroe;
shieldtimer = 0;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
if (this.hitTest(_root.shoot1) && (!us)) {
_root.shoot1.impact = true;
us = true;
_root.escudo.start();
shieldtimer = 3;
_root.frebote._x = _root.shoot1._x;
_root.frebote._y = _root.shoot1._y;
_root.frebote.gotoAndPlay(2);
}
if (shieldtimer > 0) {
shieldtimer--;
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
}
}
Instance of Symbol 91 MovieClip in Frame 1179
onClipEvent (load) {
_visible = false;
heroe = _root.heroe;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
if (this.hitTest(_root.shoot1) && (!us)) {
_root.shoot1.impact = true;
us = true;
_root.escudo.start();
shieldtimer = 3;
_root.frebote._x = _root.shoot1._x;
_root.frebote._y = _root.shoot1._y;
_root.frebote.gotoAndPlay(2);
}
if (shieldtimer > 0) {
shieldtimer--;
if (shieldtimer <= 0) {
us = false;
_root.shoot1.impact = false;
}
}
}
Instance of Symbol 1084 MovieClip "freeze" in Frame 1179
onClipEvent (load) {
heroe = _root.heroe;
mapa = _root.mapa;
heroe.keys = true;
SPEED = 10;
VSPEED = 10;
gravity = 0.6;
accel = 1.6;
MAXHIGH = 100;
currenthigh = 0;
dx = 0;
idle = true;
done = false;
DAMAGE = 4;
barra = eval (_root.bevil);
MAXDAMAGE = barra._totalframes;
FLASHTIME = 70;
timerdamage = 0;
currentdamage = 0;
hitted = false;
flashing = false;
hitable = false;
myColor = new Color(this);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:"130", ga:"100", gb:"200", ba:"100", bb:"255", aa:"100", ab:"00"};
myColorNormal = {ra:"100", rb:"00", ga:"100", gb:"00", ba:"100", bb:"00", aa:"100", ab:"00"};
death = false;
land = new Sound();
land.attachSound("sapolanding");
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x - 10, _y - 10, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x + 10, _y - 10, true)));
}
function suelo() {
return(_y >= 194);
}
function setScale() {
if (death) {
return(undefined);
}
if ((idle || (stand)) || (attack1)) {
if (_x > heroe._x) {
_xscale = (-1 * Math.abs(_xscale));
} else {
_xscale = Math.abs(_xscale);
}
}
if (run) {
_xscale = ((dx > 0) ? (Math.abs(_xscale)) : (-1 * Math.abs(_xscale)));
}
}
function drawFrame() {
if (death) {
this.gotoAndStop("ouch");
return(undefined);
}
if (attack1) {
this.gotoAndStop("attack1");
}
if (run) {
this.gotoAndStop("run");
}
if (jump) {
this.gotoAndStop("jump");
}
if (fall) {
if (attackjID) {
this.gotoAndStop("attackj" + attackjID);
} else {
this.gotoAndStop("fall");
}
}
if (stand) {
this.gotoAndStop("stand2");
}
}
_x = (_x - heroe.scrollspeed);
hitable = this.hitTest(_root.mascara);
if (!death) {
if (this.sprite.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.hitted = true;
}
if (this.sprite.hotzone.hitTest(_root.shoot1) && (hitable)) {
hitted = true;
_root.shoot1.impact = true;
if (timerdamage != 0) {
_root.hitted.start();
}
}
if ((timerdamage == 0) && (hitted)) {
timerdamage = FLASHTIME;
currentdamage = currentdamage + DAMAGE;
_root.bevil.gotoAndStop(currentdamage + 1);
_parent.hittedBIG.start();
}
if (timerdamage > 0) {
flashing = true;
(((timerdamage % 3) == 0) ? (myColor.setTransform(myColorTransform)) : (myColor.setTransform(myColorNormal)));
timerdamage--;
}
if (flashing && (timerdamage == 0)) {
flashing = false;
myColor.setTransform(myColorNormal);
hitted = false;
}
if ((currentdamage + 1) >= MAXDAMAGE) {
myColor.setTransform(myColorTransform);
_root.bevil.gotoAndStop(MAXDAMAGE);
death = true;
}
if (death) {
_root.shoot1.impact = false;
heroe.keys = false;
_root.bigexp.play();
}
if (idle) {
idle = false;
run = true;
dx = ((_xscale > 0) ? (SPEED) : (-1 * SPEED));
c = 0;
MAXRUN = _root.aleatorio(1, 3);
heroe.damage = 1;
}
if (run) {
heroe.damage = 2;
if (wallizq() || (wallder())) {
dx = dx * -1;
c++;
}
_x = (_x + dx);
if (c >= MAXRUN) {
run = false;
stand = true;
c = 0;
dy = -1 * Math.abs(VSPEED);
}
}
if (stand) {
heroe.damage = 3;
c++;
if (c > 10) {
stand = false;
attack1 = true;
}
}
if (attack1) {
heroe.damage = 5;
if (done) {
done = (attack1 = false);
jump = true;
dy = -1 * Math.abs(VSPEED);
}
}
if (jump) {
heroe.damage = 2;
if (currenthigh > MAXHIGH) {
dy = dy * gravity;
}
_y = (_y + dy);
currenthigh = currenthigh + Math.abs(dy);
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
attackjID = _root.aleatorio(1, 2);
}
}
if (fall) {
heroe.damage = 2;
dy = dy * accel;
_y = (_y + dy);
if (suelo()) {
dy = 0;
_y = 194;
fall = false;
idle = true;
currenthigh = 0;
land.start();
}
}
}
drawFrame();
setScale();
}
Instance of Symbol 1097 MovieClip "bala" in Frame 1179
onClipEvent (load) {
heroe = _root.heroe;
mapa = _root.mapa;
i = 0;
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x, _y, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x, _y, true)));
}
function suelo() {
return(_y >= 194);
}
_visible = this.hitTest(_root.mascara);
_x = (_x - heroe.scrollspeed);
if (mover) {
this.gotoAndStop("fly");
if (this.hotzone.hitTest(heroe.sprite.hotzone)) {
(dy ? ((heroe.damage = 10)) : ((heroe.damage = 6)));
heroe.hitted = true;
}
_x = (_x + dx);
_y = (_y + dy);
if (dy != 0) {
if ((heroe._x > _x) && (heroe.horizontal > 0)) {
dx = dx + 2;
}
if ((heroe._x < _x) && (heroe.horizontal < 0)) {
dx = dx - 2;
}
}
if ((wallizq() || (wallder())) || (suelo())) {
mover = false;
this.gotoAndStop("crash");
if (dy != 0) {
x = new Sound();
x.attachSound("freezeattack");
x.start();
}
}
if (dy != 0) {
i++;
shObj = {_x:_x, _y:_y, dx:0, dy:2, mover:true};
_root.shineNoloop.duplicateMovieClip("shineNoloop" + i, 10 + i, shObj);
}
}
if (borrar) {
this.removeMovieClip();
borrar = false;
}
}
Instance of Symbol 1055 MovieClip "shineNOloop" in Frame 1179
onClipEvent (load) {
heroe = _root.heroe;
mapa = _root.mapa;
c = 5;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
_x = (_x - heroe.scrollspeed);
if (mover) {
_y = (_y + dy);
c--;
if ((!this.hitTest(_root.mascara)) || (c <= 0)) {
mover = false;
borrar = true;
}
}
if (borrar) {
this.removeMovieClip();
borrar = false;
}
}
Instance of Symbol 1100 MovieClip "spark" in Frame 1179
onClipEvent (load) {
heroe = _root.heroe;
mapa = _root.mapa;
}
onClipEvent (enterFrame) {
function killme() {
return(((((dx > 0) && (_x > 256)) || ((dx < 0) && (_x < 0))) || ((dy < 0) && (_y < 0))) || ((dy > 0) && (dy > 224)));
}
_visible = this.hitTest(_root.mascara);
_x = (_x - heroe.scrollspeed);
if (mover) {
_x = (_x + dx);
_y = (_y + dy);
if (this.hotzone.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 3;
heroe.hitted = true;
}
if (killme()) {
mover = false;
borrar = true;
}
}
if (borrar) {
this.removeMovieClip();
borrar = false;
}
}
Instance of Symbol 1103 MovieClip "balas" in Frame 1179
onClipEvent (load) {
heroe = _root.heroe;
mapa = _root.mapa;
freeze = _root.freeze;
SPEED = 25;
u = true;
angulos = [0, 30, 30, 50, 50, 80, 80];
for (i in angulos) {
angulos[i] = angulos[i] * (Math.PI/180);
}
}
onClipEvent (enterFrame) {
function wallizq() {
return((dx < 0) && (mapa.hitTest(_x, _y, true)));
}
function wallder() {
return((dx > 0) && (mapa.hitTest(_x, _y, true)));
}
_visible = this.hitTest(_root.mascara);
_x = (_x - heroe.scrollspeed);
if (mover) {
_x = (_x + dx);
_y = (_y + dy);
if (wallizq() || (wallder())) {
mover = false;
borrar = true;
for (i in angulos) {
u = !u;
shObj = {_x:_x, _y:_y, mover:true};
shObj.dx = ((freeze._xscale > 0) ? ((-1 * SPEED) * Math.cos(angulos[i])) : (SPEED * Math.cos(angulos[i])));
shObj.dy = (u ? ((-1 * SPEED) * Math.sin(angulos[i])) : (SPEED * Math.sin(angulos[i])));
_root.spark.duplicateMovieClip("spark" + i, 10 + i, shObj);
}
}
}
if (borrar) {
this.removeMovieClip();
borrar = false;
}
}
Instance of Symbol 557 MovieClip "smoke" in Frame 1179
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
_y = (_y - heroe.vscrollspeed);
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1179
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if ((heroe.horizontal || (heroe.scrollspeed)) || (_root.windx)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function drawFrameWind() {
if (_root.windx && (!heroe.slide)) {
_visible = true;
}
}
function scale() {
_xscale = heroe._xscale;
if (_root.windx > 0) {
_xscale = (-1 * Math.abs(_xscale));
}
if (_root.windx < 0) {
_xscale = Math.abs(_xscale);
}
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
drawFrameWind();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1179
onClipEvent (load) {
ARRIBA = _root.ARRIBA;
DER = _root.DER;
IZQ = _root.IZQ;
SHOOT = _root.SHOOT;
SLIDEKEY = _root.SLIDEKEY;
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = true;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed() + _root.windx;
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(SHOOT) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(SHOOT)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(ARRIBA))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(ARRIBA)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(ARRIBA))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(SLIDEKEY) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(IZQ) && (slideRight))) || (Key.isDown(DER) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(SLIDEKEY)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
falling = false;
rising = true;
startfall = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(DER) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(IZQ) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (horizontal != _root.windx) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else if (horizontal != _root.windx) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
if (shooting) {
this.gotoAndStop("attackST");
} else {
this.gotoAndStop("standing");
}
}
render();
frame = sprite._currentframe;
}
Instance of Symbol 112 MovieClip "music" in Frame 1179
onClipEvent (load) {
_root.intro = new Sound();
_root.intro.setVolume(100);
_root.intro.attachSound("FreezeIntro");
_root.loop = new Sound();
_root.loop.setVolume(100);
_root.loop.attachSound("FreezeLoop");
_root.intro.start();
}
onClipEvent (enterFrame) {
_root.intro.onSoundComplete = function () {
_root.loop.start(0, 99);
};
}
Instance of Symbol 112 MovieClip in Frame 1200
onClipEvent (load) {
n = 100;
who = _root.loop;
}
onClipEvent (enterFrame) {
n = n - 7;
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
delete _root.intro;
delete _root.loop;
}
}
Frame 1215
trace("TransMuertes:");
trace("checkpoint: " + checkpoint);
trace("duh: " + duh);
trace("checkpoint-duh: " + String(checkpoint - duh));
stopAllSounds();
lives--;
currentdamage = 0;
reveal = true;
died = true;
if (lives >= 0) {
_root.gotoAndStop(checkpoint);
} else {
gotoAndPlay (5251);
}
Frame 1224
gotoAndPlay (1255);
Frame 1234
gotoAndPlay (1460);
Frame 1244
gotoAndPlay (2405);
Frame 1255
_quality = "LOW";
windx = 0;
stopAllSounds();
keys = false;
loop = new Sound();
loop.setVolume(100);
play();
delete keys;
Instance of Symbol 333 MovieClip "fade" in Frame 1255
onClipEvent (load) {
begin = (reveal = (hide = false));
DELAY = 40;
if (_root.reveal) {
this.gotoAndStop("reveal");
}
}
onClipEvent (enterFrame) {
if (begin) {
wait = true;
begin = false;
c = 0;
}
if (wait) {
c++;
if (c > DELAY) {
wait = false;
hide = true;
}
}
if (hide) {
play();
}
if (_root.reveal) {
this.gotoAndStop("reveal");
_root.reveal = false;
reveal = true;
}
if (reveal) {
play();
}
}
Instance of Symbol 863 MovieClip "mapa" in Frame 1255
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 860 MovieClip in Frame 1255
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 34 MovieClip [fhair] "zhair" in Frame 1255
onClipEvent (load) {
heroe = eval (_root.heroe);
yi = heroe._y - _y;
_visible = true;
}
onClipEvent (enterFrame) {
function drawFrame() {
if (heroe.horizontal == 0) {
_visible = true;
} else {
_visible = false;
}
if ((heroe.horizontal == 0) && (heroe.scrollspeed == 0)) {
this.gotoAndStop("stand");
}
if ((heroe.horizontal || (heroe.scrollspeed)) || (_root.windx)) {
this.gotoAndStop("move");
}
if (heroe.flashing) {
_visible = heroe._visible;
_y = (heroe._y - yi);
if (heroe.doscroll) {
if ((heroe.horizontal < 0) || (heroe.scrollspeed < 0)) {
this.gotoAndStop("move");
}
if ((heroe.horizontal > 0) || (heroe.scrollspeed > 0)) {
this.gotoAndStop("move");
}
}
return(undefined);
}
if (heroe.rising || (heroe.falling)) {
_y = ((heroe._y - yi) - 6);
_visible = true;
return(undefined);
}
}
function drawFrameWind() {
if (_root.windx && (!heroe.slide)) {
_visible = true;
}
}
function scale() {
_xscale = heroe._xscale;
if (_root.windx > 0) {
_xscale = (-1 * Math.abs(_xscale));
}
if (_root.windx < 0) {
_xscale = Math.abs(_xscale);
}
if (_xscale < 0) {
_x = (heroe._x + 1);
} else {
_x = heroe._x;
}
if (heroe.shooting) {
if ((_xscale > 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x + 2);
}
if ((_xscale < 0) && (!(heroe.rising || (heroe.falling)))) {
_x = (heroe._x - 2);
}
}
if (heroe.flashing) {
_xscale = (-1 * heroe._xscale);
}
return(undefined);
}
if (!heroe.death) {
_y = (heroe._y - yi);
scale();
drawFrame();
drawFrameWind();
} else {
_visible = false;
}
}
Instance of Symbol 276 MovieClip "heroe" in Frame 1255
onClipEvent (load) {
_x = _root.posX;
GRIDSIZE = _root.GRIDSIZE;
mapa = eval (_root.mapa);
shoot1 = eval (_root.shoot1);
vforcei = 3;
vforce = 8;
hforce = 5;
hforcei = 1;
horizontal = 0;
vertical = 8;
MAXVERTICAL = 15;
MAXJUMP = 38;
friction = 0.5;
gravity = 0.6;
accel = 1.6;
rising = false;
falling = true;
lastX = _x;
lastY = _y;
platform = null;
plataforma = false;
scrolling = false;
platformscroll = 0;
topeizq = false;
justshoot = false;
shooting = false;
slide = false;
slidereleased = true;
slidetimer = 0;
SLIDETIME = 10;
keys = _root.keys;
upreleased = true;
abletoshoot = true;
blast = new Sound();
blast.attachSound("shoot02");
salto = new Sound();
salto.attachSound("salto");
landing = new Sound();
landing.attachSound("landing");
barrida = new Sound();
barrida.attachSound("barrida");
accel2 = 1.1;
tornado = false;
vforce2 = 0.005;
soundtrigged = false;
u = 0;
victory = false;
death = false;
barra = eval (_root.bheroe);
MAXDAMAGE = barra._totalframes;
hitted = false;
flashing = false;
hitable = false;
FLASHTIME = 10;
timerdamage = 0;
timerinvisible = 0;
INVISIBLETIME = 20;
invisible = false;
DAMAGE = 0;
}
onClipEvent (enterFrame) {
function hitPlatforms() {
var u;
u = (suelo = (sueloI = (sueloD = false)));
i = -9;
while (i <= 0) {
sueloI = sueloI || (mapa.hitTest(_x + i, _y, true));
i++;
}
i = 1;
while (i <= 9) {
sueloD = sueloD || (mapa.hitTest(_x + i, _y, true));
i++;
}
if (((sueloI && (wallizq())) && (!sueloD)) && (!techo)) {
return(undefined);
}
if (((sueloD && (wallder())) && (!sueloI)) && (!techo)) {
return(undefined);
}
suelo = sueloI || (sueloD);
if (suelo) {
falling = false;
currenthigh = 0;
techo = false;
if (s) {
landing.start();
s = false;
}
j = -15;
while (j <= 15) {
i = -9;
while (i <= 9) {
if (mapa.hitTest(_x + i, _y + j, true) && (!mapa.hitTest(_x + i, (_y + j) - 1, true))) {
u = true;
break;
}
i++;
}
if (u) {
break;
}
j++;
}
_y = (_y + j);
j = (vertical = 0);
}
return(undefined);
}
function roof() {
var u = ((techo = false));
i = -3;
while (i <= 3) {
if (mapa.hitTest(_x + i, _y - 30, true)) {
u = (techo = true);
break;
}
i++;
}
return(u);
}
function gridx(a) {
return(int(a / GRIDSIZE));
}
function gridy(b) {
if (b >= 0) {
return(int(b / GRIDSIZE));
}
return(Math.floor(b / GRIDSIZE));
}
function render() {
if (!death) {
scrollspeed = 0;
if (this.hitTest(_root.scrollmask)) {
doscroll = true;
}
if (((_root.topeizq._x >= 0) && (horizontal < 0)) || ((_root.topeder._x <= 256) && (horizontal > 0))) {
doscroll = false;
}
if (doscroll) {
_x = lastX;
scrollspeed = setSpeed() + _root.windx;
}
lastX = _x;
lastY = _y;
if (((timerdamage == 0) && (hitted)) && (!invisible)) {
timerdamage = FLASHTIME;
timerinvisible = INVISIBLETIME;
keys = false;
_root.currentdamage = _root.currentdamage + DAMAGE;
barra.gotoAndStop(_root.currentdamage + 1);
_parent.fhitted.start();
if (rising || (jumping)) {
vertical = 0.5;
falling = true;
}
}
if (timerdamage > 0) {
flashing = true;
timerdamage--;
if ((_xscale < 0) && (!wallder())) {
if (doscroll) {
scrollspeed = hforce / 2;
} else {
horizontal = hforce / 2;
}
}
if ((_xscale > 0) && (!wallizq())) {
if (doscroll) {
scrollspeed = (hforce / 2) * -1;
} else {
horizontal = (hforce / 2) * -1;
}
}
}
if (flashing && (timerdamage == 0)) {
flashing = false;
keys = true;
timerinvisible = INVISIBLETIME;
invisible = true;
}
if (invisible) {
timerinvisible--;
(((timerinvisible % 2) == 0) ? (_visible = truetrue) : (_visible = falsefalse));
}
if ((timerinvisible <= 0) && (invisible)) {
invisible = false;
hitted = false;
_visible = true;
}
if ((_root.currentdamage + 1) >= MAXDAMAGE) {
death = true;
barra.gotoAndStop(MAXDAMAGE);
_root.fdeath.start();
}
DAMAGE = 0;
if ((!shooting) && (abletoshoot)) {
if (Key.isDown(17) && (keys)) {
justshoot = true;
abletoshoot = false;
} else {
justshoot = false;
}
}
if (justshoot && (!shooting)) {
if (_xscale > 0) {
shoot1._x = _x + 41;
} else {
shoot1._x = _x - 41;
}
if (!vertical) {
shoot1._y = _y - 14;
} else {
shoot1._y = _y - 20;
}
shoot1._visible = true;
if (_xscale > 0) {
shoot1.dx = Math.abs(shoot1.dx);
shoot1._xscale = Math.abs(shoot1._xscale);
}
if (_xscale < 0) {
shoot1.dx = Math.abs(shoot1.dx) * -1;
shoot1._xscale = Math.abs(shoot1._xscale) * -1;
}
blast.start();
shooting = true;
justshoot = false;
}
if ((!shooting) && (!abletoshoot)) {
if (!Key.isDown(17)) {
abletoshoot = true;
}
}
x = setSpeed();
if (!flashing) {
horizontal = x;
}
if ((((vertical == 0) && (Key.isDown(38))) && (upreleased)) && (keys)) {
vertical = vforce * -1;
horizontal = horizontal + platform.dx;
platformscroll = 0;
rising = true;
upreleased = false;
salto.start();
}
if ((!falling) && (!uprelease)) {
if (!Key.isDown(38)) {
upreleased = true;
}
}
if (rising) {
if (roof()) {
falling = true;
startfall = true;
rising = false;
}
if ((((currenthigh < MAXJUMP) && (Key.isDown(38))) && (!upreleased)) && (!flashing)) {
if (roof()) {
startfall = true;
falling = true;
rising = false;
}
if (currenthigh < vforcei) {
vertical = -Math.abs(vforcei);
} else {
vertical = -Math.abs(vforce);
}
currenthigh = currenthigh + Math.abs(vertical);
} else {
vertical = vertical * gravity;
currenthigh = currenthigh + Math.abs(vertical);
if (Math.abs(vertical) < 1) {
startfall = true;
falling = true;
rising = false;
}
}
}
if ((((Key.isDown(16) && (!rising)) && (!falling)) && (keys)) && (slidereleased)) {
if ((_xscale < 0) && (!wallizq())) {
slideLeft = true;
slideRight = false;
}
if ((_xscale > 0) && (!wallder())) {
slideLeft = false;
slideRight = true;
}
slide = slideLeft || (slideRight);
slidereleased = false;
}
if (slide && (slidetimer == 0)) {
slidetimer = SLIDETIME;
}
if (slide && (slidetimer > 0)) {
slidetimer--;
if ((((((slidetimer == 0) || (Key.isDown(37) && (slideRight))) || (Key.isDown(39) && (slideLeft))) || (falling)) || (wallizq() && (slideLeft))) || (wallder() && (slideRight))) {
slide = (slideLeft = (slideRight = (slidetimer = 0)));
}
}
if ((!Key.isDown(16)) && (!slidereleased)) {
slidereleased = true;
}
if (falling) {
s = true;
if (startfall) {
vertical = Math.abs(vforcei / 2) * accel;
startfall = false;
} else {
vertical = Math.abs(vertical) * accel;
}
if (vertical > MAXVERTICAL) {
vertical = MAXVERTICAL;
}
platformscroll = 0;
hitPlatforms();
if (_y >= 245) {
death = true;
_root.fdeath.start();
}
}
if (tornado) {
floating = true;
playtornado = true;
vertical2 = vertical2 + vforce;
if (vertical2 > MAXVERTICAL) {
vertical2 = MAXVERTICAL / 6;
}
} else {
playtornado = false;
}
if (floating) {
if (tornado) {
vertical = -vertical2;
} else {
vertical = -4;
floating = false;
falling = false;
rising = true;
startfall = true;
vertical2 = 0;
}
}
if (playtornado && (!soundtrigged)) {
_root.wind04.setVolume(100);
_root.wind04.start();
u = 100;
soundtrigged = true;
}
if ((soundtrigged && (!playtornado)) && (u > 0)) {
u = u - 5;
_root.wind04.setVolume(u);
if (u == 0) {
_root.wind04.stop();
playtornado = true;
soundtrigged = false;
}
}
tornado = false;
if (_root.windx) {
horizontal = horizontal + _root.windx;
}
_y = ((_y + vertical) + platform.dy);
if (((horizontal < 0) && (!wallizq())) || ((horizontal > 0) && (!wallder()))) {
_x = (_x + horizontal);
}
drawframe();
x1 = LastX - platform._x;
x2 = _x - platform._x;
if ((!falling) && (!rising)) {
hitPlatforms();
if (!suelo) {
vertical = 2;
falling = true;
}
}
} else {
drawframe();
vertical = (horizontal = (doscroll = (scrollspeed = 0)));
if (!f) {
_root.fade.begin = true;
f = true;
}
}
}
function wallizq() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x - t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function wallder() {
var u = false;
var t = (slide ? 20 : 12);
i = -24;
while (i < -15) {
if (mapa.hitTest(_x + t, _y + i, true)) {
u = true;
break;
}
i++;
}
return(u);
}
function setSpeed() {
if (slideLeft && (!rising)) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforce * -1);
}
return(hforce * -1.5);
}
if (slideRight && (!rising)) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforce);
}
return(hforce * 1.5);
}
if ((Key.isDown(39) && (keys)) && (!wallder())) {
forward = false;
backward = true;
if (horizontal == 0) {
return(hforcei);
}
return(hforce);
}
if ((Key.isDown(37) && (keys)) && (!wallizq())) {
forward = true;
backward = false;
if (horizontal == 0) {
return(hforcei * -1);
}
return(hforce * -1);
}
return(0);
}
function drawFrame() {
if (victory) {
this.gotoAndStop("victory");
return(undefined);
}
if (death) {
this.gotoAndStop("death");
return(undefined);
}
if (flashing) {
this.gotoAndStop("hitted");
return(undefined);
}
if (lastX != _x) {
(forward ? (_xscale = (Math.abs(_xscale) * -1)Math.abs(_xscale) * -1) : (_xscale = Math.abs(_xscale)Math.abs(_xscale)));
}
if (!shooting) {
if ((lastY > _y) && (rising)) {
this.gotoAndStop("jump");
_root.estado = 3;
return(undefined);
}
} else if ((lastY > _y) && (rising)) {
this.gotoAndStop("attackJ");
_root.estado = 4;
return(undefined);
}
if (((lastY < _y) && (falling)) || (floating)) {
this.gotoAndStop("fall");
_root.estado = 5;
return(undefined);
}
if (slide) {
this.gotoAndStop("slide");
_root.estado = 6;
return(undefined);
}
if (shooting) {
if (horizontal != _root.windx) {
this.gotoAndStop("attackRU");
sprite.gotoAndPlay(frame);
_root.estado = 2;
return(undefined);
}
} else if (horizontal != _root.windx) {
this.gotoAndStop("run");
_root.estado = 1;
return(undefined);
}
if (shooting) {
this.gotoAndStop("attackST");
} else {
this.gotoAndStop("standing");
}
}
render();
frame = sprite._currentframe;
}
Instance of Symbol 112 MovieClip in Frame 1444
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
n = n - 10;
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
delete _root.loop;
}
}
Frame 1459
next = "G2";
stopAllSounds();
gotoAndStop (1174);
Frame 1460
_quality = "HIGH";
if (cheat == "bosses") {
gotoAndPlay (2237);
}
Instance of Symbol 295 MovieClip in Frame 1460
onClipEvent (keyDown) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIPepisode2");
}
}
Frame 1537
stopAllSounds();
_quality = "HIGH";
delete thunder1;
delete wind01;
delete wind04;
Instance of Symbol 81 MovieClip in Frame 1537
onClipEvent (keyDown) {
if (Key.isDown(13)) {
this.play();
}
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIP2");
}
}
Frame 1597
stop();
Instance of Symbol 112 MovieClip in Frame 1597
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 1601
play();
Frame 1632
stop();
Instance of Symbol 112 MovieClip in Frame 1632
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 1633
play();
Frame 1932
stop();
Instance of Symbol 112 MovieClip in Frame 1932
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 1933
play();
Frame 2140
stop();
Instance of Symbol 112 MovieClip in Frame 2140
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 2148
play();
Frame 2185
stop();
Instance of Symbol 112 MovieClip in Frame 2185
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 2199
play();
currentdamage = 0;
Frame 2218
tmark = getTimer();
trace("Inicio2:" + tmark);
if (cheat == "allmovies") {
gotoAndPlay (2405);
}
Frame 2237
windx = 0;
_quality = "LOW";
currentdamage = 0;
keys = false;
loop = new Sound();
loop.setVolume(100);
play();
delete keys;
Instance of Symbol 333 MovieClip "fade" in Frame 2237
onClipEvent (load) {
begin = (reveal = (hide = false));
DELAY = 40;
if (_root.reveal) {
this.gotoAndStop("reveal");
}
}
onClipEvent (enterFrame) {
if (begin) {
wait = true;
begin = false;
c = 0;
}
if (wait) {
c++;
if (c > DELAY) {
wait = false;
hide = true;
}
}
if (hide) {
play();
}
if (_root.reveal) {
this.gotoAndStop("reveal");
_root.reveal = false;
reveal = true;
}
if (reveal) {
play();
}
}
Instance of Symbol 863 MovieClip "mapa" in Frame 2237
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 989 MovieClip in Frame 2237
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 112 MovieClip in Frame 2388
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
n = n - 10;
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
delete _root.loop;
}
}
Frame 2404
next = "H";
stopAllSounds();
gotoAndStop (1179);
Frame 2405
function aleatorio(a, b) {
return(Math.floor(Math.random() * ((b - a) + 1)) + a);
}
windx = 0;
_quality = "LOW";
keys = false;
if (cheat == "bosses") {
gotoAndPlay (5251);
}
Instance of Symbol 333 MovieClip "fade" in Frame 2405
onClipEvent (load) {
begin = (reveal = (hide = false));
DELAY = 40;
if (_root.reveal) {
this.gotoAndStop("reveal");
}
}
onClipEvent (enterFrame) {
if (begin) {
wait = true;
begin = false;
c = 0;
}
if (wait) {
c++;
if (c > DELAY) {
wait = false;
hide = true;
}
}
if (hide) {
play();
}
if (_root.reveal) {
this.gotoAndStop("reveal");
_root.reveal = false;
reveal = true;
}
if (reveal) {
play();
}
}
Instance of Symbol 863 MovieClip "mapa" in Frame 2405
onClipEvent (load) {
heroe = eval (_root.heroe);
_visible = false;
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 989 MovieClip in Frame 2405
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Instance of Symbol 998 MovieClip "freeze" in Frame 2405
/* no clip actions */
Frame 2406
delete keys;
delete explo01;
delete hitted;
delete fhitted;
delete fdeath;
delete escudo;
delete Posy;
delete estado;
delete checkpoint;
delete next;
delete died;
delete Posx;
delete locks;
delete Posx2;
delete Posy2;
delete pause;
delete hittedBIG;
delete reveal;
delete totalsparks;
Instance of Symbol 112 MovieClip in Frame 2406
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
n = n - 10;
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
delete _root.loop;
}
}
Instance of Symbol 295 MovieClip in Frame 2407
onClipEvent (keyDown) {
if (Key.isDown(13)) {
this.play();
}
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIPafter");
}
}
Frame 2438
loop = new Sound();
loop.setVolume(100);
Frame 2498
stop();
_quality = "HIGH";
Instance of Symbol 112 MovieClip in Frame 2498
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 2502
play();
_quality = "LOW";
Instance of Symbol 1239 MovieClip "freeze" in Frame 2540
/* no clip actions */
Frame 2565
rumble.begin = true;
Instance of Symbol 112 MovieClip "rumble" in Frame 2565
onClipEvent (load) {
dy = 2;
DELAY = 16;
c = 0;
yi = _root._y;
}
onClipEvent (enterFrame) {
if (begin) {
dorumble = true;
begin = false;
c = 0;
}
if (dorumble) {
dy = dy * -1;
_root._y = _root._y + dy;
_root._x = _root._x + (dy * 2);
c = c + 1;
if (c > DELAY) {
dorumble = false;
_root._y = yi;
}
}
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2565
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Frame 2599
rumble.begin = true;
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2599
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Frame 2624
rumble.begin = true;
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1103 MovieClip "balas" in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1100 MovieClip "spark" in Frame 2624
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
}
onClipEvent (enterFrame) {
function suelo() {
return(_y > 224);
}
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
_visible = false;
fall = false;
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Frame 2641
windx = 5;
Instance of Symbol 1247 MovieClip "snow" in Frame 2641
onClipEvent (load) {
xi = _x;
}
onClipEvent (enterFrame) {
_visible = ((_x >= 0) && (_x <= 256));
if (mover) {
_x = (_x + dx);
_y = (_y + dy);
_x = (_x - _root.windx);
xi = xi - _root.windx;
if (_x <= 0) {
_x = (_x + 256);
xi = xi + 256;
}
if (Math.abs(_x - xi) >= xwide) {
dx = dx * -1;
}
if (_y >= 240) {
_x = ((xi = (_root.aleatorio(0, 15) + 1) * 16));
_y = -16;
}
}
}
Instance of Symbol 112 MovieClip "snowgen" in Frame 2641
onClipEvent (load) {
MAX = 50;
WAIT = 5;
i = (c = 0);
espera = true;
}
onClipEvent (enterFrame) {
if (espera) {
c++;
if ((c > WAIT) && (i < MAX)) {
espera = false;
generar = true;
i++;
c = 0;
}
}
if (generar) {
z = _root.aleatorio(10, 20);
init = {_x:(_root.aleatorio(0, 15) + 1) * 16, _xscale:z, _yscale:z, dx:_root.aleatorio(1.5, 2), dy:_root.aleatorio(0.5, 1.5), xwide:_root.aleatorio(10, 20), mover:true};
_root.snow.duplicateMovieClip("snow" + i, 100 + i, init);
generar = false;
espera = true;
}
}
Instance of Symbol 1258 MovieClip "heroe" in Frame 2642
onClipEvent (load) {
c = (i = 0);
}
onClipEvent (enterFrame) {
c++;
if (c >= 4) {
c = 0;
i++;
if (i >= 5) {
i = 1;
}
initObj = {_x:_x + _root.aleatorio(-15, 15), _y:(_y + _root.aleatorio(-10, 10)) - 16};
_root.smoke.duplicateMovieClip("smoke" + i, i, initObj);
}
}
Frame 2716
stop();
_quality = "HIGH";
Instance of Symbol 112 MovieClip in Frame 2716
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 2720
play();
_quality = "LOW";
Instance of Symbol 112 MovieClip in Frame 2752
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
if (!v) {
n = n - 10;
}
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
v = true;
delete _root.loop;
}
}
Instance of Symbol 112 MovieClip "music" in Frame 2779
onClipEvent (load) {
_root.intro = new Sound();
_root.intro.setVolume(100);
_root.intro.attachSound("rockIntro");
_root.loop = new Sound();
_root.loop.attachSound("rockLoop");
_root.loop.setVolume(100);
_root.intro.start();
}
onClipEvent (enterFrame) {
_root.intro.onSoundComplete = function () {
_root.loop.start(0, 99);
};
}
Frame 2813
stop();
windx++;
_quality = "HIGH";
Instance of Symbol 112 MovieClip in Frame 2813
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 2832
play();
windx++;
_quality = "LOW";
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who._xscale = who._xscale * 1.1;
who._yscale = who._yscale * 1.1;
i++;
}
Frame 2885
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who._xscale = who._xscale * 1.1;
who._yscale = who._yscale * 1.1;
i++;
}
Instance of Symbol 1319 MovieClip "freeze" in Frame 2886
/* no clip actions */
Frame 2939
windx++;
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who._xscale = who._xscale * 1.1;
who._yscale = who._yscale * 1.1;
i++;
}
Instance of Symbol 1331 MovieClip "freeze" in Frame 2939
/* no clip actions */
Instance of Symbol 1330 MovieClip "freeze" in Frame 2944
/* no clip actions */
Frame 2987
windx++;
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who._xscale = who._xscale * 1.1;
who._yscale = who._yscale * 1.1;
i++;
}
Frame 3010
windx++;
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who._xscale = who._xscale * 1.1;
who._yscale = who._yscale * 1.1;
i++;
}
Frame 3043
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who._xscale = who._xscale * 1.1;
who._yscale = who._yscale * 1.1;
i++;
}
Frame 3092
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who._xscale = who._xscale * 1.1;
who._yscale = who._yscale * 1.1;
i++;
}
Instance of Symbol 112 MovieClip in Frame 3092
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
if (!v) {
n = n - 5;
}
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
v = true;
delete _root.loop;
}
}
Frame 3112
_root.fader.duplicateMovieClip("fader300", 300);
Frame 3113
_root.fader300.play();
Frame 3145
_root.fader300.play();
Instance of Symbol 112 MovieClip in Frame 3145
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
if (!v) {
n = n - 15;
}
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
v = true;
delete _root.loop;
}
}
Frame 3146
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who.removeMovieClip();
i++;
}
i = 1;
while (i <= 4) {
who = eval ("smoke" + i);
who.removeMovieClip();
i++;
}
fader300.removeMovieClip();
delete who;
delete windx;
delete i;
Frame 3173
_quality = "HIGH";
stopAllSounds();
Instance of Symbol 295 MovieClip in Frame 3173
onClipEvent (keyDown) {
if (Key.isDown(13)) {
this.play();
}
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIPFireMega");
}
}
Frame 3232
stop();
Instance of Symbol 112 MovieClip in Frame 3232
onClipEvent (keyUp) {
_root.nextFrame();
}
Frame 3249
play();
Instance of Symbol 112 MovieClip in Frame 3323
onClipEvent (load) {
n = 100;
_root.loop = new Sound();
who = _root.loop;
}
onClipEvent (enterFrame) {
if (!v) {
n = n - 3;
}
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
v = true;
delete _root.loop;
}
}
Instance of Symbol 295 MovieClip in Frame 3378
onClipEvent (keyDown) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIPSneak");
}
}
Frame 3712
barras.duplicateMovieClip("barras400", 400);
Frame 3713
function aleatorio(a, b) {
return(Math.floor(Math.random() * ((b - a) + 1)) + a);
}
Instance of Symbol 1434 MovieClip "snow" in Frame 3713
onClipEvent (load) {
xi = _x;
}
onClipEvent (enterFrame) {
_visible = ((_x >= 0) && (_x <= 256));
if (mover) {
_x = (_x + dx);
_y = (_y + dy);
_x = (_x - _root.windx);
xi = xi - _root.windx;
if (_x <= 0) {
_x = (_x + 256);
xi = xi + 256;
}
if (Math.abs(_x - xi) >= xwide) {
dx = dx * -1;
}
if (_y >= 240) {
_x = ((xi = (_root.aleatorio(0, 15) + 1) * 16));
_y = -16;
}
}
}
Instance of Symbol 112 MovieClip "snowgen" in Frame 3713
onClipEvent (load) {
MAX = 50;
WAIT = 5;
i = (c = 0);
espera = true;
}
onClipEvent (enterFrame) {
if (espera) {
c++;
if ((c > WAIT) && (i < MAX)) {
espera = false;
generar = true;
i++;
c = 0;
}
}
if (generar) {
z = _root.aleatorio(10, 20);
init = {_x:(_root.aleatorio(0, 15) + 1) * 16, _xscale:z, _yscale:z, dx:_root.aleatorio(0.2, 0.6), dy:_root.aleatorio(0.5, 1), xwide:_root.aleatorio(10, 20), mover:true};
_root.snow.duplicateMovieClip("snow" + i, 100 + i, init);
generar = false;
espera = true;
}
}
Instance of Symbol 295 MovieClip in Frame 3738
onClipEvent (keyDown) {
this.play();
}
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("SKIPEND");
}
}
Frame 5107
_root.fader.duplicateMovieClip("fader300", 300);
Frame 5108
_root.fader300.play();
Frame 5146
i = 1;
while (i <= 50) {
who = eval ("snow" + i);
who.removeMovieClip();
i++;
}
fader300.removeMovieClip();
barras400.removeMovieClip();
delete i;
delete who;
Frame 5153
if ((cheat == "bosses") || (cheat == "allmovies")) {
gotoAndPlay (5251);
}
Frame 5157
_quality = "HIGH";
loop = new Sound();
loop.setVolume(100);
Frame 5161
function m2s(tiempo) {
var mins = Math.floor(tiempo / 60000);
var secs = Math.floor((tiempo % 60000) / 1000);
if (mins < 10) {
mins = "0" + String(mins);
}
if (secs < 10) {
secs = "0" + String(secs);
}
return((("00:" + String(mins)) + ":") + String(secs));
}
score = Math.floor(18750 - (0.021 * ttotal));
ttotal2 = m2s(ttotal);
Frame 5162
stop();
totalBTN = 3;
Selection.setFocus("c1");
selected = new Sound();
selected.attachSound("selected");
inputText = new Sound();
inputText.attachSound("inputText");
c1.onSetFocus = function () {
selected.start();
};
c1.onChanged = function () {
inputText.start();
};
c1.backgroundColor = 7829367 /* 0x777777 */;
again = false;
Instance of Symbol 112 MovieClip in Frame 5162
onClipEvent (keyDown) {
function ponerFoco(desde, modo) {
if (Selection.getFocus() == null) {
Selection.setFocus("_root.c1");
return(undefined);
}
desde = Number(desde);
if (modo == 0) {
((desde < total) ? (desde++) : ((desde = 1)));
Selection.setFocus("_root.c" + desde);
return(undefined);
}
if (modo == 1) {
((desde > 1) ? (desde--) : ((desde = total)));
Selection.setFocus("_root.c" + desde);
return(undefined);
}
}
total = _root.totalBTN;
if (Key.isDown(40)) {
ponerFoco(Selection.getFocus().substring(9), 0);
}
if (Key.isDown(38)) {
ponerFoco(Selection.getFocus().substring(9), 1);
}
}
Instance of Symbol 295 MovieClip "skiper" in Frame 5162
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("HSleave");
}
}
Frame 5172
stop();
btngo._visible = false;
Instance of Symbol 200 MovieClip "scoretable" in Frame 5172
onClipEvent (load) {
function procesar() {
_visible = ((loaded = true));
_root.msg.text = "";
exito.start();
_root.btnskip.enabled = false;
_root.btnskip._visible = false;
_root.btngo.enabled = true;
_root.btngo._visible = true;
_root.scoretable.name0.text = this.NAME0;
_root.scoretable.name1.text = this.NAME1;
_root.scoretable.name2.text = this.NAME2;
_root.scoretable.name3.text = this.NAME3;
_root.scoretable.name4.text = this.NAME4;
_root.scoretable.name5.text = this.NAME5;
_root.scoretable.name6.text = this.NAME6;
_root.scoretable.name7.text = this.NAME7;
_root.scoretable.name8.text = this.NAME8;
_root.scoretable.name9.text = this.NAME9;
_root.scoretable.score0.text = this.SCORE0;
_root.scoretable.score1.text = this.SCORE1;
_root.scoretable.score2.text = this.SCORE2;
_root.scoretable.score3.text = this.SCORE3;
_root.scoretable.score4.text = this.SCORE4;
_root.scoretable.score5.text = this.SCORE5;
_root.scoretable.score6.text = this.SCORE6;
_root.scoretable.score7.text = this.SCORE7;
_root.scoretable.score8.text = this.SCORE8;
_root.scoretable.score9.text = this.SCORE9;
i = 0;
while (i <= 9) {
if (eval ("this.SCORE" + i) != 0) {
temp = (18750 - eval ("this.SCORE" + i)) / 0.021;
eval ("_root.scoretable.time" + i).text = _root.m2s(temp);
} else {
eval ("_root.scoretable.time" + i).text = "Empty";
}
i++;
}
}
variables = new LoadVars();
datos = new LoadVars();
_visible = false;
u = false;
datos.onLoad = procesar;
variables.filename = "fis.sco";
variables.scoresize = 10;
variables.action = "PONERtumay";
variables.viewtype = "FLASH";
variables.winname = _root.name;
variables.winscore = _root.score;
if (!_root.again) {
variables.action = "PONERtumay";
} else {
variables.action = "VIEW";
}
variables.sendAndLoad("http://www.dzarchive.com/iragination/hiscotumay.php", datos, "GET");
mwait = getTimer() + 40000;
loaded = false;
failed = new Sound();
failed.attachSound("fhitted");
exito = new Sound();
exito.attachSound("cheater");
}
onClipEvent (enterFrame) {
if (((getTimer() >= mwait) && (!loaded)) && (!u)) {
_root.msg.text = "No data file found";
failed.start();
u = true;
_root.nextFrame();
}
}
Instance of Symbol 112 MovieClip in Frame 5172
onClipEvent (keyDown) {
if (Key.isDown(40) || (Key.isDown(38))) {
if (_root.btnskip.enabled) {
Selection.setFocus("_root.btnskip");
}
}
if (_root.btngo.enabled) {
Selection.setFocus("_root.btngo");
}
}
Instance of Symbol 295 MovieClip "skiper" in Frame 5172
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay("HSleave");
}
}
Frame 5173
totalBTN = 2;
Instance of Symbol 112 MovieClip in Frame 5173
onClipEvent (keyDown) {
function ponerFoco(desde, modo) {
if (Selection.getFocus() == null) {
Selection.setFocus("_root.btn1");
return(undefined);
}
desde = Number(desde);
if (modo == 0) {
((desde < total) ? (desde++) : ((desde = 1)));
Selection.setFocus("_root.btn" + desde);
return(undefined);
}
if (modo == 1) {
((desde > 1) ? (desde--) : ((desde = total)));
Selection.setFocus("_root.btn" + desde);
return(undefined);
}
}
total = _root.totalBTN;
if (Key.isDown(40)) {
ponerFoco(Selection.getFocus().substring(11), 0);
}
if (Key.isDown(38)) {
ponerFoco(Selection.getFocus().substring(11), 1);
}
}
Instance of Symbol 112 MovieClip in Frame 5224
onClipEvent (load) {
n = 100;
who = _root.loop;
}
onClipEvent (enterFrame) {
if (!v) {
n = n - 5;
}
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
v = true;
delete who;
delete _root.loop;
}
}
Frame 5240
delete ttotal;
delete ttotal2;
delete again;
delete totalBTN;
delete selected;
delete inputText;
delete score;
delete name;
Frame 5251
if (cheat == "bosses") {
stopAllSounds();
}
delete currentdamage;
delete explo01;
delete hitted;
delete fhitted;
delete fdeath;
delete escudo;
delete Posy;
delete reveal;
delete lives;
delete tmark;
delete checkpoint;
delete next;
delete windx;
delete died;
delete intro;
delete locks;
delete hittedBIG;
delete totalsparks;
delete duh;
delete n;
delete cheat;
delete estado;
Frame 5255
_quality = "HIGH";
loop = new Sound();
loop.setVolume(100);
Frame 5256
music.nextFrame();
Frame 5331
gotoAndPlay (349);
Frame 5341
reveal = true;
died = true;
gotoAndStop(checkpoint +1054);
Instance of Symbol 6 MovieClip "control" in Symbol 7 MovieClip [bullet] Frame 1
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_parent._visible = _parent.hitTest(_root.mascara);
if (_parent._visible) {
if (_parent.hitTest(heroe.sprite.hotzone)) {
heroe.damage = 2;
heroe.hitted = true;
}
_parent._x = _parent._x - dx;
_parent._y = _parent._y + dy;
} else {
_parent.removeMovieClip();
}
}
Symbol 34 MovieClip [fhair] Frame 1
stop();
Symbol 43 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 30
stop();
Symbol 99 Button
on (release) {
gotoAndPlay (608);
}
Symbol 101 Button
on (release) {
gotoAndPlay (478);
}
Symbol 103 Button
on (release) {
gotoAndPlay (505);
}
Symbol 107 Button
on (release) {
gotoAndPlay (452);
}
Symbol 109 Button
on (release) {
gotoAndPlay (532);
}
Symbol 111 Button
on (release) {
gotoAndPlay (566);
}
Symbol 116 Button
on (release) {
play();
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 128 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 131 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 138 MovieClip Frame 1
_root.smoke._x = _root.heroe._x;
_root.smoke._y = _root.heroe._y - 3;
_root.smoke.gotoAndPlay(1);
_root.heroe.barrida.start();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 138 MovieClip Frame 7
gotoAndPlay (3);
Symbol 159 Button
on (release) {
getURL ("http://www.dzarchive.com/iragination", "_blank");
}
Symbol 160 Button
on (release) {
play();
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
_visible = true;
Symbol 206 Button
on (release) {
_root.controles.flush();
_root.gotoAndStop("xtest");
}
Symbol 230 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 241 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 249 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 252 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Instance of Symbol 268 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
function arctan(x, y) {
if (x == 0) {
if (y > 0) {
return(90);
}
return(270);
}
if (x > 0) {
if (y > 0) {
return((Math.atan(y / x) * 180) / Math.PI);
}
return(360 + ((Math.atan(y / x) * 180) / Math.PI));
}
return(((Math.atan(y / x) * 180) / Math.PI) + 180);
}
_visible = true;
_alpha = 100;
r = Math.sqrt((_x * _x) + (_y * _y));
teta = arctan(_x, _y);
}
onClipEvent (enterFrame) {
if (_visible) {
teta = teta + 10;
}
if (teta >= 360) {
teta = 0;
}
_x = (r * Math.cos((teta * Math.PI) / 180));
_y = (r * Math.sin((teta * Math.PI) / 180));
r = r + 5;
_alpha = (_alpha - 0.2);
if (_alpha <= 0) {
_visible = false;
}
}
Symbol 275 MovieClip Frame 6
gotoAndPlay (3);
Symbol 276 MovieClip Frame 1
stop();
Symbol 279 Button
on (release) {
_root.restoreKeys();
}
Symbol 292 Button
on (release) {
play();
}
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 15
stop();
Symbol 305 Button
on (release) {
nextFrame();
}
Symbol 315 MovieClip Frame 5
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 10
hide = false;
_root.gotoAndPlay("FADE");
stop();
Symbol 327 MovieClip Frame 20
reveal = false;
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 344 MovieClip Frame 3
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 350 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 350 MovieClip Frame 7
gotoAndPlay (5);
Symbol 361 MovieClip Frame 1
_root.explo01.start();
Symbol 361 MovieClip Frame 6
stop();
Symbol 362 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 423 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 424 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 427 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 447 MovieClip Frame 6
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 454 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 454 MovieClip Frame 4
stop();
Symbol 455 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 468 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 468 MovieClip Frame 6
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 502 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 517 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 518 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 529 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 530 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 1
stop();
gotoAndStop(_root.currentdamage + 1);
Symbol 550 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 7
stop();
Symbol 578 Button
on (release) {
gotoAndStop (1074);
}
Instance of Symbol 398 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
_x = 1274;
}
Symbol 597 MovieClip Frame 1
stop();
Instance of Symbol 597 MovieClip "locked" in Symbol 598 MovieClip Frame 1
onClipEvent (load) {
_visible = _root.locks;
}
onClipEvent (enterFrame) {
if ((!u) && (_root.locks == 0)) {
this.nextFrame();
u = true;
}
}
Instance of Symbol 581 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 582 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 583 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 598 MovieClip "lastblock" in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 599 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 600 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 601 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 602 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 605 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 608 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 611 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 612 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 613 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 614 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 572 MovieClip in Symbol 615 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 631 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 632 MovieClip Frame 15
if (_root.msgbox.msg == "All locks destroyed.".toUpperCase()) {
_root.unlocked.start();
}
Symbol 632 MovieClip Frame 29
stop();
Symbol 683 MovieClip Frame 1
pause = true;
Symbol 683 MovieClip Frame 9
stop();
pause = false;
Symbol 683 MovieClip Frame 15
_root.pause = false;
_root.gotoAndStop(_root.next);
Symbol 699 MovieClip Frame 10
gotoAndPlay (1);
Instance of Symbol 732 MovieClip in Symbol 746 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 745 MovieClip in Symbol 746 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mascara);
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 751 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 770 MovieClip Frame 15
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 782 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 783 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 814 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 815 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 1
Symbol 847 MovieClip Frame 2
Symbol 847 MovieClip Frame 9
stop();
pause = false;
Symbol 847 MovieClip Frame 15
_root.pause = false;
_root.gotoAndStop(_root.next);
Instance of Symbol 847 MovieClip "door" in Symbol 848 MovieClip Frame 1
onClipEvent (load) {
pause = true;
}
Symbol 854 MovieClip Frame 1
stop();
Instance of Symbol 847 MovieClip "door" in Symbol 861 MovieClip Frame 1
onClipEvent (load) {
pause = true;
}
Instance of Symbol 860 MovieClip in Symbol 861 MovieClip Frame 1
onClipEvent (load) {
heroe = eval (_root.heroe);
}
onClipEvent (enterFrame) {
_x = (_x - heroe.scrollspeed);
}
Symbol 930 MovieClip Frame 53
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 931 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 934 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 959 MovieClip Frame 1
_root.wind01.stop();
Instance of Symbol 948 MovieClip in Symbol 959 MovieClip Frame 1
onClipEvent (enterFrame) {
_visible = this.hitTest(_root.mapa);
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 959 MovieClip Frame 15
onClipEvent (load) {
_visible = false;
}
Symbol 959 MovieClip Frame 17
if (_root.tenguman._x > _root.heroe._x) {
_root.windx = (-1 * _root.heroe.hforce) * 1.3;
} else {
_root.windx = _root.heroe.hforce * 1.3;
}
_root.wind01.start(0, 99);
Instance of Symbol 91 MovieClip "hotzone" in Symbol 959 MovieClip Frame 30
onClipEvent (load) {
_visible = false;
}
Symbol 959 MovieClip Frame 31
stop();
Symbol 966 MovieClip Frame 154
stop();
Symbol 981 MovieClip Frame 1
stop();
Symbol 983 MovieClip Frame 1
stop();
Instance of Symbol 112 MovieClip in Symbol 983 MovieClip Frame 2
onClipEvent (load) {
n = 100;
who = _root.loop;
}
onClipEvent (enterFrame) {
n = n - 10;
if (n >= 0) {
who.setVolume(n);
} else {
who.stop();
who.setVolume(100);
n = 100;
delete _root.loop;
}
}
Symbol 983 MovieClip Frame 19
_root.loop = new Sound();
_root.loop.setVolume(100);
Symbol 983 MovieClip Frame 131
_root.heroe.keys = false;
Symbol 983 MovieClip Frame 211
_root.loop = new Sound();
_root.loop.setVolume(100);
Symbol 983 MovieClip Frame 380
_root.ttotal = _root.ttotal + (getTimer() - _root.tmark);
trace("Fase1:" + _root.ttotal);
stop();
_root.gotoAndStop("H2");
Instance of Symbol 91 MovieClip "hotzone" in Symbol 998 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 1015 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 1024 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1024 MovieClip Frame 11
stop();
Instance of Symbol 91 MovieClip "hotzone" in Symbol 1030 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1030 MovieClip Frame 3
stop();
Symbol 1055 MovieClip Frame 6
stop();
Symbol 1063 MovieClip Frame 5
stop();
Symbol 1066 MovieClip Frame 1
function disparar() {
i++;
balaObj = {_x:30, _y:170, dx:20, dy:0, mover:true};
if (freeze._xscale > 0) {
balaObj._x = freeze._x + 30;
} else {
balaObj._x = freeze._x - 30;
balaObj.dx = balaObj.dx * -1;
}
_root.bala.duplicateMovieClip("bala" + i, i, balaObj);
}
i = 0;
freeze = _root.freeze;
Instance of Symbol 91 MovieClip "hotzone" in Symbol 1066 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1030 MovieClip in Symbol 1066 MovieClip Frame 1
/* no clip actions */
Symbol 1066 MovieClip Frame 29
disparar();
Symbol 1066 MovieClip Frame 34
disparar();
Symbol 1066 MovieClip Frame 39
disparar();
Symbol 1066 MovieClip Frame 44
disparar();
Symbol 1066 MovieClip Frame 49
disparar();
Instance of Symbol 1030 MovieClip in Symbol 1066 MovieClip Frame 57
/* no clip actions */
Symbol 1066 MovieClip Frame 62
_parent.done = true;
Symbol 1075 MovieClip Frame 5
freeze = _root.freeze;
heroe = _root.heroe;
SPEED = 20;
balaObj = {_x:30, _y:170, dx:20, dy:0, mover:true};
if (freeze._xscale > 0) {
balaObj._x = freeze._x + 30;
} else {
balaObj._x = freeze._x - 30;
balaObj.dx = balaObj.dx * -1;
}
balaObj._y = freeze._y - 30;
teta = Math.atan(Math.abs(heroe._x - balaObj._x) / Math.abs(heroe._y - balaObj._y));
balaObj.dx = ((freeze._xscale > 0) ? (SPEED * Math.sin(teta)) : ((-1 * SPEED) * Math.sin(teta)));
balaObj.dy = SPEED * Math.cos(teta);
_root.bala.duplicateMovieClip("balaX", 1, balaObj);
Symbol 1075 MovieClip Frame 7
_parent.attackjID = 0;
stop();
Symbol 1078 MovieClip Frame 4
freeze = _root.freeze;
balaObj = {_x:30, _y:freeze._y - 30, dx:25, dy:0, mover:true};
if (freeze._xscale > 0) {
balaObj._x = freeze._x + 30;
} else {
balaObj._x = freeze._x - 30;
balaObj.dx = balaObj.dx * -1;
}
_root.balas.duplicateMovieClip("balas20", 20, balaObj);
Symbol 1078 MovieClip Frame 7
stop();
Symbol 1083 MovieClip Frame 8
stop();
Symbol 1084 MovieClip Frame 1
stop();
Symbol 1097 MovieClip Frame 1
stop();
_parent.totalsparks = 0;
Instance of Symbol 91 MovieClip "hotzone" in Symbol 1097 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1097 MovieClip Frame 10
_root.rumble.begin = true;
Instance of Symbol 1092 MovieClip in Symbol 1097 MovieClip Frame 10
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
_parent.totalsparks++;
}
onClipEvent (enterFrame) {
function suelo() {
return(!this.hitTest(_root.mapa));
}
_visible = this.hitTest(_root.mapa);
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
fall = false;
_parent.totalsparks--;
if (_parent.totalsparks <= 0) {
_parent.borrar = true;
}
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1095 MovieClip in Symbol 1097 MovieClip Frame 10
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
_parent.totalsparks++;
}
onClipEvent (enterFrame) {
function suelo() {
return(!this.hitTest(_root.mapa));
}
_visible = this.hitTest(_root.mapa);
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
fall = false;
_parent.totalsparks--;
if (_parent.totalsparks <= 0) {
_parent.borrar = true;
}
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 1092 MovieClip in Symbol 1097 MovieClip Frame 10
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
_parent.totalsparks++;
}
onClipEvent (enterFrame) {
function suelo() {
return(!this.hitTest(_root.mapa));
}
_visible = this.hitTest(_root.mapa);
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
fall = false;
_parent.totalsparks--;
if (_parent.totalsparks <= 0) {
_parent.borrar = true;
}
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Symbol 1097 MovieClip Frame 10
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
_parent.totalsparks++;
}
onClipEvent (enterFrame) {
function suelo() {
return(!this.hitTest(_root.mapa));
}
_visible = this.hitTest(_root.mapa);
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
fall = false;
_parent.totalsparks--;
if (_parent.totalsparks <= 0) {
_parent.borrar = true;
}
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Symbol 1097 MovieClip Frame 10
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
_parent.totalsparks++;
}
onClipEvent (enterFrame) {
function suelo() {
return(!this.hitTest(_root.mapa));
}
_visible = this.hitTest(_root.mapa);
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
fall = false;
_parent.totalsparks--;
if (_parent.totalsparks <= 0) {
_parent.borrar = true;
}
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Symbol 1097 MovieClip Frame 10
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
_parent.totalsparks++;
}
onClipEvent (enterFrame) {
function suelo() {
return(!this.hitTest(_root.mapa));
}
_visible = this.hitTest(_root.mapa);
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
fall = false;
_parent.totalsparks--;
if (_parent.totalsparks <= 0) {
_parent.borrar = true;
}
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 18 MovieClip in Symbol 1097 MovieClip Frame 10
onClipEvent (load) {
jump = true;
gravity = 0.6;
accel = 1.5;
u = _root.aleatorio(-16, 16);
v = _root.aleatorio(-16, 16);
_x = (_x + u);
_y = (_y + v);
dy = _root.aleatorio(15, 30);
dx = _root.aleatorio(1, 5) * 2;
if (u < 0) {
dx = -1 * dx;
}
((v > 0) ? ((dy = dy * 1)) : ((dy = dy * -1)));
_parent.totalsparks++;
}
onClipEvent (enterFrame) {
function suelo() {
return(!this.hitTest(_root.mapa));
}
_visible = this.hitTest(_root.mapa);
if (jump) {
dy = dy * gravity;
if (dy > -0.5) {
jump = false;
fall = true;
dy = 0.5;
}
}
if (fall) {
dy = dy * accel;
if (suelo()) {
dy = 0;
fall = false;
_parent.totalsparks--;
if (_parent.totalsparks <= 0) {
_parent.borrar = true;
}
}
}
_x = (_x + dx);
_y = (_y + dy);
}
Instance of Symbol 91 MovieClip "hotzone" in Symbol 1100 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1105 MovieClip Frame 1
stop();
Symbol 1105 MovieClip Frame 40
_root.ttotal = _root.ttotal + (getTimer() - _root.tmark);
trace("Fase2:" + _root.ttotal);
_root.gotoAndStop("H3");
Symbol 1113 MovieClip Frame 22
stop();
Symbol 1136 MovieClip Frame 65
stop();
Symbol 1145 MovieClip Frame 10
stop();
Symbol 1188 MovieClip Frame 11
stop();
Symbol 1216 MovieClip Frame 6
stop();
Symbol 1223 MovieClip Frame 9
stop();
Symbol 1228 MovieClip Frame 9
stop();
Symbol 1239 MovieClip Frame 1
Symbol 1239 MovieClip Frame 40
gotoAndPlay (8);
Symbol 1247 MovieClip Frame 1
Symbol 1286 MovieClip Frame 9
stop();
Symbol 1296 MovieClip Frame 9
stop();
Symbol 1319 MovieClip Frame 13
stop();
Symbol 1361 MovieClip Frame 9
gotoAndPlay (1);
Symbol 1381 MovieClip Frame 11
stop();
Symbol 1470 Button
on (press) {
play();
}
Symbol 1472 Button
on (release) {
skiper.play();
_root.c2.enabled = false;
_root.c3.enabled = false;
}
Symbol 1474 Button
on (release) {
gotoAndStop (5173);
}
Symbol 1475 Button
on (release) {
skiper.play();
}
Symbol 1478 Button
on (press) {
gotoAndPlay (5163);
again = true;
}
Symbol 1483 Button
on (release) {
skiper.play();
_root.btn1.enabled = false;
_root.btn2.enabled = false;
}