STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229672 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2596 · P5191 |
This is the info page for Flash #56030 |
Controls/Controles At feet/A pie: A Melee/Ataque S Jump/Brinca D Dash/Turbo F Shot/Fuego!!!! <- & -> Left & Right/Izq y Derecha Flying/Volando: Arrows Move Flechas Mueves Mouse Aim/Apunta Click Shot/Dispara Cutscenes/Escenas SPACE / ESPACIO Avance |
<p align="left"></p> |
Bros. |
Wath |
Wath the |
Wath the f**k |
Skip |
Skip |
Options |
Configurar |
Password |
Password |
Load |
Cargar |
New Game |
Juego nuevo |
Ver 1.5 |
Options |
Detail/Detalle: Language/Idioma: Go back/Atras |
Hg Md Lw |
Español English |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
Type the secret password give to you when you finished "Megaman Bros" And play with Luigi and X too! cool, plus, your actual game data will be loaded with these characters enabled, you may want to save after that to keep them enabled |
Password type below |
go back |
SUBMIT |
z |
<p align="left"><font face="Press Start" size="5" color="#ff2c00" letterSpacing="0.000000" kerning="1"><b>L</b></font></p> |
<p align="left"></p> |
Espacio/space: continuar/continue |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
Cheep Beach |
Yoster Jungle |
<p align="left"></p> |
<p align="left"></p> |
Koopa Volcano |
<p align="left"></p> |
<p align="left"></p> |
Shy guy Hideout |
SAVE!!! |
SAVE!!! |
SAVE!!! |
Click below to: |
select your player |
/20 |
/20000 |
/30 |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
<p align="left"></p> |
Wait till end to know something CREDITS Code, Sprites, Develop, Story Master Mario_Mx Master_Ox Desing Master Mario_Mx Torreneitor †Unknow† Music Paul_stetich Master Mario_MX(rips) Sprites Master Mario_Mx(custom and final boss) MetaKnigthX Zin Dim Time YUM mario fan games galaxy sprites inc. no body touch fuzzy get dizzy google (XD) neopolis Sounds Master Mario_Mx findsounds.com mario fan games galaxy Programs Utilized Macromedia Flash 8 Pro Wave Recorder Cool Edit Pro 2 Zsnes Visual Boy Advance Audio Overload Paint(yup, hate it) Photoshop CS2 Project 64 NotePad BETA TESTERS †Unknow† my whole classmates!!! XD and some family members!!! SPECIAL THANKS! Yuvel (friendship, beta test and support) Krystal (test) LunarSage (test) Master_Ox(inspiration and code) newgrouds forums (ActionScript big helpers) saberzero (help with sprites!) NIntendo & Capcom (for their chars and games!^_^) ALL of the characters in the game except meggidrabowser(final boss) are owned by their respective companies. Megaman Bros idea megidrabowser(created by Rafa Ruelas) and anithing else is COPYRIGHTED to Master Mario_Mx &/or Rafa Ruelas. THIS WAS A |
your game has been saved: wait till the next game for a secret!!! |
GORGORITO PRODUCTIONS |
tu juego se guardo: el proximo juego tendra una sorpresa!! |
PRODUCCIONES GORGORITO |
OPs, Game Over... Wanna Try Again? |
Yes, im gonna kick some butt! |
No, Im lazy... Wanna try elsewhere |
Sorry pero... Te Fregaron!! le vas de nuevo? |
SIIIIII Me vengare y les pateare el... |
Nop.... Me da weva Voy a otro lado |
ActionScript [AS1/AS2]
Frame 1Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; stop(); Stage.showMenu = false;Instance of Symbol 72 MovieClip "control" in Frame 1onClipEvent (load) { count = 0; var kill = 0; boss1 = "not yet"; boss2 = "not yet"; boss3 = "not yet"; boss4 = "not yet"; boss5 = "not yet"; scene = 0; player = 0; BGM = 0; saved = undefined; lng = "eng"; secret1 = false; secret2 = false; gameclear1 = false; fin = "off"; HP = 64; } onClipEvent (enterFrame) { _root.lng.text = lng; _root.res.text = _quality; _root.boss.text = boss1; _root.boss2.text = boss3; _root.boss3.text = boss4; _visible = false; _root.kills.text = boss2; _root.kill.text = kill; if (HP > 64) { HP = 64; } if (secret1 == false) { _root.mega._visible = false; _root.luigi._visible = false; } else if (secret1) { _root.mega._visible = true; _root.luigi._visible = true; } if (saved == false) { _root.loading._visible = false; } else if (saved) { _root.loading._visible = true; } if ((((boss1 == "clear") && (boss2 == "clear")) && (boss3 == "clear")) && (boss4 == "clear")) { fin = "on"; } if (fin == "off") { _root.finale._visible = false; } else if (fin == "on") { _root.finale._visible = true; } }Frame 2stop(); var savefile = SharedObject.getLocal("MMBrosX.sol"); if (savefile.data.saved == undefined) { _root.control.saved = false; _root.skp._visible = false; } else if (savefile.data.saved != undefined) { _root.control.saved = true; _root.skp._visible = true; } var bgm00 = new Sound(); var bgm01 = new Sound(); var bgm02 = new Sound(); var bgm03 = new Sound(); var bgm04 = new Sound(); var bgm05 = new Sound(); var bgm06 = new Sound(); var bgm07 = new Sound(); var bgm08 = new Sound(); var bgm09 = new Sound(); var bgm10 = new Sound(); var war = new Sound(); var fina = new Sound(); var finb = new Sound(); war.attachSound("warning"); bgm00.attachSound("00"); bgm01.attachSound("01"); bgm02.attachSound("02"); bgm03.attachSound("03"); bgm04.attachSound("04"); bgm05.attachSound("05"); bgm06.attachSound("06"); bgm07.attachSound("07"); bgm08.attachSound("08"); bgm09.attachSound("09"); bgm10.attachSound("10"); fina.attachSound("fina"); finb.attachSound("finb");Frame 3Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); };Frame 6_root.BGM.BG = 1; bgm00.start(0, 255);Instance of Symbol 283 MovieClip "plataforms" in Frame 6onClipEvent (load) { ini_y = 0; zero = this._parent.zero; velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 348 MovieClip "zero" in Frame 6onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { _root.gotoAndStop(2); gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); cursor = this._parent.cursor_mc; HP = _max_HP; max_HP = 64; damage = 0; atk = 3; max_dash = Infinity; time_dash = max_dash; max_atack = 29; time_atack = 0; atack_on = true; max_damage = 35; time_damage = max_damage; max_shot = 20; time_shot = max_shot; max_shield = 30; time_shield = max_shield; dir = "R"; scena = this._parent.plataforms; posXL = 150; posXR = 250; time = 0; _x = 50; plataform = undefined; wall = undefined; moveY = true; ini_y = _y; top_y = 84; velX = 2; velY = 0; w = 2; g = 10; f = force; force = 60; weight = -6; max_fall = weight; can_jump = true; receive_damage = true; orden3 = "null"; orden4 = "no"; under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 6onClipEvent (load) { zero = _root.zero; laserMoveSpeed = 10; moveSpeed = 10; laserCounter = 1; movile = false; this._visible = false; atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 357 MovieClip "Hbar" in Frame 6onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { gotoAndStop(zero.HP + 1); }Frame 7_root.BGM.BG = 1;Instance of Symbol 368 MovieClip "plataforms" in Frame 7onClipEvent (load) { ini_y = 0; zero = this._parent.zero; velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 372 MovieClip "warning" in Frame 7onClipEvent (load) { _visible = false; }Frame 8_root.Hbar._visible = false;Frame 9_root.Hbar._visible = true;Instance of Symbol 410 MovieClip "plataforms" in Frame 9onClipEvent (load) { ini_y = 0; zero = this._parent.zero; velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 9onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { _root.gotoAndStop(2); gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); HP = max_HP; max_HP = 64; damage = 0; atk = 3; max_dash = 30; time_dash = max_dash; atack_on = true; max_atack = 16; time_atack = 0; max_damage = 35; time_damage = max_damage; max_shot = 20; time_shot = 0; max_shield = 30; time_shield = max_shield; charge = 0; dir = "R"; scena = this._parent.plataforms; posXL = 150; posXR = 250; _x = 50; plataform = undefined; wall = undefined; moveY = true; ini_y = _y; top_y = 84; velX = 2; velY = 0; w = 2; g = 10; f = force; force = 60; max_fall = weight; weight = -6; can_jump = true; receive_damage = true; orden3 = "ok"; orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 9onClipEvent (load) { zero = _root.zero; laserMoveSpeed = 20; moveSpeed = 10; laserCounter = 1; movile = false; this._visible = false; atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 9onClipEvent (load) { wall = undefined; laserMoveSpeed = 20; zero = _root.zero; moveSpeed = 10; laserCounter = 1; movile = false; this._visible = false; atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 372 MovieClip "warning" in Frame 10onClipEvent (load) { _visible = false; }Instance of Symbol 565 MovieClip "plataforms" in Frame 10onClipEvent (load) { ini_y = 0; zero = this._parent.zero; velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 593 MovieClip "scene1" in Frame 11onClipEvent (enterFrame) { if (Key.isDown(32)) { play(); } }Frame 12Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; bgm00.stop(); bgm01.start(0, 255);Frame 13Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; _root.control.HP = 64;Instance of Symbol 625 MovieClip in Frame 13onClipEvent (enterFrame) { if (_root.control.secret1 == false) { _visible = false; } else if (_root.control.secret1) { _visible = true; } }Instance of Symbol 629 MovieClip in Frame 13onClipEvent (enterFrame) { if (_root.control.secret1 == false) { _visible = false; } else if (_root.control.secret1) { _visible = true; } }Instance of Symbol 646 MovieClip "plataforms" in Frame 14onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } } onClipEvent (unload) { removeMovieClip(this); }Instance of Symbol 559 MovieClip "zero" in Frame 14onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 14onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 14onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 357 MovieClip "Hbar" in Frame 14onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { gotoAndStop(zero.HP + 1); HP = zero.HP; }Instance of Symbol 348 MovieClip "zero" in Frame 15onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 15onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 16onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 16onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 16onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 17onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 755 MovieClip "plataforms" in Frame 18onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 18onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 18onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 18onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 19onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 19onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 20onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 20onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 20onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 21onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 771 MovieClip "plataforms" in Frame 22onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 22onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 22onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 22onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 23onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 23onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 24onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 24onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 24onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 25onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 800 MovieClip "plataforms" in Frame 26onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 372 MovieClip "warning" in Frame 26onClipEvent (load) { _visible = false; }Instance of Symbol 559 MovieClip "zero" in Frame 26onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 26onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 26onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 27onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 27onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 28onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 28onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 28onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 29onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Frame 30_root.control.kill = 0;Instance of Symbol 806 MovieClip "plataforms" in Frame 30onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 30onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 30onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 30onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 31onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 31onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 32onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 32onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 32onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 33onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Frame 34Mouse.hide(); cursor_mc.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; cursor_mc.onMouseDown = function () { this.can_damage = true; }; cursor_mc.onMouseUp = function () { this.can_damage = false; };Instance of Symbol 812 MovieClip in Frame 34onClipEvent (load) { var i = 0; _root.control.kill = 0; } onClipEvent (enterFrame) { i++; if (random(50) == 0) { var enemy = attachMovie("enemy", "enemy" + i, i); enemy._x = Stage.width + enemy._width; enemy._y = random(250); enemy.onEnterFrame = function () { if (this._x < 0) { this.removeMovieClip(); } this._x = this._x - 5; if (_root.control.kill == 20) { _root.control.scene = _root.control.scene + 4; _root.gotoAndStop(_root.control.scene + _root.control.player); } }; } }Instance of Symbol 191 MovieClip "zero" in Frame 34onClipEvent (load) { HP = 64; orden3 = "ok"; orden4 = "no"; receive_damage = true; time_shield = 0; max_shield = 30; } onClipEvent (enterFrame) { if ((Key.isDown(38) && (!this.body.hitTest(_root.UPlat))) && (orden3 != "dead")) { this._y = this._y - 10; } else if ((Key.isDown(40) && (!this.body.hitTest(_root.DPlat))) && (orden3 != "dead")) { this._y = this._y - -10; } else if ((Key.isDown(39) && (!this.body.hitTest(_root.RWall))) && (orden3 != "dead")) { this._x = this._x - -10; } else if ((Key.isDown(37) && (!this.body.hitTest(_root.LWall))) && (orden3 != "dead")) { this._x = this._x - 10; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; damage = 0; receive_damage = false; } if (orden3 == "damage") { orden3 = "ok"; orden4 = "shield"; } if (orden4 == "shield") { receive_damage = false; time_shield--; this._alpha = 50; } if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (HP <= 0) { orden3 = "dead"; } if (orden3 == "dead") { if (!this.mario.hitTest(_root.Dplat)) { this._y = this._y - -1; this._x = this._x - -1; } HP = 0; gotoAndStop ("dead"); } if ((_y >= 250) && (orden3 == "dead")) { _root.gotoAndStop("gameover"); } }Frame 35Mouse.hide(); cursor_mc.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; cursor_mc.onMouseDown = function () { this.can_damage = true; }; cursor_mc.onMouseUp = function () { this.can_damage = false; };Frame 36Mouse.hide(); cursor_mc.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; cursor_mc.onMouseDown = function () { this.can_damage = true; }; cursor_mc.onMouseUp = function () { this.can_damage = false; };Instance of Symbol 829 MovieClip "zero" in Frame 36onClipEvent (load) { HP = 64; orden3 = "ok"; orden4 = "no"; receive_damage = true; time_shield = 0; max_shield = 30; } onClipEvent (enterFrame) { if ((Key.isDown(38) && (!this.body.hitTest(_root.UPlat))) && (orden3 != "dead")) { this._y = this._y - 10; } else if ((Key.isDown(40) && (!this.body.hitTest(_root.DPlat))) && (orden3 != "dead")) { this._y = this._y - -10; } else if ((Key.isDown(39) && (!this.body.hitTest(_root.RWall))) && (orden3 != "dead")) { this._x = this._x - -10; } else if ((Key.isDown(37) && (!this.body.hitTest(_root.LWall))) && (orden3 != "dead")) { this._x = this._x - 10; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; damage = 0; receive_damage = false; } if (orden3 == "damage") { orden3 = "ok"; orden4 = "shield"; } if (orden4 == "shield") { receive_damage = false; time_shield--; this._alpha = 50; } if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (HP <= 0) { orden3 = "dead"; } if (orden3 == "dead") { if (!this.mario.hitTest(_root.Dplat)) { this._y = this._y - -1; this._x = this._x - -1; } HP = 0; gotoAndStop ("dead"); } if ((_y >= 250) && (orden3 == "dead")) { _root.gotoAndStop("gameover"); } }Frame 37Mouse.hide(); cursor_mc.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; cursor_mc.onMouseDown = function () { this.can_damage = true; }; cursor_mc.onMouseUp = function () { this.can_damage = false; };Frame 38_root.control.kill = 0;Instance of Symbol 835 MovieClip "plataforms" in Frame 38onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 38onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 38onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 38onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 39onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 39onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 40onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 40onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 40onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 41onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 850 MovieClip "plataforms" in Frame 42onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 372 MovieClip "warning" in Frame 42onClipEvent (load) { _visible = false; }Instance of Symbol 559 MovieClip "zero" in Frame 42onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 42onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 42onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 43onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 43onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 44onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 44onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 44onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 45onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 861 MovieClip "plataforms" in Frame 46onClipEvent (load) { var i = 0; var ini_y = 0; var zero = this._parent.zero; var velX = 2; _root.control.kill = 0; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } i++; if (random(50) == 0) { var soldier = attachMovie("soldier", "soldier" + i, i); soldier._x = Math.random() * 500; soldier._y = 12; soldier.onEnterFrame = function () { if (_root.control.kill >= 20000) { _root.control.scene = _root.control.scene + 4; _root.gotoAndStop(_root.control.scene + _root.control.player); } }; } if (random(150) == 49) { var flamerain = attachMovie("flamerain", "flamerain" + i, i); flamerain._x = Math.random() * 500; flamerain._y = -250; flamerain.onEnterFrame = function () { flamerain._y = flamerain._y + 6; if (flamerain._y >= 50) { this.removeMovieClip(); } }; } }Instance of Symbol 559 MovieClip "zero" in Frame 46onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 46onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 46onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 47onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 47onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 48onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 48onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 48onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 49onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 889 MovieClip "plataforms" in Frame 50onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 372 MovieClip "warning" in Frame 50onClipEvent (load) { _visible = false; }Instance of Symbol 559 MovieClip "zero" in Frame 50onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 50onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 50onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 51onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 51onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 52onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 52onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 52onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 53onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 897 MovieClip "plataforms" in Frame 54onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if (((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) && (zero.orden3 != "dead")) { _x = (_x + velX); is_moving = true; } else if (((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) && (zero.orden3 != "dead")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 54onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 54onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 54onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 55onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 55onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 56onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 56onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 56onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 57onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 902 MovieClip "plataforms" in Frame 58onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if (((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) && (zero.orden3 != "dead")) { _x = (_x + velX); is_moving = true; } else if (((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) && (zero.orden3 != "dead")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 58onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 58onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 58onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 59onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 59onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 60onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 60onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 60onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 61onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 907 MovieClip "plataforms" in Frame 62onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if (((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) && (zero.orden3 != "dead")) { _x = (_x + velX); is_moving = true; } else if (((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) && (zero.orden3 != "dead")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 62onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 62onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 62onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 63onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 63onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 64onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 64onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 64onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 65onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 1098 MovieClip "plataforms" in Frame 66onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 372 MovieClip "warning" in Frame 66onClipEvent (load) { _visible = false; }Instance of Symbol 559 MovieClip "zero" in Frame 66onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 66onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 66onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 67onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 67onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 68onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 68onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 68onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 69onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Frame 70Mouse.hide(); cursor_mc.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; cursor_mc.onMouseDown = function () { this.can_damage = true; }; cursor_mc.onMouseUp = function () { this.can_damage = false; };Instance of Symbol 812 MovieClip in Frame 70onClipEvent (load) { var i = 0; _root.control.kill = 0; } onClipEvent (enterFrame) { i++; if (random(50) == 0) { var enemy = attachMovie("enemy", "enemy" + i, i); enemy._x = Stage.width + enemy._width; enemy._y = random(250); enemy.onEnterFrame = function () { if (this._x < 0) { this.removeMovieClip(); } this._x = this._x - 5; if (_root.control.kill == 30) { _root.control.scene = _root.control.scene + 4; _root.gotoAndStop(_root.control.scene + _root.control.player); } }; } else if (random(50) == 25) { var bomb = attachMovie("bomb", "bomb" + i, i); bomb._x = Stage.width + bomb._width; bomb._y = random(250); bomb.onEnterFrame = function () { if (this._x < 0) { this.removeMovieClip(); } this._x = this._x - 5; }; } }Instance of Symbol 191 MovieClip "zero" in Frame 70onClipEvent (load) { HP = 64; orden3 = "ok"; orden4 = "no"; receive_damage = true; time_shield = 0; max_shield = 30; } onClipEvent (enterFrame) { if ((Key.isDown(38) && (!this.body.hitTest(_root.UPlat))) && (orden3 != "dead")) { this._y = this._y - 10; } else if ((Key.isDown(40) && (!this.body.hitTest(_root.DPlat))) && (orden3 != "dead")) { this._y = this._y - -10; } else if ((Key.isDown(39) && (!this.body.hitTest(_root.RWall))) && (orden3 != "dead")) { this._x = this._x - -10; } else if ((Key.isDown(37) && (!this.body.hitTest(_root.LWall))) && (orden3 != "dead")) { this._x = this._x - 10; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; damage = 0; receive_damage = false; } if (orden3 == "damage") { orden3 = "ok"; orden4 = "shield"; } if (orden4 == "shield") { receive_damage = false; time_shield--; this._alpha = 50; } if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (HP <= 0) { orden3 = "dead"; } if (orden3 == "dead") { if (!this.mario.hitTest(_root.Dplat)) { this._y = this._y - -1; this._x = this._x - -1; } HP = 0; gotoAndStop ("dead"); } if ((_y >= 250) && (orden3 == "dead")) { _root.gotoAndStop("gameover"); } }Frame 71Mouse.hide(); cursor_mc.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; cursor_mc.onMouseDown = function () { this.can_damage = true; }; cursor_mc.onMouseUp = function () { this.can_damage = false; };Frame 72Mouse.hide(); cursor_mc.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; cursor_mc.onMouseDown = function () { this.can_damage = true; }; cursor_mc.onMouseUp = function () { this.can_damage = false; };Instance of Symbol 829 MovieClip "zero" in Frame 72onClipEvent (load) { HP = 64; orden3 = "ok"; orden4 = "no"; receive_damage = true; time_shield = 0; max_shield = 30; } onClipEvent (enterFrame) { if ((Key.isDown(38) && (!this.body.hitTest(_root.UPlat))) && (orden3 != "dead")) { this._y = this._y - 10; } else if ((Key.isDown(40) && (!this.body.hitTest(_root.DPlat))) && (orden3 != "dead")) { this._y = this._y - -10; } else if ((Key.isDown(39) && (!this.body.hitTest(_root.RWall))) && (orden3 != "dead")) { this._x = this._x - -10; } else if ((Key.isDown(37) && (!this.body.hitTest(_root.LWall))) && (orden3 != "dead")) { this._x = this._x - 10; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; damage = 0; receive_damage = false; } if (orden3 == "damage") { orden3 = "ok"; orden4 = "shield"; } if (orden4 == "shield") { receive_damage = false; time_shield--; this._alpha = 50; } if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (HP <= 0) { orden3 = "dead"; } if (orden3 == "dead") { if (!this.mario.hitTest(_root.Dplat)) { this._y = this._y - -1; this._x = this._x - -1; } HP = 0; gotoAndStop ("dead"); } if ((_y >= 250) && (orden3 == "dead")) { _root.gotoAndStop("gameover"); } }Frame 73Mouse.hide(); cursor_mc.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; cursor_mc.onMouseDown = function () { this.can_damage = true; }; cursor_mc.onMouseUp = function () { this.can_damage = false; };Instance of Symbol 1113 MovieClip "plataforms" in Frame 74onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 74onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 74onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 74onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 75onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 75onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 76onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 76onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 76onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 77onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 1117 MovieClip "plataforms" in Frame 78onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 78onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 78onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 78onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 79onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 79onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 80onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 80onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 80onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 81onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 1130 MovieClip "plataforms" in Frame 82onClipEvent (load) { var i = 0; var ini_y = 0; var zero = this._parent.zero; var velX = 2; _root.control.kill = 0; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } i++; if (_root.plataforms.boss.boss.summon) { var soldier = attachMovie("soldier", "soldier" + i, i); soldier._x = this.boss._x; soldier._y = 103; } }Instance of Symbol 372 MovieClip "warning" in Frame 82onClipEvent (load) { _visible = false; }Instance of Symbol 559 MovieClip "zero" in Frame 82onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 82onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 82onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 83onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 83onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 84onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 84onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 84onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 85onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 1136 MovieClip "plataforms" in Frame 86onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 86onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 86onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 86onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 87onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 87onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 88onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 88onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 88onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 89onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 1165 MovieClip "plataforms" in Frame 90onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden == "bash") && (zero.dir == "R")) && (moveXL)) && (zero.orden3 != "damage")) { _x = (_x + velX); } else if ((((zero.orden == "bash") && (zero.dir == "L")) && (moveXR)) && (zero.orden3 != "damage")) { _x = (_x - velX); } else { is_moving = false; } }Instance of Symbol 372 MovieClip "warning" in Frame 90onClipEvent (load) { _visible = false; }Instance of Symbol 559 MovieClip "zero" in Frame 90onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 90onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 90onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 348 MovieClip "zero" in Frame 91onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 91onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Instance of Symbol 710 MovieClip "zero" in Frame 92onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 92onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 92onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Instance of Symbol 752 MovieClip "zero" in Frame 93onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Frame 94bgm10.start(0, 255);Instance of Symbol 1197 MovieClip "plataforms" in Frame 94onClipEvent (load) { var ini_y = 0; var zero = this._parent.zero; var velX = 2; } onClipEvent (enterFrame) { this._parent.test12_txt.text = "YPosition: = " + _y; this._parent.test13_txt.text = "XPosition: = " + _x; plataform = zero.plataform; wall = zero.wall; target_y = plataform.target_y; if (!zero.moveY) { _y = (_y + zero.velY); } else if ((zero.moveY && (_y != ini_y)) && (zero.velY < 0)) { _y = (_y + (zero.velY / 2)); } if ((((((zero.velY == 0) && (zero.moveY)) && (zero.orden != "jump")) && (zero.orden != "fall")) && (zero.orden != "dash+fall")) && (zero.orden != "dash+jump")) { velY = (target_y - _y) / 20; _y = (_y + velY); zero._y = plataform._y + _y; } _x = (_x + zero.velX); if (((zero.dir == "L") && (zero.body.hitTest(wall))) && (wall.real_x < zero._x)) { moveXL = false; zero.wall_side = "R"; } else if (((zero.dir == "R") && (zero.body.hitTest(wall))) && (wall.real_x > zero._x)) { moveXR = false; zero.wall_side = "L"; } else if (zero.body.hitTest(wall) && (zero.orden3 == "damage")) { moveXR = (moveXL = false); } else if ((zero.orden3 == "null") || (zero.orden3 == "dead")) { moveXR = (moveXL = false); } else { moveXL = (moveXR = true); } if ((((Key.isDown(37) && (!Key.isDown(39))) && (moveXL)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x + velX); is_moving = true; } else if ((((Key.isDown(39) && (!Key.isDown(37))) && (moveXR)) && (zero.orden2 != "dash")) && (zero.orden3 != "damage")) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "L")) && (moveXL)) && (zero.can_dash)) { _x = (_x + velX); is_moving = true; } else if ((((zero.orden2 == "dash") && (zero.dir == "R")) && (moveXR)) && (zero.can_dash)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "L")) && (moveXR)) && (zero.can_damage)) { _x = (_x - velX); is_moving = true; } else if ((((zero.orden3 == "damage") && (zero.dir == "R")) && (moveXL)) && (zero.can_damage)) { _x = (_x + velX); is_moving = true; } else { is_moving = false; } }Instance of Symbol 559 MovieClip "zero" in Frame 94onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 7; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var atack_on = true; var max_atack = 16; var time_atack = 0; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -6; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (time_shot == 0)) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; tima_atack = 0; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (!Key.isDown(70)) { time_shot = 0; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 94onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 94onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Frame 95bgm10.start(0, 255);Instance of Symbol 348 MovieClip "zero" in Frame 95onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var cursor = this._parent.cursor_mc; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var weight = -6; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((Key.isDown(70) && (orden3 == "ok")) && (time_shot > 0)) { orden2 = "shot"; } else if ((!Key.isDown(70)) && (time_shot <= 0)) { orden2 = "nan"; time_shot = max_shot; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 95onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 10; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if (Key.isDown(70) && (zero.orden2 == "shot")) { this._visible = true; movile = true; } }Frame 96bgm10.start(0, 255);Instance of Symbol 710 MovieClip "zero" in Frame 96onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= -9) { velY = -9; } if ((orden3 == "damage") && (orden != "land")) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((orden2 == "shot") && (orden == "walk")) { gotoAndStop ("shot2"); name_frame = "shot2"; time_shot--; } if ((orden2 == "shot") && (orden == "grab")) { gotoAndStop ("shot3"); name_frame = "shot3"; time_shot--; } if ((orden2 == "shot") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("shot4"); name_frame = "shot4"; time_shot--; } } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var control = _root.control; var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 3; var max_dash = 30; var time_dash = max_dash; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = 0; var max_shield = 30; var time_shield = max_shield; var charge = 0; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 2; var velY = 0; var w = 2; var g = 10; var f = force; var force = 60; var max_fall = weight; var weight = -7; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; } onClipEvent (enterFrame) { this._parent.test.text = _name; this._parent.test2_txt.text = "orden2= " + orden2; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if (charge == 0) { this.char.gotoAndStop(1); } else if (charge < 60) { this.char.gotoAndStop(2); } else if (charge >= 60) { this.char.gotoAndStop(3); } if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if ((((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden2 != "shot")) && (orden3 == "ok")) { orden = "walk"; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if ((((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) && (orden2 != "shot")) { orden2 = "dash"; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(70) && ((((((orden == "stay") || (orden == "tired")) || (orden == "grab")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (charge == 0)) { time_shot = max_shot; } else if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } if ((Key.isDown(70) && (orden3 == "ok")) && (orden2 == "nan")) { charge++; } else if ((!Key.isDown(70)) && ((charge < 60) || (orden3 != "ok"))) { charge = 0; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; gotoAndStop ("grab_side"); } if ((orden == "grab") && ((orden2 != "atack") || (orden2 != "shot"))) { gotoAndStop ("grab"); name_frame = "grab"; } if (time_shot > 0) { orden2 = "shot"; } }Instance of Symbol 35 MovieClip [blast] "laser" in Frame 96onClipEvent (load) { var zero = _root.zero; var laserMoveSpeed = 20; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 3; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 400) || (this._x < 0)) { movile = false; this._visible = false; } if ((Key.isDown(70) && (zero.orden2 == "shot")) && (_root.blast._visible == false)) { this._visible = true; movile = true; } }Instance of Symbol 564 MovieClip "blast" in Frame 96onClipEvent (load) { var wall = undefined; var laserMoveSpeed = 20; var zero = _root.zero; var moveSpeed = 10; var laserCounter = 1; var movile = false; this._visible = false; var atk = 9; } onClipEvent (enterFrame) { if (!_root.zero.moveY) { _y = (_y + _root.zero.velY); } else if ((_root.zero.moveY && (_y != ini_y)) && (_root.zero.velY < 0)) { _y = (_y + (_root.zero.velY / 2)); } if (movile == false) { this._x = _root.zero._x; this._y = _root.zero._y - 20; dir = _root.zero.dir; } if (zero.orden != "grab") { if (dir == "R") { this._x = this._x + laserMoveSpeed; _xscale = 100; } else if (dir == "L") { this._x = this._x - laserMoveSpeed; _xscale = -100; } } else if (zero.orden == "grab") { if (dir == "R") { this._x = this._x - laserMoveSpeed; _xscale = -100; } else if (dir == "L") { this._x = this._x + laserMoveSpeed; _xscale = 100; } } if ((this._x > 480) || (this._x < 0)) { movile = false; this._visible = false; } if ((!Key.isDown(70)) && (zero.charge >= 60)) { this._visible = true; movile = true; zero.charge = 0; } if (this._visible) { zero.time_shot = 10; } }Frame 97bgm10.start(0, 255);Instance of Symbol 752 MovieClip "zero" in Frame 97onClipEvent (load) { function accions() { if (orden == "land") { velY = 0; f = 60; _y = (plataform._y + this._parent.plataforms._y); gotoAndStop ("land"); name_frame = "land"; } else if (((orden == "fall") || (orden == "dash+fall")) && (f == 60)) { velY = 0; f = 0; } if ((((orden == "jump") || (orden == "fall")) || (orden == "dash+jump")) || (orden == "dash+fall")) { f = f - w; velY = f / g; if ((((velY > 0) && ((orden == "jump") || (orden == "dash+jump"))) && (orden3 == "ok")) && (orden2 != "atack")) { gotoAndStop ("jump"); name_frame = "jump"; } else if (((velY <= 0) && ((orden == "fall") || (orden == "dash+fall"))) && (orden2 != "atack")) { gotoAndStop ("fall"); name_frame = "fall"; } } if (moveY) { _y = (_y - velY); } if (velY <= max_fall) { velY = max_fall; } if ((time >= 600) && (orden == "stay")) { orden = "sleep"; } if (under && (orden == "stay")) { orden = "under"; } if (((orden3 == "damage") && (orden != "land")) && (time_damage > 0)) { gotoAndStop ("damage"); name_frame = "damage"; time_damage--; } if ((orden3 == "damage") && (receive_damage)) { HP = HP - damage; _root.control.HP = _root.control.HP - damage; damage = 0; time_atack = 0; time_shot = 0; receive_damage = false; } if ((orden3 == "damage") && (orden == "jump")) { orden = "fall"; velY = 0; receive_damage = false; } if ((time_damage == 0) && (orden3 == "damage")) { orden3 = "ok"; orden4 = "shield"; } if ((orden4 == "shield") && (time_shield > 0)) { receive_damage = false; time_shield--; this._alpha = 50; } else if ((orden4 == "shield") && (time_shield <= 0)) { receive_damage = true; this._alpha = 100; orden4 = "no"; time_shield = max_shield; } if (orden3 == "ok") { if ((orden2 == "atack") && ((orden == "stay") || (orden == "tired"))) { gotoAndStop ("atack"); name_frame = "atack"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && ((orden == "jump") || (orden == "fall"))) { gotoAndStop ("atack3"); name_frame = "atack3"; time_atack--; } if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if ((orden2 == "atack") && (orden == "grab")) { gotoAndStop ("atack2"); name_frame = "atack2"; time_atack--; } if ((orden2 == "atack") && (orden == "walk")) { gotoAndStop ("atack4"); name_frame = "atack4"; time_atack--; } if (orden2 == "shot") { gotoAndStop ("shot"); name_frame = "shot"; time_shot--; } if ((time_shot <= 0) && (orden2 == "shot")) { orden2 = "nan"; } } if (HP >= max_HP) { HP = max_HP; } if (HP <= 0) { HP = 0; orden3 = "dead"; } if (orden3 == "dead") { gotoAndStop ("dead"); name_frame = "dead"; receive_damage = false; can_jump = false; HP = 0; if (!pies.hitTest(plataform)) { orden = "fall"; } else if (pies.hitTest(plataform)) { orden = "stay"; } } } function dash() { if ((orden2 == "dash") && (can_dash)) { scena.velX = 6; time_dash--; } else if (((orden == "stay") || (orden == "walk")) || (orden == "tired")) { scena.velX = 3; } else if (orden3 == "damage") { scena.velx = 2; } if ((time_dash == 0) && (orden2 == "dash")) { orden2 = "stop_dash"; } else if ((orden2 == "stop_dash") && (orden == "walk")) { orden2 = "nan"; } if ((orden2 == "stop_dash") && (orden == "stay")) { gotoAndStop ("stop_dash"); name_frame = "stop_dash"; } } stop(); var HP = _root.control.HP; var max_HP = 64; var damage = 0; var atk = 4; var max_dash = Infinity; var time_dash = max_dash; var max_atack = 29; var time_atack = 0; var atack_on = true; var max_damage = 35; var time_damage = max_damage; var max_shot = 20; var time_shot = max_shot; var max_shield = 30; var time_shield = max_shield; var dir = "R"; var scena = this._parent.plataforms; var posXL = 150; var posXR = 250; var time = 0; _x = 50; var plataform = undefined; var wall = undefined; var moveY = true; var ini_y = _y; var top_y = 84; var velX = 3; var velY = 0; var w = 2; var g = 10; var f = force; var force = 80; var weight = -5; var max_fall = weight; var can_jump = true; var receive_damage = true; var orden3 = "ok"; var orden4 = "no"; var under = false; } onClipEvent (enterFrame) { this._parent.test1_txt.text = "time= " + time; this._parent.test2_txt.text = "Y speed= " + velY; this._parent.test3_txt.text = "orden3= " + orden3; this._parent.test4_txt.text = "wall_side= " + wall_side; this._parent.test5_txt.text = "dir= " + dir; this._parent.test6_txt.text = "f_dir= " + f_dir; this._parent.test7_txt.text = "HP: " + HP; this._parent.test8_txt.text = "/" + max_HP; this._parent.test9_txt.text = "ver: 5.0"; if ((velY <= 0) || (orden3 != "ok")) { can_jump = false; } else if ((!Key.isDown(83)) && ((orden == "stay") || (orden3 == "ok"))) { can_jump = true; } if (((time_dash <= 0) && (Key.isDown(68))) || (orden3 != "ok")) { can_dash = false; } else if (!Key.isDown(68)) { can_dash = true; time_dash = max_dash; } if ((time_damage <= 0) && (orden3 == "damage")) { can_damage = false; } else if (orden3 != "damage") { can_damage = true; time_damage = max_damage; } if (orden3 == "ok") { receive_damage = true; } accions(); dash(); if (((orden == "stay") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("stay"); name_frame = "stay"; time++; } else if (((orden == "walk") && (orden2 == "nan")) && (orden3 == "ok")) { gotoAndStop ("walk"); name_frame = "walk"; } else if (((orden == "tired") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("tired"); name_frame = "tired"; } else if (((orden == "sleep") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("sleep"); name_frame = "sleep"; } else if (((orden == "under") && (orden2 == "nan")) && ((orden3 == "ok") || (orden3 == "null"))) { gotoAndStop ("under"); name_frame = "under"; } if (dir == "R") { targetX = posXL; } else if (dir == "L") { targetX = posXR; } velX = Math.round((targetX - _x) / 20); _x = (_x + velX); if ((Key.isDown(37) && (!Key.isDown(39))) && (orden3 == "ok")) { dir = "L"; f_dir = "L"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == 100) { _xscale = (_xscale * -1); } } else if ((Key.isDown(39) && (!Key.isDown(37))) && (orden3 == "ok")) { dir = "R"; f_dir = "R"; if (((((orden != "jump") && (orden != "fall")) && (orden != "dash+jump")) && (orden != "dash+fall")) && (orden3 == "ok")) { orden = "walk"; time = 0; } if (_xscale == -100) { _xscale = (_xscale * -1); } } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP >= 16)) { orden = "stay"; } else if (((((velY == 0) && (orden != "jump")) && (orden != "dash+jump")) && (orden != "land")) && (HP < 16)) { orden = "tired"; } if (Key.isDown(83) && (orden3 == "ok")) { orden = "jump"; } if (((_y < 130) && (velY >= 0)) || ((_y > 230) && (velY < 0))) { moveY = false; } else { moveY = true; } if (((!pies.hitTest(plataform)) && (velY <= 0)) && (orden3 != "damage")) { orden = "fall"; } else if (pies.hitTest(plataform) && (orden3 == "damage")) { orden = "stay"; } else { orden != "fall"; } if (((Key.isDown(68) && ((orden == "stay") || (orden == "walk"))) && (can_dash)) && (orden3 == "ok")) { orden2 = "dash"; time = 0; } else if ((!Key.isDown(68)) || (orden3 != "ok")) { orden2 = "nan"; } if ((((Key.isDown(65) && (((((orden == "stay") || (orden == "tired")) || (orden == "jump")) || (orden == "fall")) || (orden == "walk"))) && (orden3 == "ok")) && (orden2 == "nan")) && (atack_on)) { time_atack = max_atack; atack_on = false; } else if ((time_atack <= 0) && (orden2 == "atack")) { orden2 = "nan"; } if (!Key.isDown(65)) { atack_on = true; } if ((this.hitTest(plataform) && (orden2 == "dash")) && (orden != "land")) { gotoAndStop ("dash"); name_frame = "dash"; } if ((orden2 == "dash") && (orden == "jump")) { orden = "dash+jump"; } else if ((orden2 == "dash") && (orden == "fall")) { orden = "dash+fall"; } if ((((!Key.isDown(37)) && (!Key.isDown(39))) || (orden3 == "dead")) || (orden3 == "null")) { f_dir = null; } if ((((body.hitTest(wall) && (velY < 0)) && (f_dir != wall_side)) && (f_dir != null)) && (!Key.isDown(83))) { orden = "grab"; velY = -1; f = 60; _xscale = ((dir == "L") ? 100 : -100); } else if (((body.hitTest(wall) && (f_dir != wall_side)) && (f_dir != null)) && (Key.isDown(83))) { orden = "jump"; } if (orden == "grab") { gotoAndStop ("grab"); name_frame = "grab"; } if (time_atack > 0) { orden2 = "atack"; } }Frame 98Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); };Frame 99Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); };Frame 100Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); };Frame 101Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); };Instance of Symbol 1248 MovieClip in Frame 101onClipEvent (enterFrame) { if (Key.isDown(32)) { play(); } }Frame 102Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); };Instance of Symbol 1266 MovieClip in Frame 102onClipEvent (enterFrame) { if (Key.isDown(32)) { play(); } }Frame 103Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); };Instance of Symbol 1308 MovieClip in Frame 103onClipEvent (enterFrame) { if (Key.isDown(32)) { play(); } }Frame 104Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; fina.start(); fina.onSoundComplete = function () { finb.start(0, 255); };Frame 105Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); };Frame 106Mouse.hide(); cursor.onMouseMove = function () { this._x = _xmouse; this._y = _ymouse; updateAfterEvent(); }; bgm00.stop();Instance of Symbol 1331 MovieClip in Frame 106onClipEvent (load) { stop(); } onClipEvent (enterFrame) { if (_root.control.lng == "eng") { gotoAndStop (1); } else if (_root.control.lng == "esp") { gotoAndStop (2); } }Symbol 11 MovieClip Frame 25stop();Symbol 12 MovieClip [bomb] Frame 1stop();Instance of Symbol 3 MovieClip in Symbol 12 MovieClip [bomb] Frame 1onClipEvent (load) { var zero = _root.zero; var cursor = _root.cursor_mc; } onClipEvent (enterFrame) { if (cursor.hitTest(this) && (cursor.can_damage)) { this._parent.gotoAndStop(2); cursor.can_damage = false; } if (zero.hitTest(this)) { zero.damage = 6; zero.orden3 = "damage"; this._parent.gotoAndStop(2); } }Symbol 12 MovieClip [bomb] Frame 2stop();Symbol 23 MovieClip Frame 27gotoAndPlay (1);Symbol 29 MovieClip [enemy] Frame 1stop();Instance of Symbol 23 MovieClip "koopa2" in Symbol 29 MovieClip [enemy] Frame 1onClipEvent (load) { var zero = _root.zero; var cursor = _root.cursor_mc; var HP = 10; var can_receive = true; var count = 0; } onClipEvent (enterFrame) { this.onEnterFrame = function () { if (HP <= 0) { _root.control.kill++; this._parent.gotoAndStop(2); this._parent._alpha = this._parent._alpha - 1; } if (this._parent._alpha <= 0) { this._parent._visible = false; } }; if (((zero.body.hitTest(this) && (HP > 0)) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 3; zero.orden3 = "damage"; } else if (((zero.hitTest(this) && (zero.orden2 == "atack")) && (can_receive)) && (HP > 0)) { HP = HP - (zero.atack - 1); can_receive = false; } else if ((!zero.hitTest(this)) && (HP > 0)) { can_receive = true; } if (cursor.hitTest(this) && (cursor.can_damage)) { HP = HP - 0.5; } if (dir == "up") { this._parent._y = this._parent._y + 1; count++; } if ((dir == "up") && (count >= 120)) { dir = "down"; count = 0; } if (dir == "down") { this._parent._y = this._parent._y - 1; count++; } if ((dir == "down") && (count >= 120)) { dir = "up"; count = 0; } }Instance of Symbol 25 MovieClip in Symbol 29 MovieClip [enemy] Frame 1onClipEvent (load) { this._visible = false; }Instance of Symbol 28 MovieClip in Symbol 29 MovieClip [enemy] Frame 2onClipEvent (enterFrame) { this._parent._alpha = this._parent._alpha - 1; if (this._alpha <= 0) { this._parent._visible = false; delete this.onEnterFrame; } }Instance of Symbol 32 MovieClip in Symbol 33 MovieClip [flamerain] Frame 1onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 35 MovieClip [blast] in Symbol 52 MovieClip Frame 39onClipEvent (enterFrame) { if (_root.zero.hitTest(this) && (zero.receive_damage)) { _root.zero.damage = 6; _root.zero.orden3 = "damage"; } }Symbol 52 MovieClip Frame 40gotoAndPlay (38);Symbol 64 MovieClip Frame 1stop();Instance of Symbol 61 MovieClip in Symbol 64 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; control = _root.control; } onClipEvent (enterFrame) { if (zero.body.hitTest(this) && (this._parent._visible)) { zero.HP = zero.HP + 8; control.HP = control.HP + 8; this._parent.gotoAndStop(2); } }Symbol 65 MovieClip Frame 107_root.control.kill = _root.control.kill + 400; stop();Instance of Symbol 64 MovieClip in Symbol 65 MovieClip Frame 107onClipEvent (load) { _visible = false; num = random(100); } onClipEvent (enterFrame) { if (num <= 15) { _visible = true; } }Symbol 68 MovieClip Frame 95stop(); _root.control.kill = _root.control.kill + 400;Instance of Symbol 64 MovieClip in Symbol 68 MovieClip Frame 95onClipEvent (load) { _visible = false; num = random(100); } onClipEvent (enterFrame) { if (num <= 10) { _visible = true; } }Symbol 70 MovieClip [soldier] Frame 1stop();Instance of Symbol 36 MovieClip "range" in Symbol 70 MovieClip [soldier] Frame 1onClipEvent (load) { this._visible = false; }Instance of Symbol 53 MovieClip in Symbol 70 MovieClip [soldier] Frame 1onClipEvent (load) { var zero = _root.zero; var cursor = _root.cursor_mc; var wall = undefined; var plataform = undefined; var laser = _root.laser; var tache = _root.tache; var tache2 = _root.tache2; var blast = _root.blast; var HP = 9; var can_receive = true; var num = 0; } onClipEvent (enterFrame) { real_x = _root.plataforms._x + this._parent._x; proximity = real_x - zero._x; _root.test15_txt.text = "Enemy proximity: = " + proximity; if (this._parent.hitTest(this._parent._parent.plataform) && (!zero.hitTest(this._parent.range))) { if (zero.orden3 == "ok") { if (((zero._x > real_x) && (HP > 0)) && (can_receive)) { if (!this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x + 1; } else if (this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x - 10; } if (this._parent._xscale == 100) { this._parent._xscale = this._parent._xscale * -1; } } else if (((zero._x < real_x) && (HP > 0)) && (can_receive)) { if (!this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x - 1; } else if (this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x + 10; } if (this._parent._xscale == -100) { this._parent._xscale = this._parent._xscale * -1; } } } } this.onEnterFrame = function () { if (HP <= 0) { this._alpha = this._alpha - 1; } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((zero.body.hitTest(this) && (HP > 0)) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 5; zero.orden3 = "damage"; } else if (((zero.hitTest(this) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - zero.atk; can_receive = false; } if (zero.hitTest(this._parent.range)) { gotoAndStop (3); can_receive = true; } else if (((!zero.hitTest(this)) || (!zero.hitTest(this._parent.range))) && (HP > 0)) { can_receive = true; gotoAndStop (1); } if (HP <= 0) { _root.control.kill++; this._parent.range.num2++; this._parent.gotoAndStop(2); } if (((laser.hitTest(this) && (laser._visible)) && (HP > 0)) && (can_receive)) { HP = HP - laser.atk; can_receive = false; laser.movile = false; laser._visible = false; } if (((blast.hitTest(this) && (blast._visible)) && (HP > 0)) && (can_receive)) { HP = HP - blast.atk; can_receive = false; } if (((tache.hitTest(this) && (tache._visible)) && (HP > 0)) && (can_receive)) { HP = HP - tache.atk; can_receive = false; tache.movile = false; tache._visible = false; } if (((tache2.hitTest(this) && (tache2._visible)) && (HP > 0)) && (can_receive)) { HP = HP - tache2.atk; can_receive = false; } }Instance of Symbol 69 MovieClip "die" in Symbol 70 MovieClip [soldier] Frame 2onClipEvent (load) { num = Math.random(); } onClipEvent (enterFrame) { if (num <= 0.5) { this.gotoAndStop(1); } else if (num > 0.5) { this.gotoAndStop(2); } }Symbol 81 Buttonon (release) { getURL ("http://www.newgrounds.com", "blank"); }Symbol 87 Buttonon (release) { _root.control.lng = "eng"; _root.play(); }Symbol 90 Buttonon (release) { _root.control.lng = "esp"; _root.play(); }Symbol 91 MovieClip Frame 1_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded < 100) { bar._xscale = PercentLoaded; } else { gotoAndStop ("loaded"); }Symbol 91 MovieClip Frame 2gotoAndPlay (1);Symbol 147 MovieClip Frame 1stop();Symbol 147 MovieClip Frame 2stop();Symbol 179 MovieClip Frame 1stop();Instance of Symbol 173 MovieClip in Symbol 179 MovieClip Frame 1onClipEvent (enterFrame) { stop(); }Instance of Symbol 179 MovieClip "gun" in Symbol 180 MovieClip Frame 1onClipEvent (load) { zero = _root.cursor_mc; range = this._parent.range; } onClipEvent (enterFrame) { real_x = _root.zero._x + this._x; real_y = _root.zero._y + this._y; xDist = real_x - zero._x; yDist = real_y - zero._y; angle = Math.atan2(yDist, xDist) / (Math.PI/180); _rotation = angle; onMouseDown = function () { gotoAndStop (2); }; onMouseUp = function () { gotoAndStop (1); }; }Symbol 184 MovieClip Frame 1stop();Symbol 191 MovieClip Frame 1stop();Instance of Symbol 147 MovieClip in Symbol 191 MovieClip Frame 1onClipEvent (enterFrame) { if (this._parent._alpha == 50) { gotoAndStop (2); } else if (this._parent._alpha == 100) { gotoAndStop (1); } }Instance of Symbol 190 MovieClip in Symbol 191 MovieClip Frame 2onClipEvent (enterFrame) { this._x--; }Symbol 199 MovieClip Frame 2stop();Symbol 204 MovieClip Frame 17stop();Instance of Symbol 25 MovieClip in Symbol 214 MovieClip Frame 254onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "hace un corto, corto\ntiempo, sucecido algo\nfuera de lo normal..."; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Once, short ago,\nhere it was a strange\nsucess on set...."; } }Instance of Symbol 25 MovieClip in Symbol 214 MovieClip Frame 428onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "en un flash que\n no tenia tanto\nchiste"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "on a very bad done\nflash on the net..."; } }Instance of Symbol 25 MovieClip in Symbol 214 MovieClip Frame 568onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "en los cuales dos\npersonajes escapan..."; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "where there was\ntwo scaping\ngaming heroes"; } }Instance of Symbol 25 MovieClip in Symbol 214 MovieClip Frame 727onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "cuyas alegrias los\ncegaban del peligro\natras..."; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "o I forgot to\nmention that they\nwas pursued?"; } }Instance of Symbol 25 MovieClip in Symbol 214 MovieClip Frame 1109onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "ya que alguien tiene\n planeado un plan para\nnuestros amigos"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "wario has some\nbad intentions to\nsendthem down"; } }Instance of Symbol 25 MovieClip in Symbol 214 MovieClip Frame 1280onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "y ese plan era\nmandarlos a volar...\n sin exito XD"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "but lucky, it wasn\u00B4t\nsucceful beacuse\n they will fall in..."; } }Symbol 214 MovieClip Frame 2089_root.gotoAndStop(3);Symbol 217 Buttonon (release) { _root.mov.gotoAndStop(2089); visible = false; }Symbol 220 MovieClip Frame 1if (_root.control.lng == "eng") { stop(); }Symbol 220 MovieClip Frame 2if (_root.control.lng == "esp") { stop(); }Symbol 221 Buttonon (release) { _root.gotoAndStop(4); }Symbol 224 Buttonon (release) { _root.gotoAndStop(5); }Symbol 227 MovieClip Frame 1if (_root.control.lng == "eng") { stop(); }Symbol 227 MovieClip Frame 2if (_root.control.lng == "esp") { stop(); }Symbol 228 Buttonon (release) { var savefile = SharedObject.getLocal("MMBrosX.sol"); if (savefile.data.saved == undefined) { _root.control.kill = 0; _root.control.boss = 0; } else if (savefile.data.saved != undefined) { _root.control.boss1 = savefile.data.boss1; _root.control.boss2 = savefile.data.boss2; _root.control.boss3 = savefile.data.boss3; _root.control.boss4 = savefile.data.boss4; _root.control.kill = savefile.data.kill; _root.control.boss = savefile.data.boss; _root.control.lng = savefile.data.lng; _root.control.secret1 = savefile.data.secret; _root.control.secret2 = savefile.data.minigame; _root.control.gameclear1 = savefile.data.game; } _root.gotoAndStop(12); }Symbol 231 MovieClip Frame 1if (_root.control.lng == "eng") { stop(); }Symbol 231 MovieClip Frame 2if (_root.control.lng == "esp") { stop(); }Symbol 232 Buttonon (release) { _root.gotoAndStop(6); }Symbol 239 Buttonon (release) { _quality = "LOW"; }Symbol 240 Buttonon (release) { _quality = "HIGH"; }Symbol 241 Buttonon (release) { _quality = "MEDIUM"; }Symbol 242 Buttonon (release) { _root.control.lng = "esp"; }Symbol 243 Buttonon (release) { _root.control.lng = "eng"; }Symbol 248 Buttonon (release) { _root.gotoAndStop(3); }Symbol 253 Buttonon (release) { if (_root.pass.text != "pispirripicuachi") { _root.pass.text = "error, type here again"; } else if (_root.pass.text == "pispirripicuachi") { _root.control.secret1 = true; var savefile = SharedObject.getLocal("MMBrosX.sol"); if (savefile.data.saved == undefined) { _root.control.kill = 0; _root.control.boss = 0; } else if (savefile.data.saved != undefined) { _root.control.boss1 = savefile.data.boss1; _root.control.boss2 = savefile.data.boss2; _root.control.boss3 = savefile.data.boss3; _root.control.boss4 = savefile.data.boss4; _root.control.kill = savefile.data.kill; _root.control.boss = savefile.data.boss; } _root.gotoAndStop(12); } }Symbol 257 MovieClip Frame 1function camControl() { parentColor.setTransform(camColor.getTransform()); var _local4 = sX / this._width; var _local3 = sY / this._height; _parent._x = cX - (this._x * _local4); _parent._y = cY - (this._y * _local3); _parent._xscale = 100 * _local4; _parent._yscale = 100 * _local3; } function resetStage() { var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; parentColor.setTransform(_local2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } this._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage;Instance of Symbol 258 MovieClip in Symbol 259 MovieClip Frame 1onClipEvent (load) { with (this) { _visible = false; } }Instance of Symbol 259 MovieClip in Symbol 260 MovieClip Frame 1onClipEvent (load) { var radio = (_parent._width / 2); var ini_y = _parent._y; var zero = this._parent._parent._parent.zero; var padre = this._parent._parent; var target01 = (_parent.target01 - (_parent._y + this.padre._y)); var target02 = (_parent.target02 - (_parent._y + this.padre._y)); } onClipEvent (enterFrame) { _parent.real_x = padre._x + _parent._x; if (_parent.doble_target) { if (zero._x < _parent.real_x) { _parent.target_y = target01; } else { _parent.target_y = target02; } } else { _parent.target_y = _parent.target01 - (_parent._y + this.padre._y); } if (zero.pies.hitTest(this)) { zero.plataform = _parent; } if (zero.pies.hitTest(zero.plataform) && (zero.velY < 0)) { zero.orden = "land"; } }Instance of Symbol 261 MovieClip in Symbol 262 MovieClip Frame 1onClipEvent (load) { var zero = this._parent._parent._parent.zero; var parent = _parent; var scena = this._parent._parent; _visible = false; } onClipEvent (enterFrame) { real_x = scena._x + parent._x; if (zero.body.hitTest(this)) { zero.wall = this; } }Instance of Symbol 259 MovieClip in Symbol 263 MovieClip Frame 1onClipEvent (load) { var zero = this._parent._parent.zero; var scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if ((zero.hitTest(this) && (zero.dir == "L")) || ((zero.hitTest(this) && (zero.orden3 == "damage")) && (zero.dir == "R"))) { scene.velX = scene.velX * 0; } else if (zero.hitTest(this) && (zero.dir == "R")) { if (zero.orden2 != "dash") { scene.velX = 2; } else if ((zero.orden2 == "dash") || (zero.orden == "dash+jump")) { scene.velX = 5; } } }Symbol 277 MovieClip Frame 14stop();Symbol 282 MovieClip Frame 1_root.zero._visible = false; _root.Hbar._visible = false;Instance of Symbol 152 MovieClip in Symbol 282 MovieClip Frame 1onClipEvent (enterFrame) { _x = (_x+1); _y = (_y+1); }Symbol 282 MovieClip Frame 411stop(); if (((_root.zero.orden3 != "damage") && (_root.zero.orden3 != "dead")) || (_root.zero == "null")) { _root.zero.orden3 = "ok"; } _root.zero._visible = true; _root.Hbar._visible = true;Instance of Symbol 260 MovieClip in Symbol 283 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 259 MovieClip in Symbol 283 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent.zero; } onClipEvent (enterFrame) { _visible = false; if (zero.hitTest(this)) { _root.gotoAndStop(7); } }Symbol 310 MovieClip Frame 8stop(); this._parent.orden = "stay";Symbol 315 MovieClip Frame 40stop();Symbol 322 MovieClip Frame 101_root.gotoAndStop("gameover");Symbol 343 MovieClip Frame 80gotoAndPlay (21);Instance of Symbol 25 MovieClip "pies" in Symbol 348 MovieClip Frame 1onClipEvent (load) { _alpha = 0; }Instance of Symbol 25 MovieClip "body" in Symbol 348 MovieClip Frame 1onClipEvent (load) { _alpha = 0; }Instance of Symbol 178 MovieClip in Symbol 365 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; stop(); } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 4; zero.orden3 = "damage"; } }Symbol 365 MovieClip Frame 23_root.plataforms.boss.boss.orden = "move";Symbol 366 MovieClip Frame 1stop();Symbol 367 MovieClip Frame 1stop();Instance of Symbol 366 MovieClip "boss" in Symbol 367 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; laser = _root.laser; blast = _root.blast; HP = 32; orden = "stay"; orden2 = "receive"; can_receive = true; timer = 0; num = 0; } onClipEvent (enterFrame) { this.onEnterFrame = function () { _root.Boss_meter.gotoAndStop(HP + 1); if (HP <= 0) { _root.bgm09.stop(); _root.bgm00.start(0, 255); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((this.hitTest(zero) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - (zero.atk + 1); orden2 = "shielded"; } else if ((laser.hitTest(this) && (can_receive)) && (laser._visible)) { HP = HP - (laser.atk - 1); orden2 = "shielded"; } else if ((blast.hitTest(this) && (can_receive)) && (blast._visible)) { HP = HP - (blast.atk - 1); orden2 = "shielded"; } else if (orden2 == "receive") { can_receive = true; shield = 0; this._alpha = 100; } if ((orden2 == "shielded") && (shield < 60)) { shield++; this._alpha = 50; can_receive = false; } else if ((orden2 == "shielded") && (shield >= 60)) { orden2 = "receive"; } if (orden == "move") { gotoAndStop (1); timer++; real_x = _root.plataforms._x + this._parent._x; if (this._parent.hitTest(this._parent._parent.plataform)) { if (zero.orden3 == "ok") { if ((zero._x > real_x) && (HP > 0)) { if (!this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x + 2; } else if (this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x - 10; } if (this._parent._xscale == 100) { this._parent._xscale = this._parent._xscale * -1; } } else if ((zero._x < real_x) && (HP > 0)) { if (!this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x - 2; } else if (this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x + 10; } if (this._parent._xscale == -100) { this._parent._xscale = this._parent._xscale * -1; } } } } } if (timer == 60) { orden = "atack"; timer = 0; } if (orden == "atack") { gotoAndStop (2); } if (HP <= 0) { _root.bgm09.stop(); _root.bgm00.start(0, 255); _root.plataforms.boss.gotoAndStop(2); _root.Boss_meter._visible = false; } }Instance of Symbol 259 MovieClip in Symbol 367 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; } onClipEvent (enterFrame) { _visible = false; if ((zero.body.hitTest(this) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 4; zero.orden3 = "damage"; } }Symbol 367 MovieClip Frame 2stop(); _root.Boss_meter._visible = false;Instance of Symbol 260 MovieClip in Symbol 368 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 259 MovieClip in Symbol 368 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent.zero; scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if ((zero.hitTest(this) && (Key.isDown(39))) && (_root.Boss_meter._visible)) { scene.velX = 0; } if (((zero.hitTest(this) && (zero.orden3 == "damage")) && (_root.Boss_meter._visible)) && (zero.dir == "L")) { scene.velX = 0; } if (zero.hitTest(this) && (_root.Boss_meter._visible == false)) { _root.gotoAndStop(8); } }Instance of Symbol 259 MovieClip in Symbol 368 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Symbol 372 MovieClip Frame 1stop(); _root.Boss_meter._visible = false;Symbol 372 MovieClip Frame 2_root.bgm00.stop(); _root.bgm02.stop(); _root.bgm03.stop(); _root.bgm04.stop(); _root.bgm05.stop(); _root.bgm06.stop(); _root.bgm07.stop();Symbol 372 MovieClip Frame 3_root.war.start();Symbol 372 MovieClip Frame 129zero = this._parent.zero; zero.orden3 = "ok";Symbol 372 MovieClip Frame 130stop(); this._parent.Boss_meter._visible = true; this._parent.HBar._alpha = 100; _root.zero.orden3 = "ok"; _root.plataforms.boss.boss.orden = "move"; _root.bgm09.start(0, 255);Symbol 390 MovieClip Frame 14stop();Symbol 399 MovieClip Frame 548_root.gotoAndStop(9);Symbol 406 MovieClip Frame 90stop();Instance of Symbol 64 MovieClip in Symbol 406 MovieClip Frame 90onClipEvent (load) { _visible = false; num = random(100); } onClipEvent (enterFrame) { if (num <= 10) { _visible = true; } }Symbol 408 MovieClip Frame 10gotoAndPlay (2);Symbol 408 MovieClip Frame 12gotoAndPlay (1);Symbol 408 MovieClip Frame 25gotoAndPlay (1);Symbol 409 MovieClip Frame 1stop();Instance of Symbol 408 MovieClip "mariobot" in Symbol 409 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var cursor = _root.cursor_mc; var wall = undefined; var plataform = undefined; var laser = _root.laser; var blast = _root.blast; var HP = 9; var can_receive = true; } onClipEvent (enterFrame) { real_x = _root.plataforms._x + this._parent._x; proximity = real_x - zero._x; _root.test15_txt.text = "Enemy proximity: = " + proximity; if (this._parent.hitTest(this._parent._parent.plataform)) { if (zero.orden3 == "ok") { if (((zero._x > real_x) && (HP > 0)) && (can_receive)) { if (!this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x + 2; } else if (this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x - 10; } if (this._parent._xscale == 150) { this._parent._xscale = this._parent._xscale * -1; } } else if (((zero._x < real_x) && (HP > 0)) && (can_receive)) { if (!this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x - 2; } else if (this.hitTest(this._parent._parent.wall)) { this._parent._x = this._parent._x + 10; } if (this._parent._xscale == -150) { this._parent._xscale = this._parent._xscale * -1; } } } } this.onEnterFrame = function () { if (HP <= 0) { this._parent.gotoAndStop(2); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((zero.body.hitTest(this) && (HP > 0)) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 5; zero.orden3 = "damage"; } else if (((zero.hitTest(this) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - zero.atk; can_receive = false; gotoAndPlay (25); if ((zero._x > real_x) && (HP > 0)) { this._parent._x = this._parent._x - 30; } else if ((zero._x < real_x) && (HP > 0)) { this._parent._x = this._parent._x + 30; } } else if ((!zero.hitTest(this)) && (HP > 0)) { can_receive = true; } if (HP <= 0) { gotoAndStop (13); } if ((laser.hitTest(this) && (laser._visible)) && (HP > 0)) { HP = HP - laser.atk; can_receive = false; laser.movile = false; laser._visible = false; gotoAndPlay (12); } if ((blast.hitTest(this) && (blast._visible)) && (HP > 0)) { HP = HP - blast.atk; can_receive = false; gotoAndPlay (12); } }Instance of Symbol 260 MovieClip in Symbol 410 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 259 MovieClip in Symbol 410 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent.zero; scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if (zero.hitTest(this)) { _root.gotoAndStop(10); } }Symbol 415 MovieClip Frame 1stop();Symbol 437 MovieClip Frame 20gotoAndPlay (9);Symbol 443 MovieClip Frame 17gotoAndPlay (5);Symbol 446 MovieClip Frame 8this._parent.orden = "stay";Symbol 453 MovieClip Frame 21gotoAndPlay (5);Symbol 457 MovieClip Frame 8this._parent.orden = "stay"; this._parent.orden2 = "nan";Symbol 464 MovieClip Frame 24gotoAndPlay (9);Symbol 506 MovieClip Frame 181stop(); _root.gotoAndStop("gameover");Symbol 521 MovieClip Frame 12stop();Symbol 530 MovieClip Frame 16stop();Instance of Symbol 25 MovieClip "pies" in Symbol 559 MovieClip Frame 1onClipEvent (load) { _alpha = 0; }Instance of Symbol 25 MovieClip "body" in Symbol 559 MovieClip Frame 1onClipEvent (load) { _alpha = 0; }Symbol 564 MovieClip Frame 9gotoAndStop (4);Instance of Symbol 260 MovieClip in Symbol 565 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 259 MovieClip in Symbol 565 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent.zero; scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if ((zero.hitTest(this) && (Key.isDown(39))) && (_root.Boss_meter._visible)) { scene.velX = 0; } if (((zero.hitTest(this) && (zero.orden3 == "damage")) && (_root.Boss_meter._visible)) && (zero.dir == "L")) { scene.velX = 0; } if (zero.hitTest(this) && (_root.Boss_meter._visible == false)) { _root.gotoAndStop(11); } }Instance of Symbol 259 MovieClip in Symbol 565 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Symbol 593 MovieClip Frame 258stop();Instance of Symbol 25 MovieClip in Symbol 593 MovieClip Frame 258onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Zero: que paso mario...\n \u00BFatorado?"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Zero: what\u00B4s up man?\n stucked? hehehe...."; } }Symbol 593 MovieClip Frame 279stop();Instance of Symbol 25 MovieClip in Symbol 593 MovieClip Frame 279onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Mario: haha, que gracioso\naora sakame dde aqui\ncon un c*****do! "; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Mario: yeah yeah, funny\nnow get me outta here\nis f**king stinky here!"; } }Instance of Symbol 582 MovieClip in Symbol 593 MovieClip Frame 280onClipEvent (load) { timer = 160; } onClipEvent (enterFrame) { timer--; if (timer <= 0) { this._parent.play(); } }Symbol 593 MovieClip Frame 408stop();Instance of Symbol 25 MovieClip in Symbol 593 MovieClip Frame 408onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Yoshi: AYUDA, AYUDA!\nel enemigo nos\ntiene rodeados!"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Yoshi: HELP! HELP!\nthe enemy is\ndevouring us..."; } }Symbol 593 MovieClip Frame 415stop();Instance of Symbol 25 MovieClip in Symbol 593 MovieClip Frame 415onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Mario: O no, ese yoshi...\nZero:casi lo matan por \ndios!!"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Mario: O no! that yoshi...\nZero:is almost dead\nby god..."; } }Symbol 593 MovieClip Frame 422stop();Instance of Symbol 25 MovieClip in Symbol 593 MovieClip Frame 422onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Yoshi: !!! ustedes...\nustedes son la \nayuda que samus dijo"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Yoshi: !!! you...\nyoure the help\nthat samus tell about..."; } }Symbol 593 MovieClip Frame 427stop();Instance of Symbol 25 MovieClip in Symbol 593 MovieClip Frame 427onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Yoshi: !!! por favor\nayudenos...\nson nuestra esperanza\ncontra BOWSER..."; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Yoshi: !!! please\nhelp, you are\nour last hope...\nagainst BOWSER!..."; } }Symbol 593 MovieClip Frame 432stop();Instance of Symbol 25 MovieClip in Symbol 593 MovieClip Frame 432onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Yoshi: (muriendo)..."; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Yoshi: (diyng)....."; } }Symbol 593 MovieClip Frame 590stop();Instance of Symbol 25 MovieClip in Symbol 593 MovieClip Frame 590onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Mario: mugre zero,\nhaber a que horas \n me sacas de aqui?\nZero:cuando se me antoje\ny digas por favor!"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Mario: dude, when the f**k\ndo you gonna free me?\nZero:when you stop bitchin\nand say please"; } }Symbol 593 MovieClip Frame 632_root.gotoAndStop(12);Symbol 595 Buttonon (release) { _root.control.scene = 14; _root.control.HP = 64; _root.gotoAndStop(13); }Symbol 599 Buttonon (release) { _root.control.scene = 30; _root.control.HP = 64; _root.gotoAndStop(13); }Symbol 600 Buttonon (release) { _root.control.scene = 46; _root.control.HP = 64; _root.gotoAndStop(13); }Symbol 604 Buttonon (release) { _root.control.scene = 54; _root.control.HP = 64; _root.gotoAndStop(13); }Symbol 609 Buttonon (release) { savefile.data.saved = "ok"; savefile.data.level = _root.level; savefile.data.boss1 = _root.control.boss1; savefile.data.boss2 = _root.control.boss2; savefile.data.boss3 = _root.control.boss3; savefile.data.boss4 = _root.control.boss4; savefile.data.lng = _root.control.lng; savefile.data.secret = _root.control.secret1; savefile.data.minigame = _root.control.secret2; savefile.flush(); }Symbol 612 Buttonon (release) { if (_root.control.boss5 == "not yet") { _root.control.scene = 70; _root.control.HP = 64; _root.gotoAndStop(13); } else if (_root.control.boss5 == "clear") { _root.control.scene = 86; _root.control.HP = 64; _root.gotoAndStop(13); } else { _root.gotoAndStop(3); } }Symbol 614 Buttonon (release) { _root.control.player = 0; if ((_root.control.scene >= 14) && (_root.control.scene <= 25)) { _root.bgm02.start(0, 255); } if ((_root.control.scene >= 30) && (_root.control.scene <= 41)) { _root.bgm03.start(0, 255); } if ((_root.control.scene >= 45) && (_root.control.scene <= 49)) { _root.bgm04.start(0, 255); } if ((_root.control.scene >= 54) && (_root.control.scene <= 65)) { _root.bgm05.start(0, 255); } if ((_root.control.scene >= 70) && (_root.control.scene <= 81)) { _root.bgm06.start(0, 255); } if ((_root.control.scene >= 86) && (_root.control.scene <= 93)) { _root.bgm07.start(0, 255); } _root.gotoAndStop(_root.control.scene + _root.control.player); }Symbol 615 Buttonon (release) { _root.control.player = 1; if ((_root.control.scene < 14) && (_root.control.scene > 25)) { _root.bgm02.start(0, 255); } if ((_root.control.scene < 30) && (_root.control.scene > 41)) { _root.bgm03.start(0, 255); } if ((_root.control.scene > 14) && (_root.control.scene < 25)) { _root.bgm02.start(0, 255); } if ((_root.control.scene > 30) && (_root.control.scene < 41)) { _root.bgm03.start(0, 255); } if ((_root.control.scene >= 14) && (_root.control.scene <= 25)) { _root.bgm02.start(0, 255); } if ((_root.control.scene >= 30) && (_root.control.scene <= 41)) { _root.bgm03.start(0, 255); } if ((_root.control.scene >= 45) && (_root.control.scene <= 49)) { _root.bgm04.start(0, 255); } if ((_root.control.scene >= 54) && (_root.control.scene <= 65)) { _root.bgm05.start(0, 255); } if ((_root.control.scene >= 70) && (_root.control.scene <= 81)) { _root.bgm06.start(0, 255); } if ((_root.control.scene >= 86) && (_root.control.scene <= 93)) { _root.bgm07.start(0, 255); } _root.gotoAndStop(_root.control.scene + _root.control.player); }Symbol 617 MovieClip Frame 1stopAllSounds();Symbol 617 MovieClip Frame 2stop();Symbol 618 Buttonon (release) { _root.control.player = 3; if ((_root.control.scene >= 14) && (_root.control.scene <= 25)) { _root.bgm02.start(0, 255); } if ((_root.control.scene >= 30) && (_root.control.scene <= 41)) { _root.bgm03.start(0, 255); } if ((_root.control.scene >= 45) && (_root.control.scene <= 49)) { _root.bgm04.start(0, 255); } if ((_root.control.scene >= 54) && (_root.control.scene <= 65)) { _root.bgm05.start(0, 255); } if ((_root.control.scene >= 70) && (_root.control.scene <= 81)) { _root.bgm06.start(0, 255); } if ((_root.control.scene >= 86) && (_root.control.scene <= 93)) { _root.bgm07.start(0, 255); } _root.gotoAndStop(_root.control.scene + _root.control.player); }Symbol 619 Buttonon (release) { _root.control.player = 2; if ((_root.control.scene >= 14) && (_root.control.scene <= 25)) { _root.bgm02.start(0, 255); } if ((_root.control.scene >= 30) && (_root.control.scene <= 41)) { _root.bgm03.start(0, 255); } if ((_root.control.scene >= 45) && (_root.control.scene <= 49)) { _root.bgm04.start(0, 255); } if ((_root.control.scene >= 54) && (_root.control.scene <= 65)) { _root.bgm05.start(0, 255); } if ((_root.control.scene >= 70) && (_root.control.scene <= 81)) { _root.bgm06.start(0, 255); } if ((_root.control.scene >= 86) && (_root.control.scene <= 93)) { _root.bgm07.start(0, 255); } _root.gotoAndStop(_root.control.scene + _root.control.player); }Instance of Symbol 260 MovieClip in Symbol 646 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 260 MovieClip in Symbol 646 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 260 MovieClip in Symbol 646 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 262 MovieClip in Symbol 646 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 259 MovieClip in Symbol 646 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent.zero; scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if (zero.hitTest(this) && (Key.isDown(39))) { scene.velX = 0; } }Instance of Symbol 259 MovieClip in Symbol 646 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent.zero; scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if (zero.hitTest(this)) { _root.control.scene = _root.control.scene + 4; _root.gotoAndStop(_root.control.scene + _root.control.player); } }Symbol 654 MovieClip Frame 92gotoAndPlay (43);Symbol 666 MovieClip Frame 5stop();Symbol 669 MovieClip Frame 6stop();Symbol 671 MovieClip Frame 8this._parent.orden = "stay";Symbol 674 MovieClip Frame 5stop();Symbol 677 MovieClip Frame 8this._parent.orden = "stay"; this._parent.orden2 = "nan";Symbol 706 MovieClip Frame 35_root.gotoAndStop("gameover");Instance of Symbol 25 MovieClip "pies" in Symbol 710 MovieClip Frame 1onClipEvent (load) { _alpha = 0; }Instance of Symbol 25 MovieClip "body" in Symbol 710 MovieClip Frame 1onClipEvent (load) { _alpha = 0; }Symbol 725 MovieClip Frame 10this._parent.orden = "stay";Symbol 730 MovieClip Frame 15stop();Symbol 734 MovieClip Frame 99_root.gotoAndStop("gameover");Instance of Symbol 25 MovieClip "pies" in Symbol 752 MovieClip Frame 1onClipEvent (load) { _alpha = 0; }Instance of Symbol 25 MovieClip "body" in Symbol 752 MovieClip Frame 1onClipEvent (load) { _alpha = 0; }Instance of Symbol 36 MovieClip "upper" in Symbol 753 MovieClip Frame 1onClipEvent (load) { radio = _parent._width / 2; ini_y = _parent._y; zero = this._parent._parent._parent.zero; padre = this._parent._parent; target01 = _parent.target01 - (_parent._y + this.padre._y); target02 = _parent.target02 - (_parent._y + this.padre._y); } onClipEvent (enterFrame) { _parent.real_x = padre._x + _parent._x; if (_parent.doble_target) { if (zero._x < _parent.real_x) { _parent.target_y = target01; } else { _parent.target_y = target02; } } else { _parent.target_y = _parent.target01 - (_parent._y + this.padre._y); } if (zero.body.hitTest(this) && (zero.velY > zero.weight)) { zero.velY = zero.velY - 3; zero.f = 0; } else if (zero.pies.hitTest(zero.plataform) && (zero.velY < 0)) { zero.orden = "land"; } }Instance of Symbol 259 MovieClip in Symbol 754 MovieClip Frame 1onClipEvent (load) { var zero = this._parent._parent.zero; var scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if ((zero.hitTest(this) && (zero.dir == "R")) || ((zero.hitTest(this) && (zero.orden3 == "damage")) && (zero.dir == "L"))) { scene.velX = scene.velX * 0; } else if (zero.hitTest(this) && (zero.dir == "L")) { if (zero.orden2 != "dash") { scene.velX = 2; } else if ((zero.orden2 == "dash") || (zero.orden == "dash+jump")) { scene.velX = 5; } } }Instance of Symbol 259 MovieClip in Symbol 755 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent.zero; scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if (zero.hitTest(this) && (Key.isDown(39))) { scene.velX = 0; } }Instance of Symbol 259 MovieClip in Symbol 755 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent.zero; scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if (zero.hitTest(this)) { _root.control.scene = _root.control.scene + 4; _root.gotoAndStop(_root.control.scene + _root.control.player); } }Instance of Symbol 753 MovieClip in Symbol 756 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 259 MovieClip in Symbol 757 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var scene = _root.plataforms; } onClipEvent (enterFrame) { _visible = false; if (zero.hitTest(this)) { _root.control.scene = _root.control.scene + 4; _root.gotoAndStop(_root.control.scene + _root.control.player); } }Symbol 763 MovieClip Frame 22stop();Instance of Symbol 35 MovieClip [blast] in Symbol 764 MovieClip Frame 21onClipEvent (enterFrame) { if (_root.zero.hitTest(this) && (zero.receive_damage)) { _root.zero.damage = 3; _root.zero.orden3 = "damage"; } }Symbol 764 MovieClip Frame 22gotoAndPlay (20);Symbol 765 MovieClip Frame 1stop();Symbol 770 MovieClip Frame 1stop();Instance of Symbol 36 MovieClip "range" in Symbol 770 MovieClip Frame 1onClipEvent (load) { this._visible = false; }Instance of Symbol 765 MovieClip in Symbol 770 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var cursor = _root.cursor_mc; var wall = undefined; var plataform = undefined; var laser = _root.laser; var blast = _root.blast; var HP = 9; var can_receive = true; var num = 0; } onClipEvent (enterFrame) { real_x = _root.plataforms._x + this._parent._x; if ((zero._x < real_x) && (this._parent._xscale == -100)) { this._parent._xscale = this._parent._xscale * -1; } else if ((zero._x > real_x) && (this._parent._xscale == 100)) { this._parent._xscale = this._parent._xscale * -1; } this.onEnterFrame = function () { if (HP <= 0) { this._alpha = this._alpha - 1; } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((zero.body.hitTest(this) && (HP > 0)) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } else if (((zero.hitTest(this) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - zero.atk; can_receive = false; } if (zero.hitTest(this._parent.range)) { gotoAndStop (2); can_receive = true; } else if ((!zero.hitTest(this._parent.range)) && (HP > 0)) { can_receive = false; gotoAndStop (1); } if (HP <= 0) { this._parent.range.num2++; this._parent.gotoAndPlay(2); } if (((laser.hitTest(this) && (laser._visible)) && (HP > 0)) && (can_receive)) { HP = HP - laser.atk; can_receive = false; laser.movile = false; laser._visible = false; } if (((blast.hitTest(this) && (blast._visible)) && (HP > 0)) && (can_receive)) { HP = HP - blast.atk; can_receive = false; } }Symbol 770 MovieClip Frame 14stop();Instance of Symbol 64 MovieClip in Symbol 770 MovieClip Frame 14onClipEvent (load) { _visible = false; num = random(100); } onClipEvent (enterFrame) { if (num <= 20) { _visible = true; } }Instance of Symbol 753 MovieClip in Symbol 771 MovieClip Frame 1onClipEvent (load) { _visible = false; }Instance of Symbol 259 MovieClip in Symbol 781 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 777 MovieClip in Symbol 782 MovieClip Frame 44onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 777 MovieClip in Symbol 782 MovieClip Frame 55onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 777 MovieClip in Symbol 782 MovieClip Frame 68onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 782 MovieClip Frame 92_root.plataforms.boss.boss.orden = "move";Instance of Symbol 777 MovieClip in Symbol 782 MovieClip Frame 92onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 777 MovieClip in Symbol 795 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { visible = false; if (zero.body.hitTest(this) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 795 MovieClip Frame 24_root.plataforms.boss.boss.orden = "move";Instance of Symbol 777 MovieClip in Symbol 797 MovieClip Frame 35onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if (zero.body.hitTest(this) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 797 MovieClip Frame 98if (_root.plataforms.boss._xscale == 100) { _root.plataforms.boss._xscale = _root.plataforms.boss._xscale * -1; } else if (_root.plataforms.boss._xscale == -100) { _root.plataforms.boss._xscale = _root.plataforms.boss._xscale * -1; }Symbol 797 MovieClip Frame 138_root.plataforms.boss.boss.orden = "move";Symbol 798 MovieClip Frame 1stop();Instance of Symbol 798 MovieClip "boss" in Symbol 799 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var laser = _root.laser; var blast = _root.blast; var HP = 64; var orden = "stay"; var orden2 = "receive"; var can_receive = true; var timer = 0; var num = 0; } onClipEvent (enterFrame) { this.onEnterFrame = function () { this._parent._parent._parent.Boss_meter.gotoAndStop(HP + 1); if (HP <= 0) { _root.control.boss1 = "clear"; _root.gotoAndStop(98); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((this.hitTest(zero) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - (zero.atk + 1); orden2 = "shielded"; } else if ((laser.hitTest(this) && (can_receive)) && (laser._visible)) { HP = HP - (laser.atk - 1); orden2 = "shielded"; } else if ((blast.hitTest(this) && (can_receive)) && (blast._visible)) { HP = HP - (blast.atk - 2); orden2 = "shielded"; } else if (orden2 == "receive") { can_receive = true; shield = 0; this._alpha = 100; } if ((orden2 == "shielded") && (shield < 60)) { shield++; this._alpha = 50; can_receive = false; } else if ((orden2 == "shielded") && (shield >= 60)) { orden2 = "receive"; } _root.boss_test.text = "boss atack" + num; if (orden == "move") { gotoAndStop (4); timer++; num = Math.round(Math.random() * 4); } else if (orden == "stay") { gotoAndStop (4); } if (timer == 60) { orden = "atack"; timer = 0; } if (orden == "atack") { if (num < 1) { num = 1; } else if (num > 3) { num = 3; } gotoAndStop(num); } if (HP <= 0) { this._alpha--; this._parent._parent._parent.Boss_meter._alpha--; } }Instance of Symbol 259 MovieClip in Symbol 800 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Instance of Symbol 152 MovieClip in Symbol 806 MovieClip Frame 1onClipEvent (enterFrame) { stop(); }Symbol 822 MovieClip Frame 1stop();Symbol 822 MovieClip Frame 2stop();Symbol 825 MovieClip Frame 1stop();Symbol 829 MovieClip Frame 1stop();Instance of Symbol 822 MovieClip in Symbol 829 MovieClip Frame 1onClipEvent (enterFrame) { if (this._parent._alpha == 50) { gotoAndStop (2); } else if (this._parent._alpha == 100) { gotoAndStop (1); } }Instance of Symbol 259 MovieClip in Symbol 834 MovieClip Frame 1onClipEvent (load) { var radio = (_parent._width / 2); var ini_y = _parent._y; var zero = this._parent._parent._parent.zero; var padre = this._parent._parent; var target01 = (_parent.target01 - (_parent._y + this.padre._y)); var target02 = (_parent.target02 - (_parent._y + this.padre._y)); } onClipEvent (enterFrame) { _parent.real_x = padre._x + _parent._x; if (_parent.doble_target) { if (zero._x < _parent.real_x) { _parent.target_y = target01; } else { _parent.target_y = target02; } } else { _parent.target_y = _parent.target01 - (_parent._y + this.padre._y); } if (zero.pies.hitTest(this)) { zero.plataform = _parent; zero.orden3 = "dead"; } }Instance of Symbol 833 MovieClip in Symbol 835 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; wtr = _root.wtr; } onClipEvent (enterFrame) { if (zero.hitTest(this)) { wtr.visible = true; } else if (!zero.hitTest(this)) { wtr.visible = false; } }Instance of Symbol 838 MovieClip in Symbol 839 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent._parent.zero; parent = _parent; scena = this._parent._parent; } onClipEvent (enterFrame) { real_x = scena._x + parent._x; if (zero.body.hitTest(this)) { zero.wall = this; } }Instance of Symbol 839 MovieClip in Symbol 841 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 844 MovieClip "boss" in Symbol 845 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var laser = _root.laser; var blast = _root.blast; var HP = 64; var orden = "stay"; var orden2 = "receive"; var can_receive = true; var timer = 0; var num = 0; } onClipEvent (enterFrame) { real_x = _root.plataforms._x + this._parent._x; real_y = _root.plataforms._y + this._parent._y; xDist = real_x - zero._x; yDist = real_y - zero._y; this.onEnterFrame = function () { this._parent._parent._parent.Boss_meter.gotoAndStop(HP + 1); if (HP <= 0) { _root.control.boss2 = "clear"; _root.gotoAndStop(99); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((this.hitTest(zero) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - (zero.atk + 1); orden2 = "shielded"; } else if ((laser.hitTest(this) && (can_receive)) && (laser._visible)) { HP = HP - (laser.atk - 1); orden2 = "shielded"; } else if ((blast.hitTest(this) && (can_receive)) && (blast._visible)) { HP = HP - (blast.atk - 1); orden2 = "shielded"; } else if (orden2 == "receive") { can_receive = true; shield = 0; this._alpha = 100; } if ((orden2 == "shielded") && (shield < 60)) { shield++; this._alpha = 50; can_receive = false; } else if ((orden2 == "shielded") && (shield >= 50)) { orden2 = "receive"; } _root.boss_test.text = "boss atack" + num; if (orden == "move") { gotoAndStop (1); angle = Math.atan2(yDist, xDist) / (Math.PI/180); this._parent._rotation = angle - 90; if (zero.orden3 == "ok") { if (((zero._x > real_x) && (HP > 0)) && (can_receive)) { this._parent._x = this._parent._x + 1; } else if (((zero._x < real_x) && (HP > 0)) && (can_receive)) { this._parent._x = this._parent._x - 1; } if (((zero._y > real_y) && (HP > 0)) && (can_receive)) { this._parent._y = this._parent._y + 1; } else if (((zero._y < real_y) && (HP > 0)) && (can_receive)) { this._parent._y = this._parent._y - 1; } } } else if (orden == "stay") { gotoAndStop (2); } }Instance of Symbol 259 MovieClip in Symbol 850 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Instance of Symbol 839 MovieClip in Symbol 869 MovieClip Frame 20onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 869 MovieClip Frame 40_root.plataforms.boss.boss.orden = "move";Instance of Symbol 259 MovieClip in Symbol 874 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; timer = 0; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 8; zero.orden3 = "damage"; } if (zero._x < _root.plataforms.boss.boss.real_x) { _root.plataforms.boss._x = _root.plataforms.boss._x - 3; } else if (zero._x > _root.plataforms.boss.boss.real_x) { _root.plataforms.boss._x = _root.plataforms.boss._x + 3; } timer++; if ((timer >= 100) || (zero.body.hitTest(this))) { _root.plataforms.boss.boss.orden = "move"; } }Instance of Symbol 259 MovieClip in Symbol 881 MovieClip Frame 53onClipEvent (load) { _visible = false; zero = _root.zero; } onClipEvent (enterFrame) { if (zero._x < _root.plataforms.boss.boss.real_x) { _root.plataforms.boss._x = _root.plataforms.boss._x - 5; } else if (zero._x > _root.plataforms.boss.boss.real_x) { _root.plataforms.boss._x = _root.plataforms.boss._x + 5; } }Instance of Symbol 259 MovieClip in Symbol 881 MovieClip Frame 121onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 259 MovieClip in Symbol 881 MovieClip Frame 158onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 881 MovieClip Frame 182_root.plataforms.boss.boss.orden = "move";Instance of Symbol 259 MovieClip in Symbol 886 MovieClip Frame 16onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 887 MovieClip "boss" in Symbol 888 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var laser = _root.laser; var blast = _root.blast; var HP = 64; var orden = "stay"; var orden2 = "receive"; var can_receive = true; var timer = 0; var num = 0; } onClipEvent (enterFrame) { real_x = _root.plataforms._x + this._parent._x; if ((zero._x < real_x) && (this._parent._xscale == -100)) { this._parent._xscale = this._parent._xscale * -1; } else if ((zero._x > real_x) && (this._parent._xscale == 100)) { this._parent._xscale = this._parent._xscale * -1; } this.onEnterFrame = function () { this._parent._parent._parent.Boss_meter.gotoAndStop(HP + 1); if (HP <= 0) { _root.control.boss3 = "clear"; _root.gotoAndStop(100); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((this.hitTest(zero) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - (zero.atk + 2); orden2 = "shielded"; } else if ((laser.hitTest(this) && (can_receive)) && (laser._visible)) { HP = HP - (laser.atk - 1); orden2 = "shielded"; } else if ((blast.hitTest(this) && (can_receive)) && (blast._visible)) { HP = HP - (blast.atk - 2); orden2 = "shielded"; } else if (orden2 == "receive") { can_receive = true; shield = 0; this._alpha = 100; } if ((orden2 == "shielded") && (shield < 60)) { shield++; this._alpha = 50; can_receive = false; } else if ((orden2 == "shielded") && (shield >= 60)) { orden2 = "receive"; } _root.boss_test.text = "boss atack" + num; if (orden == "move") { gotoAndStop (4); timer++; num = Math.round(Math.random() * 4); } else if (orden == "stay") { gotoAndStop (4); } if (timer == 30) { orden = "atack"; timer = 0; } if (orden == "atack") { if (num < 1) { num = 1; } else if (num > 3) { num = 3; } gotoAndStop(num); } if (HP <= 0) { this._alpha--; this._parent._parent._parent.Boss_meter._alpha--; } }Instance of Symbol 259 MovieClip in Symbol 889 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Symbol 896 MovieClip Frame 1stop();Instance of Symbol 904 MovieClip in Symbol 905 MovieClip Frame 1onClipEvent (load) { var radio = (_parent._width / 2); var ini_y = _parent._y; var zero = this._parent._parent._parent.zero; var padre = this._parent._parent; var target01 = (_parent.target01 - (_parent._y + this.padre._y)); var target02 = (_parent.target02 - (_parent._y + this.padre._y)); var tiger = "off"; var timer = 0; var num2 = 0; } onClipEvent (enterFrame) { _parent.real_x = padre._x + _parent._x; if (_parent.doble_target) { if (zero._x < _parent.real_x) { _parent.target_y = target01; } else { _parent.target_y = target02; } } else { _parent.target_y = _parent.target01 - (_parent._y + this.padre._y); } if (zero.pies.hitTest(this) && (_alpha > 0)) { zero.plataform = _parent; num2 = num2 + 1; } if ((zero.pies.hitTest(zero.plataform) && (zero.velY < 0)) && (_alpha > 0)) { zero.orden = "land"; } else if (zero.pies.hitTest(this) && (_alpha <= 0)) { zero.orden = "fall"; } if (num2 >= 1) { tiger = "on"; } else if ((num2 <= 0) || (_alpha <= 0)) { tiger = "off"; } if ((tiger == "on") && (_alpha > 0)) { _alpha = (_alpha - 1.5); } else if ((tiger == "on") && (_alpha <= 0)) { num2 = 0; tiger = "off"; } if ((tiger == "off") && (_alpha <= 0)) { num = num + 5; } if (num == 100) { _alpha = 100; num = 0; } }Instance of Symbol 925 MovieClip in Symbol 926 MovieClip Frame 43onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 925 MovieClip in Symbol 926 MovieClip Frame 107onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 8; zero.orden3 = "damage"; } }Symbol 926 MovieClip Frame 108_root.plataforms.boss.boss.orden = "move";Instance of Symbol 259 MovieClip in Symbol 972 MovieClip Frame 9onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 972 MovieClip Frame 22_root.plataforms.boss.boss.orden = "move";Instance of Symbol 259 MovieClip in Symbol 1062 MovieClip Frame 1onClipEvent (load) { _visible = false; zero = _root.zero; } onClipEvent (enterFrame) { _root.plataforms.boss.boss.orden2 = "shielded"; _root.plataforms.boss.boss.timer = -20; }Symbol 1062 MovieClip Frame 60_root.plataforms.boss.boss.orden = "move";Instance of Symbol 259 MovieClip in Symbol 1095 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 1096 MovieClip Frame 1stop();Instance of Symbol 1096 MovieClip "boss" in Symbol 1097 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var laser = _root.laser; var blast = _root.blast; var HP = 64; var orden = "stay"; var orden2 = "receive"; var can_receive = true; var timer = 0; var num = 0; } onClipEvent (enterFrame) { real_x = _root.plataforms._x + this._parent._x; if ((zero._x < real_x) && (this._parent._xscale == -50)) { this._parent._xscale = this._parent._xscale * -1; } else if ((zero._x > real_x) && (this._parent._xscale == 50)) { this._parent._xscale = this._parent._xscale * -1; } this.onEnterFrame = function () { this._parent._parent._parent.Boss_meter.gotoAndStop(HP + 1); if (HP <= 0) { _root.control.boss4 = "clear"; _root.gotoAndStop(101); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((this.hitTest(zero) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - (zero.atk + 2); orden2 = "shielded"; } else if ((laser.hitTest(this) && (can_receive)) && (laser._visible)) { HP = HP - (laser.atk - 1); orden2 = "shielded"; } else if ((blast.hitTest(this) && (can_receive)) && (blast._visible)) { HP = HP - (blast.atk - 3); orden2 = "shielded"; } else if (orden2 == "receive") { can_receive = true; shield = 0; this._alpha = 100; } if ((orden2 == "shielded") && (shield < 60)) { shield++; this._alpha = 50; can_receive = false; } else if ((orden2 == "shielded") && (shield >= 60)) { orden2 = "receive"; } _root.boss_test.text = "boss atack" + num; if (orden == "move") { if (zero._x < real_x) { this._parent._x = this._parent._x - 3; } else if (zero._x > real_x) { this._parent._x = this._parent._x - -3; } gotoAndStop (5); timer++; num = Math.round(Math.random() * 4); } else if (orden == "stay") { gotoAndStop (4); } if ((timer >= 150) || (zero.body.hitTest(this))) { orden = "atack"; timer = 0; } if (orden == "atack") { if (num < 1) { num = 1; } else if (num > 3) { num = 3; } gotoAndStop(num); } if (HP <= 0) { this._alpha--; this._parent._parent._parent.Boss_meter._alpha--; } }Instance of Symbol 259 MovieClip in Symbol 1098 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Instance of Symbol 1120 MovieClip in Symbol 1121 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 9; zero.orden3 = "damage"; } }Symbol 1121 MovieClip Frame 120_root.plataforms.boss.boss.orden = "move";Instance of Symbol 259 MovieClip in Symbol 1124 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 1125 MovieClip Frame 91_root.plataforms.boss.boss.orden = "move";Symbol 1126 MovieClip Frame 58_root.plataforms.boss.boss.summon = true;Symbol 1126 MovieClip Frame 59_root.plataforms.boss.boss.orden = "move";Instance of Symbol 1127 MovieClip "boss" in Symbol 1128 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var laser = _root.laser; var blast = _root.blast; var HP = 64; var orden = "stay"; var orden2 = "receive"; var can_receive = true; var timer = 0; var num = 0; var summon = false; } onClipEvent (enterFrame) { this.onEnterFrame = function () { this._parent._parent._parent.Boss_meter.gotoAndStop(HP + 1); if (HP <= 0) { _root.control.boss5 = "clear"; _root.gotoAndStop(12); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((this.hitTest(zero) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - 8; orden2 = "shielded"; } if ((laser.hitTest(this) && (can_receive)) && (laser._visible)) { HP = HP + laser.atk; orden2 = "shielded"; } else if ((blast.hitTest(this) && (can_receive)) && (blast._visible)) { HP = HP + blast.atk; orden2 = "shielded"; } if (orden2 == "receive") { can_receive = true; shield = 0; this._alpha = 100; } else if ((orden2 == "shielded") && (shield < 60)) { shield++; this._alpha = 50; can_receive = false; } else if ((orden2 == "shielded") && (shield >= 60)) { orden2 = "receive"; } _root.boss_test.text = "boss atack" + num; if (orden == "move") { summon = false; gotoAndStop (4); timer++; num = Math.round(Math.random() * 4); } else if (orden == "stay") { gotoAndStop (4); } if (timer == 10) { orden = "atack"; timer = 0; } if (orden == "atack") { if (num < 1) { num = 1; } else if (num > 3) { num = 3; } gotoAndStop(num); } if (HP <= 0) { this._alpha--; this._parent._parent._parent.Boss_meter._alpha--; } }Instance of Symbol 259 MovieClip in Symbol 1130 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Instance of Symbol 839 MovieClip in Symbol 1149 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 1146 MovieClip in Symbol 1149 MovieClip Frame 111onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 8; zero.orden3 = "damage"; } }Symbol 1149 MovieClip Frame 205_root.plataforms.boss.boss.orden = "stay";Instance of Symbol 839 MovieClip in Symbol 1153 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 839 MovieClip in Symbol 1153 MovieClip Frame 52onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 1153 MovieClip Frame 133_root.plataforms.boss.boss.orden = "stay";Instance of Symbol 839 MovieClip in Symbol 1159 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 259 MovieClip in Symbol 1159 MovieClip Frame 58onClipEvent (load) { _visible = false; zero = _root.zero; } onClipEvent (enterFrame) { if (zero._x < _root.plataforms.boss.boss.real_x) { _root.plataforms.boss._x = _root.plataforms.boss._x - 5; } else if (zero._x > _root.plataforms.boss.boss.real_x) { _root.plataforms.boss._x = _root.plataforms.boss._x + 5; } }Symbol 1159 MovieClip Frame 119_root.plataforms.boss.boss.orden = "stay";Instance of Symbol 36 MovieClip in Symbol 1162 MovieClip Frame 1onClipEvent (enterFrame) { if (_root.zero.body.hitTest(this) && (_root.zero.receive_damage)) { _root.zero.damage = 4; _root.zero.orden3 = "damage"; } }Symbol 1162 MovieClip Frame 60gotoAndPlay (1);Instance of Symbol 1149 MovieClip "Boss" in Symbol 1163 MovieClip Frame 1/* no clip actions */Instance of Symbol 1163 MovieClip "boss" in Symbol 1164 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var laser = _root.laser; var blast = _root.blast; var HP = 64; var orden = "stay"; var orden2 = "receive"; var can_receive = true; var timer = 0; var num = 0; } onClipEvent (enterFrame) { real_x = _root.plataforms._x + this._parent._x; if ((zero._x < real_x) && (this._parent._xscale == -100)) { this._parent._xscale = this._parent._xscale * -1; } else if ((zero._x > real_x) && (this._parent._xscale == 100)) { this._parent._xscale = this._parent._xscale * -1; } this.onEnterFrame = function () { this._parent._parent._parent.Boss_meter.gotoAndStop(HP + 1); if (HP <= 0) { _root.gotoAndStop(102); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((this.hitTest(zero) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - (zero.atk + 1); orden2 = "shielded"; } else if ((laser.hitTest(this) && (can_receive)) && (laser._visible)) { HP = HP - (laser.atk - 1); orden2 = "shielded"; } else if ((blast.hitTest(this) && (can_receive)) && (blast._visible)) { HP = HP - (blast.atk - 1); orden2 = "shielded"; } else if (orden2 == "receive") { can_receive = true; shield = 0; this._alpha = 100; } if ((orden2 == "shielded") && (shield < 60)) { shield++; this._alpha = 50; can_receive = false; } else if ((orden2 == "shielded") && (shield >= 60)) { orden2 = "receive"; } _root.boss_test.text = "boss atack" + num; if (orden == "stay") { gotoAndStop (4); timer++; num = Math.round(Math.random() * 3); } if (timer == 60) { orden = "atack"; timer = 0; } if (orden == "atack") { if (num < 1) { num = 1; } gotoAndStop(num); } if (HP <= 0) { this._alpha--; this._parent._parent._parent.Boss_meter._alpha--; } }Instance of Symbol 259 MovieClip in Symbol 1165 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Instance of Symbol 1168 MovieClip in Symbol 1169 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent._parent.zero; parent = _parent; scena = this._parent._parent; } onClipEvent (enterFrame) { real_x = scena._x + parent._x; if (zero.body.hitTest(this)) { zero.wall = this; } }Instance of Symbol 36 MovieClip in Symbol 1170 MovieClip Frame 1onClipEvent (load) { radio = _parent._width / 2; ini_y = _parent._y; zero = this._parent._parent._parent.zero; padre = this._parent._parent; target01 = _parent.target01 - (_parent._y + this.padre._y); target02 = _parent.target02 - (_parent._y + this.padre._y); } onClipEvent (enterFrame) { _parent.real_x = padre._x + _parent._x; if (_parent.doble_target) { if (zero._x < _parent.real_x) { _parent.target_y = target01; } else { _parent.target_y = target02; } } else { _parent.target_y = _parent.target01 - (_parent._y + this.padre._y); } if (zero.pies.hitTest(this)) { zero.plataform = _parent; } if (zero.pies.hitTest(zero.plataform) && (zero.velY < 0)) { zero.orden = "land"; } }Instance of Symbol 1180 MovieClip in Symbol 1181 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 32 MovieClip in Symbol 1184 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 32 MovieClip in Symbol 1184 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 32 MovieClip in Symbol 1184 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 32 MovieClip in Symbol 1184 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 32 MovieClip in Symbol 1184 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 1185 MovieClip Frame 259_root.plataforms.boss.boss.orden = "move";Instance of Symbol 1168 MovieClip in Symbol 1188 MovieClip Frame 1onClipEvent (load) { zero = this._parent._parent._parent.zero; parent = _parent; scena = this._parent._parent; } onClipEvent (enterFrame) { real_x = scena._x + parent._x; if (zero.body.hitTest(this)) { zero.wall = this; } }Instance of Symbol 1188 MovieClip in Symbol 1189 MovieClip Frame 107onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if (((this.hitTest(zero.body) && (zero.orden2 != "atack")) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 10; zero.orden3 = "damage"; } }Symbol 1189 MovieClip Frame 205_root.plataforms.boss.boss.orden = "move";Instance of Symbol 1180 MovieClip in Symbol 1194 MovieClip Frame 146onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Instance of Symbol 1180 MovieClip in Symbol 1194 MovieClip Frame 227onClipEvent (load) { zero = _root.zero; this._visible = false; } onClipEvent (enterFrame) { if ((this.hitTest(zero.body) && (zero.orden3 == "ok")) && (zero.receive_damage)) { zero.damage = 6; zero.orden3 = "damage"; } }Symbol 1194 MovieClip Frame 298_root.plataforms.boss.boss.orden = "move";Instance of Symbol 1195 MovieClip "boss" in Symbol 1196 MovieClip Frame 1onClipEvent (load) { var zero = _root.zero; var laser = _root.laser; var blast = _root.blast; var HP = 64; var orden = "move"; var orden2 = "receive"; var can_receive = true; var timer = 0; var num = 0; } onClipEvent (enterFrame) { this.onEnterFrame = function () { this._parent._parent._parent.Boss_meter.gotoAndStop(HP + 1); if (HP <= 0) { _root.gotoAndStop(103); } if (this._alpha <= 0) { this._visible = false; delete this.onEnterFrame; } }; if (((this.hitTest(zero) && (zero.orden2 == "atack")) && (HP > 0)) && (can_receive)) { HP = HP - zero.atk; orden2 = "shielded"; } else if ((laser.hitTest(this) && (can_receive)) && (laser._visible)) { HP = HP - (laser.atk - 2); orden2 = "shielded"; } else if ((blast.hitTest(this) && (can_receive)) && (blast._visible)) { HP = HP - (blast.atk - 2); orden2 = "shielded"; } else if (orden2 == "receive") { can_receive = true; shield = 0; this._alpha = 100; } if ((orden2 == "shielded") && (shield < 60)) { shield++; this._alpha = 50; can_receive = false; } else if ((orden2 == "shielded") && (shield >= 60)) { orden2 = "receive"; } _root.boss_test.text = "boss atack" + num; if (orden == "move") { gotoAndStop (4); timer++; num = Math.round(Math.random() * 4); } else if (orden == "stay") { gotoAndStop (4); } if (timer == 60) { orden = "atack"; timer = 0; } if (orden == "atack") { if (num < 1) { num = 1; } else if (num > 3) { num = 3; } gotoAndStop(num); } if (HP <= 0) { this._alpha--; this._parent._parent._parent.Boss_meter._alpha--; } }Symbol 1204 MovieClip Frame 1_root.bgm09.stop();Instance of Symbol 398 MovieClip in Symbol 1204 MovieClip Frame 397onClipEvent (load) { stop(); }Symbol 1204 MovieClip Frame 596_root.gotoAndStop(12);Symbol 1212 MovieClip Frame 1_root.bgm09.stop();Instance of Symbol 843 MovieClip in Symbol 1212 MovieClip Frame 1onClipEvent (load) { stop(); }Symbol 1212 MovieClip Frame 141Symbol 1212 MovieClip Frame 235_root.gotoAndStop(12); stop();Symbol 1237 MovieClip Frame 263_root.bgm09.stop();Instance of Symbol 1226 MovieClip in Symbol 1237 MovieClip Frame 455onClipEvent (load) { stop(); }Instance of Symbol 398 MovieClip in Symbol 1237 MovieClip Frame 858onClipEvent (load) { stop(); }Symbol 1237 MovieClip Frame 923stop(); _root.gotoAndStop(12);Symbol 1238 MovieClip Frame 42stop();Symbol 1248 MovieClip Frame 1_root.bgm09.stop();Instance of Symbol 1238 MovieClip in Symbol 1248 MovieClip Frame 1onClipEvent (load) { gotoAndStop (2); }Instance of Symbol 1238 MovieClip in Symbol 1248 MovieClip Frame 20onClipEvent (load) { gotoAndStop (2); } onClipEvent (enterFrame) { gotoAndPlay (3); }Instance of Symbol 1238 MovieClip in Symbol 1248 MovieClip Frame 112onClipEvent (load) { gotoAndStop (2); } onClipEvent (enterFrame) { gotoAndPlay (3); }Instance of Symbol 1238 MovieClip in Symbol 1248 MovieClip Frame 126onClipEvent (load) { gotoAndStop (2); } onClipEvent (enterFrame) { gotoAndPlay (3); }Symbol 1248 MovieClip Frame 188stop();Instance of Symbol 302 MovieClip in Symbol 1248 MovieClip Frame 188onClipEvent (load) { stop(); }Instance of Symbol 25 MovieClip in Symbol 1248 MovieClip Frame 188onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Mario: Pero que hongeados?!?!?!"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Mario: But Wath THE ....."; } }Symbol 1248 MovieClip Frame 203stop();Instance of Symbol 25 MovieClip in Symbol 1248 MovieClip Frame 203onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Zero: NO es justo, \nquiero eso!!!"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Zero: Hey this not FAIR!!!!"; } }Symbol 1248 MovieClip Frame 216stop();Instance of Symbol 25 MovieClip in Symbol 1248 MovieClip Frame 216onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Mario: Oie, creo que va a\nhacer el truco de\nlallorona!!!"; } else if (_root.control.lng == "eng") { this._parent.dialoge.text = "Mario: Guess she is gonna to\nexplode the whole \nplace!! RUN"; } }Instance of Symbol 302 MovieClip in Symbol 1248 MovieClip Frame 217onClipEvent (load) { stop(); }Instance of Symbol 302 MovieClip in Symbol 1248 MovieClip Frame 240onClipEvent (load) { stop(); }Symbol 1248 MovieClip Frame 241stop();Instance of Symbol 926 MovieClip in Symbol 1248 MovieClip Frame 241onClipEvent (load) { timer = 50; } onClipEvent (enterFrame) { timer--; if (timer <= 0) { this._parent.play(); } }Symbol 1248 MovieClip Frame 444_root.gotoAndStop(12);Instance of Symbol 259 MovieClip in Symbol 1249 MovieClip Frame 1onClipEvent (load) { zero = _root.zero; boss = this._parent.boss.boss; count = 0; } onClipEvent (enterFrame) { this._visible = false; if (zero.hitTest(this) && (count == 0)) { zero.orden3 = "null"; _root.warning._visible = true; _root.warning.play(); count++; } }Symbol 1256 MovieClip Frame 14stop();Symbol 1260 MovieClip Frame 20stop(); this._parent.play();Symbol 1263 MovieClip Frame 35stop(); this._parent.play();Instance of Symbol 1256 MovieClip in Symbol 1266 MovieClip Frame 2onClipEvent (load) { stop(); }Symbol 1266 MovieClip Frame 32stop();Instance of Symbol 25 MovieClip in Symbol 1266 MovieClip Frame 32onClipEvent (enterFrame) { if ((_root.control.lng = "esp")) { this._parent.dialoge.text = "Ya les cargo el pajarito\naora are lo que nintendo\nnunca hizo conmigo\ny los are ESTIERCOL!!!"; } else if ((_root.control.dialoge.text = "eng")) { this._parent.dialoge.text = "grr... im now VERY pissed\nnow i will make you SUFFER\nand make you wish\nto never have BORN!!!!"; } }Symbol 1266 MovieClip Frame 61stop(); _root.bgm09.stop();Symbol 1266 MovieClip Frame 62stop();Symbol 1266 MovieClip Frame 120_root.gotoAndStop(94 + _root.control.player);Symbol 1285 MovieClip Frame 32stop();Symbol 1308 MovieClip Frame 1_root.bgm10.stop();Instance of Symbol 506 MovieClip in Symbol 1308 MovieClip Frame 2onClipEvent (load) { stop(); }Instance of Symbol 506 MovieClip in Symbol 1308 MovieClip Frame 51onClipEvent (load) { gotoAndStop (96); }Instance of Symbol 506 MovieClip in Symbol 1308 MovieClip Frame 278onClipEvent (load) { gotoAndStop (96); }Instance of Symbol 315 MovieClip in Symbol 1308 MovieClip Frame 278onClipEvent (load) { gotoAndStop (40); }Instance of Symbol 1280 MovieClip in Symbol 1308 MovieClip Frame 495onClipEvent (load) { stop(); }Instance of Symbol 1280 MovieClip in Symbol 1308 MovieClip Frame 594onClipEvent (load) { stop(); }Instance of Symbol 506 MovieClip in Symbol 1308 MovieClip Frame 648onClipEvent (load) { gotoAndStop (96); }Instance of Symbol 315 MovieClip in Symbol 1308 MovieClip Frame 648onClipEvent (load) { gotoAndStop (40); }Instance of Symbol 506 MovieClip in Symbol 1308 MovieClip Frame 690onClipEvent (load) { gotoAndStop (96); }Instance of Symbol 315 MovieClip in Symbol 1308 MovieClip Frame 690onClipEvent (load) { gotoAndStop (40); }Symbol 1308 MovieClip Frame 692stop();Instance of Symbol 25 MovieClip in Symbol 1308 MovieClip Frame 692onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Samus:\nOk ni\u00F1os, es ora de\nense\u00F1arles como se mata\na un dragon"; } if (_root.control.lng == "eng") { this._parent.dialoge.text = "Samus:\nOk kids, play time\nis over, and specialy\nfor you"; } }Symbol 1308 MovieClip Frame 873stop();Instance of Symbol 506 MovieClip in Symbol 1308 MovieClip Frame 873onClipEvent (load) { gotoAndStop (26); }Instance of Symbol 1280 MovieClip in Symbol 1308 MovieClip Frame 873onClipEvent (load) { stop(); }Instance of Symbol 25 MovieClip in Symbol 1308 MovieClip Frame 873onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Samus:\nbien, creo que\nseria bueno si nos\nfueramos YA"; } if (_root.control.lng == "eng") { this._parent.dialoge.text = "Samus\nnext time you want\nto party whitout me\ni wont giveyou a ride"; } }Symbol 1308 MovieClip Frame 878stop();Instance of Symbol 25 MovieClip in Symbol 1308 MovieClip Frame 878onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Zero: Si lo dices\npor lo de la bioarma\ncon mas razon"; } if (_root.control.lng == "eng") { this._parent.dialoge.text = "Zero: if you say that\ncuz de bio weapon\nI agree!!!"; } }Symbol 1308 MovieClip Frame 885stop();Instance of Symbol 25 MovieClip in Symbol 1308 MovieClip Frame 885onClipEvent (enterFrame) { if (_root.control.lng == "esp") { this._parent.dialoge.text = "Mario: solo quiero ir a casa\nSamus: ok, suban y abrochense\nsus cinturones"; } if (_root.control.lng == "eng") { this._parent.dialoge.text = "Mario: just wanna go home Samus\nSamus: Shut up!! and hop in\nboth of you!"; } }Instance of Symbol 1280 MovieClip in Symbol 1308 MovieClip Frame 893onClipEvent (load) { stop(); }Symbol 1308 MovieClip Frame 1295_root.gotoAndStop(104);Symbol 1322 MovieClip Frame 56_root.control.gameclear1 = true; savefile.data.game = _root.control.gameclear1; savefile.flush();Symbol 1322 MovieClip Frame 57stop();Instance of Symbol 1312 MovieClip in Symbol 1322 MovieClip Frame 57onClipEvent (enterFrame) { if (_y > -1728) { _y = (_y - 0.5); } if (_y <= -1728) { this._parent.cosa._visible = true; } }Instance of Symbol 1321 MovieClip "cosa" in Symbol 1322 MovieClip Frame 57onClipEvent (load) { stop(); _visible = false; } onClipEvent (enterFrame) { if (_root.control.lng == "esp") { gotoAndStop (2); } }Symbol 1323 Buttonon (release) { _root.gotoAndStop(13); }Symbol 1324 Buttonon (release) { _root.gotoAndStop(12); }Symbol 1331 MovieClip Frame 1if (_root.control.lng == "eng") { stop(); }Symbol 1331 MovieClip Frame 2if (_root.control.lng == "esp") { stop(); }
Library Items
Symbol 1 Graphic | Used by:3 | |
Symbol 2 Graphic | Used by:3 | |
Symbol 3 MovieClip | Uses:1 2 | Used by:12 |
Symbol 4 Bitmap | Used by:5 6 7 8 9 10 | |
Symbol 5 Graphic | Uses:4 | Used by:11 |
Symbol 6 Graphic | Uses:4 | Used by:11 |
Symbol 7 Graphic | Uses:4 | Used by:11 |
Symbol 8 Graphic | Uses:4 | Used by:11 |
Symbol 9 Graphic | Uses:4 | Used by:11 |
Symbol 10 Graphic | Uses:4 | Used by:11 |
Symbol 11 MovieClip | Uses:5 6 7 8 9 10 | Used by:12 406 |
Symbol 12 MovieClip [bomb] | Uses:3 11 | |
Symbol 13 Bitmap | Used by:14 15 16 17 18 19 20 21 22 26 | |
Symbol 14 Graphic | Uses:13 | Used by:23 |
Symbol 15 Graphic | Uses:13 | Used by:23 |
Symbol 16 Graphic | Uses:13 | Used by:23 |
Symbol 17 Graphic | Uses:13 | Used by:23 |
Symbol 18 Graphic | Uses:13 | Used by:23 |
Symbol 19 Graphic | Uses:13 | Used by:23 |
Symbol 20 Graphic | Uses:13 | Used by:23 |
Symbol 21 Graphic | Uses:13 | Used by:23 |
Symbol 22 Graphic | Uses:13 | Used by:23 |
Symbol 23 MovieClip | Uses:14 15 16 17 18 19 20 21 22 | Used by:29 |
Symbol 24 Graphic | Used by:25 36 258 1180 | |
Symbol 25 MovieClip | Uses:24 | Used by:29 214 348 559 593 710 752 1248 1266 1308 |
Symbol 26 Graphic | Uses:13 | Used by:28 |
Symbol 27 Sound | Used by:28 | |
Symbol 28 MovieClip | Uses:26 27 | Used by:29 |
Symbol 29 MovieClip [enemy] | Uses:23 25 28 | |
Symbol 30 Bitmap | Used by:31 | |
Symbol 31 Graphic | Uses:30 | Used by:32 |
Symbol 32 MovieClip | Uses:31 | Used by:33 1184 |
Symbol 33 MovieClip [flamerain] | Uses:32 | |
Symbol 34 Graphic | Used by:35 | |
Symbol 35 MovieClip [blast] | Uses:34 | Used by:52 764 1185 Timeline |
Symbol 36 MovieClip | Uses:24 | Used by:70 753 770 1162 1170 |
Symbol 37 Bitmap | Used by:38 39 40 41 43 44 45 46 48 49 51 54 55 56 57 58 59 66 67 758 759 760 761 762 766 767 768 769 | |
Symbol 38 Graphic | Uses:37 | Used by:42 |
Symbol 39 Graphic | Uses:37 | Used by:42 |
Symbol 40 Graphic | Uses:37 | Used by:42 |
Symbol 41 Graphic | Uses:37 | Used by:42 |
Symbol 42 MovieClip | Uses:38 39 40 41 | Used by:53 |
Symbol 43 Graphic | Uses:37 | Used by:47 |
Symbol 44 Graphic | Uses:37 | Used by:47 |
Symbol 45 Graphic | Uses:37 | Used by:47 |
Symbol 46 Graphic | Uses:37 | Used by:47 |
Symbol 47 MovieClip | Uses:43 44 45 46 | Used by:53 |
Symbol 48 Graphic | Uses:37 | Used by:52 |
Symbol 49 Graphic | Uses:37 | Used by:52 |
Symbol 50 Sound | Used by:52 | |
Symbol 51 Graphic | Uses:37 | Used by:52 |
Symbol 52 MovieClip | Uses:48 49 50 35 51 SS1 | Used by:53 |
Symbol 53 MovieClip | Uses:42 47 52 | Used by:70 |
Symbol 54 Graphic | Uses:37 | Used by:65 |
Symbol 55 Graphic | Uses:37 | Used by:65 |
Symbol 56 Graphic | Uses:37 | Used by:65 |
Symbol 57 Graphic | Uses:37 | Used by:65 |
Symbol 58 Graphic | Uses:37 | Used by:65 |
Symbol 59 Graphic | Uses:37 | Used by:65 |
Symbol 60 Graphic | Used by:61 | |
Symbol 61 MovieClip | Uses:60 | Used by:64 |
Symbol 62 Bitmap | Used by:63 | |
Symbol 63 Graphic | Uses:62 | Used by:64 |
Symbol 64 MovieClip | Uses:61 63 | Used by:65 68 406 770 |
Symbol 65 MovieClip | Uses:54 55 56 57 58 59 64 | Used by:69 |
Symbol 66 Graphic | Uses:37 | Used by:68 |
Symbol 67 Graphic | Uses:37 | Used by:68 |
Symbol 68 MovieClip | Uses:66 67 64 | Used by:69 |
Symbol 69 MovieClip | Uses:65 68 | Used by:70 |
Symbol 70 MovieClip [soldier] | Uses:36 53 69 | Used by:283 368 410 565 646 755 771 806 835 897 902 907 1113 1136 |
Symbol 71 Graphic | Used by:72 | |
Symbol 72 MovieClip | Uses:71 | Used by:Timeline |
Symbol 73 Graphic | Used by:91 261 812 835 838 1168 1265 | |
Symbol 74 Graphic | Used by:75 357 1205 | |
Symbol 75 MovieClip | Uses:74 | Used by:91 |
Symbol 76 Graphic | Used by:91 | |
Symbol 77 Graphic | Used by:80 81 | |
Symbol 78 Graphic | Used by:80 81 | |
Symbol 79 Graphic | Used by:80 81 | |
Symbol 80 MovieClip | Uses:77 78 79 | Used by:81 |
Symbol 81 Button | Uses:80 77 78 79 | Used by:91 |
Symbol 82 Graphic | Used by:87 90 | |
Symbol 83 Bitmap | Used by:84 | |
Symbol 84 Graphic | Uses:83 | Used by:87 |
Symbol 85 Graphic | Used by:87 90 | |
Symbol 86 Graphic | Used by:87 90 | |
Symbol 87 Button | Uses:82 84 85 86 | Used by:91 |
Symbol 88 Bitmap | Used by:89 | |
Symbol 89 Graphic | Uses:88 | Used by:90 |
Symbol 90 Button | Uses:82 89 85 86 | Used by:91 |
Symbol 91 MovieClip | Uses:73 75 76 81 87 90 | Used by:Timeline |
Symbol 92 Graphic | Used by:Timeline | |
Symbol 93 Font | Used by:94 342 813 814 862 863 1101 1102 1291 1301 1302 1303 1311 1313 1314 1319 1320 | |
Symbol 94 Text | Uses:93 | Used by:Timeline |
Symbol 95 Graphic | Used by:114 | |
Symbol 96 Graphic | Used by:114 | |
Symbol 97 Graphic | Used by:114 | |
Symbol 98 Graphic | Used by:114 | |
Symbol 99 Graphic | Used by:114 | |
Symbol 100 Graphic | Used by:114 | |
Symbol 101 Graphic | Used by:114 | |
Symbol 102 Graphic | Used by:114 | |
Symbol 103 Graphic | Used by:114 | |
Symbol 104 Graphic | Used by:114 | |
Symbol 105 Graphic | Used by:114 | |
Symbol 106 Graphic | Used by:114 | |
Symbol 107 Graphic | Used by:114 | |
Symbol 108 Graphic | Used by:114 | |
Symbol 109 Graphic | Used by:114 | |
Symbol 110 Graphic | Used by:114 | |
Symbol 111 Graphic | Used by:114 | |
Symbol 112 Graphic | Used by:114 | |
Symbol 113 Graphic | Used by:114 | |
Symbol 114 MovieClip | Uses:95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | Used by:Timeline |
Symbol 115 Sound [00] | Used by:128 593 | |
Symbol 116 Sound [01] | Used by:128 | |
Symbol 117 Sound [02] | Used by:128 | |
Symbol 118 Sound [03] | Used by:128 | |
Symbol 119 Sound [04] | Used by:128 | |
Symbol 120 Sound [05] | Used by:128 | |
Symbol 121 Sound [06] | Used by:128 | |
Symbol 122 Sound [10] | Used by:128 | |
Symbol 123 Sound [07] | Used by:128 | |
Symbol 124 Sound [09] | Used by:128 | |
Symbol 125 Sound [fina] | Used by:128 | |
Symbol 126 Sound [finb] | Used by:128 | |
Symbol 127 Sound [warning] | Used by:128 | |
Symbol 128 MovieClip | Uses:115 116 117 118 119 120 121 122 123 124 125 126 127 | Used by:Timeline |
Symbol 129 Bitmap | Used by:130 | |
Symbol 130 Graphic | Uses:129 | Used by:214 |
Symbol 131 Graphic | Used by:214 | |
Symbol 132 Graphic | Used by:214 | |
Symbol 133 Bitmap | Used by:134 | |
Symbol 134 Graphic | Uses:133 | Used by:214 |
Symbol 135 Graphic | Used by:214 | |
Symbol 136 Bitmap | Used by:137 | |
Symbol 137 Graphic | Uses:136 | Used by:214 |
Symbol 138 Font | Used by:139 210 211 212 213 215 216 218 219 222 223 225 226 229 230 235 236 244 245 246 247 249 250 251 252 254 352 577 578 579 587 588 589 590 591 592 594 596 597 598 601 602 603 605 606 607 608 610 613 1242 1244 1245 1258 1325 1326 1327 1328 1329 1330 | |
Symbol 139 EditableText | Uses:138 | Used by:214 |
Symbol 140 Graphic | Used by:214 | |
Symbol 141 Bitmap | Used by:142 255 | |
Symbol 142 Graphic | Uses:141 | Used by:214 |
Symbol 143 Bitmap | Used by:144 145 278 279 280 | |
Symbol 144 Graphic | Uses:143 | Used by:147 |
Symbol 145 Graphic | Uses:143 | Used by:147 |
Symbol 146 Sound | Used by:147 | |
Symbol 147 MovieClip | Uses:144 145 146 | Used by:191 |
Symbol 148 Bitmap | Used by:149 150 151 185 567 576 583 826 | |
Symbol 149 Graphic | Uses:148 | Used by:152 |
Symbol 150 Graphic | Uses:148 | Used by:152 |
Symbol 151 Graphic | Uses:148 | Used by:152 |
Symbol 152 MovieClip | Uses:149 150 151 | Used by:191 194 282 399 806 829 |
Symbol 153 Graphic | Used by:173 | |
Symbol 154 Graphic | Used by:173 | |
Symbol 155 Graphic | Used by:173 | |
Symbol 156 Graphic | Used by:173 | |
Symbol 157 Graphic | Used by:173 | |
Symbol 158 Graphic | Used by:173 | |
Symbol 159 Graphic | Used by:173 | |
Symbol 160 Graphic | Used by:173 | |
Symbol 161 Graphic | Used by:173 | |
Symbol 162 Graphic | Used by:173 | |
Symbol 163 Graphic | Used by:173 | |
Symbol 164 Graphic | Used by:173 | |
Symbol 165 Graphic | Used by:173 | |
Symbol 166 Graphic | Used by:173 | |
Symbol 167 Graphic | Used by:173 | |
Symbol 168 Graphic | Used by:173 | |
Symbol 169 Graphic | Used by:173 | |
Symbol 170 Graphic | Used by:173 | |
Symbol 171 Graphic | Used by:173 | |
Symbol 172 Graphic | Used by:173 | |
Symbol 173 MovieClip | Uses:153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | Used by:179 |
Symbol 174 Sound | Used by:179 | |
Symbol 175 Graphic | Used by:178 | |
Symbol 176 Graphic | Used by:178 | |
Symbol 177 Graphic | Used by:178 | |
Symbol 178 MovieClip | Uses:175 176 177 | Used by:179 365 |
Symbol 179 MovieClip | Uses:173 174 178 SS2 | Used by:180 |
Symbol 180 MovieClip | Uses:179 | Used by:191 829 |
Symbol 181 Bitmap | Used by:182 183 | |
Symbol 182 Graphic | Uses:181 | Used by:184 |
Symbol 183 Graphic | Uses:181 | Used by:184 |
Symbol 184 MovieClip | Uses:182 183 | Used by:191 |
Symbol 185 Graphic | Uses:148 | Used by:187 |
Symbol 186 Sound | Used by:187 | |
Symbol 187 MovieClip | Uses:185 186 | Used by:191 |
Symbol 188 Bitmap | Used by:189 | |
Symbol 189 Graphic | Uses:188 | Used by:190 |
Symbol 190 MovieClip | Uses:189 | Used by:191 |
Symbol 191 MovieClip | Uses:147 152 180 184 187 190 | Used by:214 Timeline |
Symbol 192 Bitmap | Used by:193 | |
Symbol 193 Graphic | Uses:192 | Used by:194 |
Symbol 194 MovieClip | Uses:193 152 | Used by:214 |
Symbol 195 Bitmap | Used by:196 | |
Symbol 196 Graphic | Uses:195 | Used by:197 |
Symbol 197 MovieClip | Uses:196 | Used by:214 1308 |
Symbol 198 Sound | Used by:199 | |
Symbol 199 MovieClip | Uses:198 | Used by:214 367 399 |
Symbol 200 Bitmap | Used by:201 202 203 | |
Symbol 201 Graphic | Uses:200 | Used by:204 |
Symbol 202 Graphic | Uses:200 | Used by:204 |
Symbol 203 Graphic | Uses:200 | Used by:204 |
Symbol 204 MovieClip | Uses:201 202 203 | Used by:214 829 |
Symbol 205 Bitmap | Used by:206 | |
Symbol 206 Graphic | Uses:205 | Used by:214 Timeline |
Symbol 207 Bitmap | Used by:208 | |
Symbol 208 Graphic | Uses:207 | Used by:209 |
Symbol 209 MovieClip | Uses:208 | Used by:214 Timeline |
Symbol 210 Text | Uses:138 | Used by:214 Timeline |
Symbol 211 Text | Uses:138 | Used by:214 |
Symbol 212 Text | Uses:138 | Used by:214 |
Symbol 213 Text | Uses:138 | Used by:214 |
Symbol 214 MovieClip | Uses:130 131 132 134 135 137 25 139 140 142 191 194 197 199 204 206 209 210 211 212 213 SS3 | Used by:Timeline |
Symbol 215 Text | Uses:138 | Used by:217 |
Symbol 216 Text | Uses:138 | Used by:217 |
Symbol 217 Button | Uses:215 216 | Used by:Timeline |
Symbol 218 Text | Uses:138 | Used by:220 221 |
Symbol 219 Text | Uses:138 | Used by:220 |
Symbol 220 MovieClip | Uses:218 219 | Used by:221 |
Symbol 221 Button | Uses:220 218 | Used by:Timeline |
Symbol 222 Text | Uses:138 | Used by:224 |
Symbol 223 Text | Uses:138 | Used by:224 |
Symbol 224 Button | Uses:222 223 | Used by:Timeline |
Symbol 225 Text | Uses:138 | Used by:227 228 |
Symbol 226 Text | Uses:138 | Used by:227 |
Symbol 227 MovieClip | Uses:225 226 | Used by:228 |
Symbol 228 Button | Uses:227 225 | Used by:Timeline |
Symbol 229 Text | Uses:138 | Used by:231 232 |
Symbol 230 Text | Uses:138 | Used by:231 |
Symbol 231 MovieClip | Uses:229 230 | Used by:232 |
Symbol 232 Button | Uses:231 229 | Used by:Timeline |
Symbol 233 Font | Used by:234 1311 | |
Symbol 234 Text | Uses:233 | Used by:Timeline |
Symbol 235 Text | Uses:138 | Used by:Timeline |
Symbol 236 Text | Uses:138 | Used by:Timeline |
Symbol 237 Graphic | Used by:239 240 241 242 243 248 253 595 599 600 604 612 614 615 618 619 1323 1324 | |
Symbol 238 Graphic | Used by:239 240 241 242 243 248 253 595 599 600 604 612 614 615 618 619 1323 1324 | |
Symbol 239 Button | Uses:237 238 | Used by:Timeline |
Symbol 240 Button | Uses:237 238 | Used by:Timeline |
Symbol 241 Button | Uses:237 238 | Used by:Timeline |
Symbol 242 Button | Uses:237 238 | Used by:Timeline |
Symbol 243 Button | Uses:237 238 | Used by:Timeline |
Symbol 244 Text | Uses:138 | Used by:Timeline |
Symbol 245 Text | Uses:138 | Used by:Timeline |
Symbol 246 EditableText | Uses:138 | Used by:Timeline |
Symbol 247 EditableText | Uses:138 | Used by:Timeline |
Symbol 248 Button | Uses:237 238 | Used by:Timeline |
Symbol 249 EditableText | Uses:138 | Used by:Timeline |
Symbol 250 Text | Uses:138 | Used by:Timeline |
Symbol 251 Text | Uses:138 | Used by:Timeline |
Symbol 252 Text | Uses:138 | Used by:Timeline |
Symbol 253 Button | Uses:237 238 | Used by:Timeline |
Symbol 254 Text | Uses:138 | Used by:Timeline |
Symbol 255 Graphic | Uses:141 | Used by:1322 Timeline |
Symbol 256 Graphic | Used by:257 | |
Symbol 257 MovieClip | Uses:256 | Used by:1204 1237 1248 Timeline |
Symbol 258 MovieClip | Uses:24 | Used by:259 |
Symbol 259 MovieClip | Uses:258 | Used by:260 263 283 367 368 410 565 646 754 755 757 781 800 834 850 874 881 886 889 972 1062 1095 1098 1124 1130 1159 1165 1249 |
Symbol 260 MovieClip | Uses:259 | Used by:283 368 410 565 646 755 771 800 806 835 850 861 889 897 902 907 1098 1113 1117 1130 1136 1165 1249 |
Symbol 261 MovieClip | Uses:73 | Used by:262 |
Symbol 262 MovieClip | Uses:261 | Used by:283 368 410 565 646 755 771 806 835 850 897 902 907 1098 1113 1117 1130 1136 |
Symbol 263 MovieClip | Uses:259 | Used by:283 368 410 565 646 755 800 806 835 861 889 902 907 1113 1117 1136 1165 1249 |
Symbol 264 Bitmap | Used by:265 | |
Symbol 265 Graphic | Uses:264 | Used by:283 368 410 565 |
Symbol 266 Bitmap | Used by:267 | |
Symbol 267 Graphic | Uses:266 | Used by:283 368 382 399 410 565 593 |
Symbol 268 Graphic | Used by:277 390 | |
Symbol 269 Graphic | Used by:277 | |
Symbol 270 Graphic | Used by:277 | |
Symbol 271 Graphic | Used by:277 | |
Symbol 272 Graphic | Used by:277 | |
Symbol 273 Graphic | Used by:277 390 | |
Symbol 274 Graphic | Used by:277 | |
Symbol 275 Graphic | Used by:277 390 | |
Symbol 276 Graphic | Used by:277 390 | |
Symbol 277 MovieClip | Uses:268 269 270 271 272 273 274 275 276 | Used by:282 367 |
Symbol 278 Graphic | Uses:143 | Used by:282 |
Symbol 279 Graphic | Uses:143 | Used by:282 |
Symbol 280 Graphic | Uses:143 | Used by:282 |
Symbol 281 Sound | Used by:282 | |
Symbol 282 MovieClip | Uses:152 277 278 279 280 281 SS4 | Used by:283 |
Symbol 283 MovieClip | Uses:260 262 263 265 267 70 282 259 | Used by:Timeline |
Symbol 284 Bitmap | Used by:285 286 287 289 290 291 292 294 295 296 297 298 299 300 301 303 305 307 308 309 311 312 314 316 317 318 319 320 321 323 324 325 326 327 328 331 332 333 334 337 339 340 341 344 1218 1221 1230 1231 1232 1233 1235 | |
Symbol 285 Graphic | Uses:284 | Used by:288 |
Symbol 286 Graphic | Uses:284 | Used by:288 |
Symbol 287 Graphic | Uses:284 | Used by:288 |
Symbol 288 MovieClip | Uses:285 286 287 | Used by:348 1237 Timeline |
Symbol 289 Graphic | Uses:284 | Used by:293 |
Symbol 290 Graphic | Uses:284 | Used by:293 |
Symbol 291 Graphic | Uses:284 | Used by:293 |
Symbol 292 Graphic | Uses:284 | Used by:293 |
Symbol 293 MovieClip | Uses:289 290 291 292 | Used by:348 399 1308 |
Symbol 294 Graphic | Uses:284 | Used by:302 |
Symbol 295 Graphic | Uses:284 | Used by:302 |
Symbol 296 Graphic | Uses:284 | Used by:302 |
Symbol 297 Graphic | Uses:284 | Used by:302 |
Symbol 298 Graphic | Uses:284 | Used by:302 |
Symbol 299 Graphic | Uses:284 | Used by:302 |
Symbol 300 Graphic | Uses:284 | Used by:302 |
Symbol 301 Graphic | Uses:284 | Used by:302 |
Symbol 302 MovieClip | Uses:294 295 296 297 298 299 300 301 | Used by:348 1204 1248 |
Symbol 303 Graphic | Uses:284 | Used by:304 |
Symbol 304 MovieClip | Uses:303 | Used by:348 1308 |
Symbol 305 Graphic | Uses:284 | Used by:306 |
Symbol 306 MovieClip | Uses:305 | Used by:348 |
Symbol 307 Graphic | Uses:284 | Used by:310 |
Symbol 308 Graphic | Uses:284 | Used by:310 |
Symbol 309 Graphic | Uses:284 | Used by:310 |
Symbol 310 MovieClip | Uses:307 308 309 | Used by:348 1204 |
Symbol 311 Graphic | Uses:284 | Used by:348 |
Symbol 312 Graphic | Uses:284 | Used by:315 |
Symbol 313 Sound | Used by:315 1248 | |
Symbol 314 Graphic | Uses:284 | Used by:315 |
Symbol 315 MovieClip | Uses:312 313 314 | Used by:348 1308 |
Symbol 316 Graphic | Uses:284 | Used by:322 |
Symbol 317 Graphic | Uses:284 | Used by:322 |
Symbol 318 Graphic | Uses:284 | Used by:322 |
Symbol 319 Graphic | Uses:284 | Used by:322 |
Symbol 320 Graphic | Uses:284 | Used by:322 |
Symbol 321 Graphic | Uses:284 | Used by:322 |
Symbol 322 MovieClip | Uses:316 317 318 319 320 321 | Used by:348 |
Symbol 323 Graphic | Uses:284 | Used by:329 |
Symbol 324 Graphic | Uses:284 | Used by:329 |
Symbol 325 Graphic | Uses:284 | Used by:329 |
Symbol 326 Graphic | Uses:284 | Used by:329 |
Symbol 327 Graphic | Uses:284 | Used by:329 336 |
Symbol 328 Graphic | Uses:284 | Used by:329 |
Symbol 329 MovieClip | Uses:323 324 325 326 327 328 | Used by:348 |
Symbol 330 Sound | Used by:348 752 | |
Symbol 331 Graphic | Uses:284 | Used by:335 |
Symbol 332 Graphic | Uses:284 | Used by:335 |
Symbol 333 Graphic | Uses:284 | Used by:335 |
Symbol 334 Graphic | Uses:284 | Used by:335 |
Symbol 335 MovieClip | Uses:331 332 333 334 | Used by:348 |
Symbol 336 MovieClip | Uses:327 | Used by:348 |
Symbol 337 Graphic | Uses:284 | Used by:338 |
Symbol 338 MovieClip | Uses:337 | Used by:348 |
Symbol 339 Graphic | Uses:284 | Used by:343 |
Symbol 340 Graphic | Uses:284 | Used by:343 |
Symbol 341 Graphic | Uses:284 | Used by:343 |
Symbol 342 Text | Uses:93 | Used by:343 |
Symbol 343 MovieClip | Uses:339 340 341 342 | Used by:348 |
Symbol 344 Graphic | Uses:284 | Used by:348 |
Symbol 345 Bitmap | Used by:346 1309 | |
Symbol 346 Graphic | Uses:345 | Used by:347 1310 |
Symbol 347 MovieClip | Uses:346 | Used by:348 751 |
Symbol 348 MovieClip | Uses:288 25 293 302 304 306 310 311 315 322 329 330 335 336 338 343 344 347 | Used by:Timeline |
Symbol 349 Bitmap | Used by:350 356 | |
Symbol 350 Graphic | Uses:349 | Used by:357 |
Symbol 351 Graphic | Used by:357 377 | |
Symbol 352 EditableText | Uses:138 | Used by:357 |
Symbol 353 Graphic | Used by:357 377 | |
Symbol 354 Bitmap | Used by:355 | |
Symbol 355 Graphic | Uses:354 | Used by:357 377 |
Symbol 356 Graphic | Uses:349 | Used by:357 377 |
Symbol 357 MovieClip | Uses:350 351 74 352 353 355 356 | Used by:Timeline |
Symbol 358 Bitmap | Used by:359 360 362 363 364 906 | |
Symbol 359 Graphic | Uses:358 | Used by:361 |
Symbol 360 Graphic | Uses:358 | Used by:361 |
Symbol 361 MovieClip | Uses:359 360 | Used by:366 |
Symbol 362 Graphic | Uses:358 | Used by:365 |
Symbol 363 Graphic | Uses:358 | Used by:365 |
Symbol 364 Graphic | Uses:358 | Used by:365 |
Symbol 365 MovieClip | Uses:362 178 363 364 | Used by:366 |
Symbol 366 MovieClip | Uses:361 365 | Used by:367 |
Symbol 367 MovieClip | Uses:366 259 277 199 | Used by:368 565 |
Symbol 368 MovieClip | Uses:260 262 263 265 267 259 70 367 | Used by:Timeline |
Symbol 369 Bitmap | Used by:370 | |
Symbol 370 Graphic | Uses:369 | Used by:372 |
Symbol 371 Sound | Used by:372 | |
Symbol 372 MovieClip | Uses:370 371 SS5 | Used by:Timeline |
Symbol 373 Bitmap | Used by:374 611 1332 | |
Symbol 374 Graphic | Uses:373 | Used by:377 |
Symbol 375 Bitmap | Used by:376 | |
Symbol 376 Graphic | Uses:375 | Used by:377 |
Symbol 377 MovieClip | Uses:356 351 374 353 355 376 | Used by:Timeline |
Symbol 378 Graphic | Used by:399 | |
Symbol 379 Graphic | Used by:399 | |
Symbol 380 Graphic | Used by:399 | |
Symbol 381 Sound | Used by:399 | |
Symbol 382 MovieClip | Uses:267 | Used by:399 |
Symbol 383 Graphic | Used by:399 | |
Symbol 384 Graphic | Used by:399 | |
Symbol 385 Graphic | Used by:390 | |
Symbol 386 Graphic | Used by:390 | |
Symbol 387 Graphic | Used by:390 925 | |
Symbol 388 Graphic | Used by:390 | |
Symbol 389 Graphic | Used by:390 | |
Symbol 390 MovieClip | Uses:268 385 386 387 388 273 389 275 276 | Used by:399 706 1308 |
Symbol 391 Bitmap | Used by:392 393 394 395 396 397 416 417 418 419 421 422 423 424 425 426 427 428 429 430 432 433 434 435 436 438 439 440 441 442 444 445 447 449 450 451 452 454 455 456 458 459 460 461 462 463 465 466 467 469 498 500 501 502 503 504 505 | |
Symbol 392 Graphic | Uses:391 | Used by:398 |
Symbol 393 Graphic | Uses:391 | Used by:398 |
Symbol 394 Graphic | Uses:391 | Used by:398 |
Symbol 395 Graphic | Uses:391 | Used by:398 |
Symbol 396 Graphic | Uses:391 | Used by:398 |
Symbol 397 Graphic | Uses:391 | Used by:398 |
Symbol 398 MovieClip | Uses:392 393 394 395 396 397 | Used by:399 559 593 1204 1237 1248 Timeline |
Symbol 399 MovieClip | Uses:293 378 152 379 380 381 382 383 384 390 199 267 398 SS6 | Used by:Timeline |
Symbol 400 Bitmap | Used by:401 402 403 404 405 | |
Symbol 401 Graphic | Uses:400 | Used by:408 |
Symbol 402 Graphic | Uses:400 | Used by:408 |
Symbol 403 Graphic | Uses:400 | Used by:408 |
Symbol 404 Graphic | Uses:400 | Used by:406 |
Symbol 405 Graphic | Uses:400 | Used by:406 |
Symbol 406 MovieClip | Uses:404 405 11 64 | Used by:408 409 |
Symbol 407 Sound | Used by:408 | |
Symbol 408 MovieClip | Uses:401 402 403 406 407 | Used by:409 |
Symbol 409 MovieClip | Uses:408 406 | Used by:410 565 646 755 835 897 907 |
Symbol 410 MovieClip | Uses:260 262 263 267 265 409 70 259 | Used by:Timeline |
Symbol 411 Graphic | Used by:412 | |
Symbol 412 MovieClip | Uses:411 | Used by:413 414 |
Symbol 413 MovieClip | Uses:412 | Used by:415 |
Symbol 414 MovieClip | Uses:412 | Used by:415 |
Symbol 415 MovieClip | Uses:413 414 | Used by:559 710 |
Symbol 416 Graphic | Uses:391 | Used by:420 |
Symbol 417 Graphic | Uses:391 | Used by:420 |
Symbol 418 Graphic | Uses:391 | Used by:420 |
Symbol 419 Graphic | Uses:391 | Used by:420 |
Symbol 420 MovieClip | Uses:416 417 418 419 | Used by:559 |
Symbol 421 Graphic | Uses:391 | Used by:431 |
Symbol 422 Graphic | Uses:391 | Used by:431 |
Symbol 423 Graphic | Uses:391 | Used by:431 |
Symbol 424 Graphic | Uses:391 | Used by:431 |
Symbol 425 Graphic | Uses:391 | Used by:431 |
Symbol 426 Graphic | Uses:391 | Used by:431 |
Symbol 427 Graphic | Uses:391 | Used by:431 |
Symbol 428 Graphic | Uses:391 | Used by:431 |
Symbol 429 Graphic | Uses:391 | Used by:431 |
Symbol 430 Graphic | Uses:391 | Used by:431 |
Symbol 431 MovieClip | Uses:421 422 423 424 425 426 427 428 429 430 | Used by:559 593 1204 1248 |
Symbol 432 Graphic | Uses:391 | Used by:437 |
Symbol 433 Graphic | Uses:391 | Used by:437 |
Symbol 434 Graphic | Uses:391 | Used by:437 |
Symbol 435 Graphic | Uses:391 | Used by:437 |
Symbol 436 Graphic | Uses:391 | Used by:437 |
Symbol 437 MovieClip | Uses:432 433 434 435 436 | Used by:559 1308 |
Symbol 438 Graphic | Uses:391 | Used by:443 |
Symbol 439 Graphic | Uses:391 | Used by:443 |
Symbol 440 Graphic | Uses:391 | Used by:443 |
Symbol 441 Graphic | Uses:391 | Used by:443 |
Symbol 442 Graphic | Uses:391 | Used by:443 |
Symbol 443 MovieClip | Uses:438 439 440 441 442 | Used by:559 |
Symbol 444 Graphic | Uses:391 | Used by:446 |
Symbol 445 Graphic | Uses:391 | Used by:446 |
Symbol 446 MovieClip | Uses:444 445 | Used by:559 |
Symbol 447 Graphic | Uses:391 | Used by:453 |
Symbol 448 Sound | Used by:453 710 1308 | |
Symbol 449 Graphic | Uses:391 | Used by:453 |
Symbol 450 Graphic | Uses:391 | Used by:453 |
Symbol 451 Graphic | Uses:391 | Used by:453 |
Symbol 452 Graphic | Uses:391 | Used by:453 |
Symbol 453 MovieClip | Uses:447 448 449 450 451 452 | Used by:559 1212 |
Symbol 454 Graphic | Uses:391 | Used by:457 |
Symbol 455 Graphic | Uses:391 | Used by:457 |
Symbol 456 Graphic | Uses:391 | Used by:457 |
Symbol 457 MovieClip | Uses:454 455 456 | Used by:559 |
Symbol 458 Graphic | Uses:391 | Used by:464 |
Symbol 459 Graphic | Uses:391 | Used by:464 |
Symbol 460 Graphic | Uses:391 | Used by:464 |
Symbol 461 Graphic | Uses:391 | Used by:464 |
Symbol 462 Graphic | Uses:391 | Used by:464 |
Symbol 463 Graphic | Uses:391 | Used by:464 |
Symbol 464 MovieClip | Uses:458 459 460 461 462 463 | Used by:559 |
Symbol 465 Graphic | Uses:391 | Used by:468 |
Symbol 466 Graphic | Uses:391 | Used by:468 |
Symbol 467 Graphic | Uses:391 | Used by:468 |
Symbol 468 MovieClip | Uses:465 466 467 | Used by:559 |
Symbol 469 Graphic | Uses:391 | Used by:497 |
Symbol 470 Graphic | Used by:497 | |
Symbol 471 Graphic | Used by:497 704 | |
Symbol 472 Sound | Used by:497 | |
Symbol 473 Graphic | Used by:497 704 | |
Symbol 474 Graphic | Used by:497 704 | |
Symbol 475 Graphic | Used by:497 704 | |
Symbol 476 Graphic | Used by:497 | |
Symbol 477 Graphic | Used by:497 | |
Symbol 478 Graphic | Used by:497 | |
Symbol 479 Graphic | Used by:497 | |
Symbol 480 Graphic | Used by:497 | |
Symbol 481 Graphic | Used by:497 | |
Symbol 482 Graphic | Used by:497 | |
Symbol 483 Graphic | Used by:497 | |
Symbol 484 Graphic | Used by:497 | |
Symbol 485 Graphic | Used by:497 | |
Symbol 486 Graphic | Used by:497 | |
Symbol 487 Graphic | Used by:497 | |
Symbol 488 Graphic | Used by:497 | |
Symbol 489 Graphic | Used by:497 | |
Symbol 490 Graphic | Used by:497 | |
Symbol 491 Graphic | Used by:497 | |
Symbol 492 Graphic | Used by:497 | |
Symbol 493 Graphic | Used by:497 | |
Symbol 494 Graphic | Used by:497 | |
Symbol 495 Graphic | Used by:497 | |
Symbol 496 Graphic | Used by:497 704 | |
Symbol 497 MovieClip | Uses:469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 | Used by:559 |
Symbol 498 Graphic | Uses:391 | Used by:506 |
Symbol 499 Sound | Used by:506 | |
Symbol 500 Graphic | Uses:391 | Used by:506 |
Symbol 501 Graphic | Uses:391 | Used by:506 |
Symbol 502 Graphic | Uses:391 | Used by:506 |
Symbol 503 Graphic | Uses:391 | Used by:506 |
Symbol 504 Graphic | Uses:391 | Used by:506 |
Symbol 505 Graphic | Uses:391 | Used by:506 |
Symbol 506 MovieClip | Uses:498 499 500 501 502 503 504 505 | Used by:559 1308 |
Symbol 507 Bitmap | Used by:508 510 511 512 513 514 516 517 518 519 520 522 523 524 525 526 527 528 529 531 532 533 534 535 536 538 539 1215 | |
Symbol 508 Graphic | Uses:507 | Used by:515 |
Symbol 509 Sound | Used by:515 530 537 | |
Symbol 510 Graphic | Uses:507 | Used by:515 |
Symbol 511 Graphic | Uses:507 | Used by:515 |
Symbol 512 Graphic | Uses:507 | Used by:515 |
Symbol 513 Graphic | Uses:507 | Used by:515 |
Symbol 514 Graphic | Uses:507 | Used by:515 |
Symbol 515 MovieClip | Uses:508 509 510 511 512 513 514 | Used by:559 |
Symbol 516 Graphic | Uses:507 | Used by:521 |
Symbol 517 Graphic | Uses:507 | Used by:521 |
Symbol 518 Graphic | Uses:507 | Used by:521 |
Symbol 519 Graphic | Uses:507 | Used by:521 |
Symbol 520 Graphic | Uses:507 | Used by:521 |
Symbol 521 MovieClip | Uses:516 517 518 519 520 | Used by:559 |
Symbol 522 Graphic | Uses:507 | Used by:530 |
Symbol 523 Graphic | Uses:507 | Used by:530 |
Symbol 524 Graphic | Uses:507 | Used by:530 |
Symbol 525 Graphic | Uses:507 | Used by:530 |
Symbol 526 Graphic | Uses:507 | Used by:530 |
Symbol 527 Graphic | Uses:507 | Used by:530 |
Symbol 528 Graphic | Uses:507 | Used by:530 |
Symbol 529 Graphic | Uses:507 | Used by:530 |
Symbol 530 MovieClip | Uses:522 509 523 524 525 526 527 528 529 | Used by:559 |
Symbol 531 Graphic | Uses:507 | Used by:537 |
Symbol 532 Graphic | Uses:507 | Used by:537 |
Symbol 533 Graphic | Uses:507 | Used by:537 |
Symbol 534 Graphic | Uses:507 | Used by:537 |
Symbol 535 Graphic | Uses:507 | Used by:537 |
Symbol 536 Graphic | Uses:507 | Used by:537 |
Symbol 537 MovieClip | Uses:531 509 532 533 534 535 536 | Used by:559 |
Symbol 538 Graphic | Uses:507 | Used by:540 |
Symbol 539 ShapeTweening | Uses:507 | Used by:540 |
Symbol 540 MovieClip | Uses:538 539 | Used by:559 |
Symbol 541 Bitmap | Used by:542 543 544 545 546 547 548 549 550 551 553 555 556 557 | |
Symbol 542 Graphic | Uses:541 | Used by:552 |
Symbol 543 Graphic | Uses:541 | Used by:552 |
Symbol 544 Graphic | Uses:541 | Used by:552 |
Symbol 545 Graphic | Uses:541 | Used by:552 |
Symbol 546 Graphic | Uses:541 | Used by:552 |
Symbol 547 Graphic | Uses:541 | Used by:552 |
Symbol 548 Graphic | Uses:541 | Used by:552 |
Symbol 549 Graphic | Uses:541 | Used by:552 |
Symbol 550 Graphic | Uses:541 | Used by:552 |
Symbol 551 Graphic | Uses:541 | Used by:552 |
Symbol 552 MovieClip | Uses:542 543 544 545 546 547 548 549 550 551 | Used by:559 |
Symbol 553 Graphic | Uses:541 | Used by:554 |
Symbol 554 MovieClip | Uses:553 | Used by:559 |
Symbol 555 Graphic | Uses:541 | Used by:558 |
Symbol 556 Graphic | Uses:541 | Used by:558 |
Symbol 557 Graphic | Uses:541 | Used by:558 |
Symbol 558 MovieClip | Uses:555 556 557 | Used by:559 |
Symbol 559 MovieClip | Uses:398 25 415 420 431 437 443 446 453 457 464 468 497 506 515 521 530 537 540 552 554 558 | Used by:Timeline |
Symbol 560 Bitmap | Used by:561 562 563 | |
Symbol 561 Graphic | Uses:560 | Used by:564 |
Symbol 562 Graphic | Uses:560 | Used by:564 |
Symbol 563 Graphic | Uses:560 | Used by:564 |
Symbol 564 MovieClip | Uses:561 562 563 | Used by:Timeline |
Symbol 565 MovieClip | Uses:260 262 263 265 267 259 70 367 409 | Used by:Timeline |
Symbol 566 Bitmap | Used by:567 574 | |
Symbol 567 Graphic | Uses:148 566 | Used by:593 |
Symbol 568 Graphic | Used by:593 | |
Symbol 569 Graphic | Used by:593 | |
Symbol 570 Graphic | Used by:593 | |
Symbol 571 Graphic | Used by:593 | |
Symbol 572 Graphic | Used by:593 | |
Symbol 573 Graphic | Used by:593 | |
Symbol 574 Graphic | Uses:566 | Used by:593 |
Symbol 575 Graphic | Used by:593 | |
Symbol 576 Graphic | Uses:148 | Used by:593 |
Symbol 577 EditableText | Uses:138 | Used by:593 |
Symbol 578 Text | Uses:138 | Used by:593 |
Symbol 579 EditableText | Uses:138 | Used by:593 |
Symbol 580 Sound | Used by:593 1308 | |
Symbol 581 Sound | Used by:593 | |
Symbol 582 MovieClip | Used by:593 | |
Symbol 583 Graphic | Uses:148 | Used by:593 |
Symbol 584 Bitmap | Used by:585 | |
Symbol 585 Graphic | Uses:584 | Used by:586 |
Symbol 586 MovieClip | Uses:585 | Used by:593 |
Symbol 587 EditableText | Uses:138 | Used by:593 |
Symbol 588 EditableText | Uses:138 | Used by:593 |
Symbol 589 EditableText | Uses:138 | Used by:593 |
Symbol 590 EditableText | Uses:138 | Used by:593 |
Symbol 591 EditableText | Uses:138 | Used by:593 |
Symbol 592 EditableText | Uses:138 | Used by:593 |
Symbol 593 MovieClip | Uses:567 267 431 115 568 398 569 570 571 572 573 574 575 576 25 577 578 579 580 581 582 583 586 587 588 589 590 591 592 SS7 | Used by:Timeline |
Symbol 594 Text | Uses:138 | Used by:Timeline |
Symbol 595 Button | Uses:237 238 | Used by:Timeline |
Symbol 596 Text | Uses:138 | Used by:Timeline |
Symbol 597 EditableText | Uses:138 | Used by:Timeline |
Symbol 598 EditableText | Uses:138 | Used by:Timeline |
Symbol 599 Button | Uses:237 238 | Used by:Timeline |
Symbol 600 Button | Uses:237 238 | Used by:Timeline |
Symbol 601 Text | Uses:138 | Used by:Timeline |
Symbol 602 EditableText | Uses:138 | Used by:Timeline |
Symbol 603 EditableText | Uses:138 | Used by:Timeline |
Symbol 604 Button | Uses:237 238 | Used by:Timeline |
Symbol 605 Text | Uses:138 | Used by:Timeline |
Symbol 606 Text | Uses:138 | Used by:609 |
Symbol 607 Text | Uses:138 | Used by:609 |
Symbol 608 Text | Uses:138 | Used by:609 |
Symbol 609 Button | Uses:606 607 608 | Used by:Timeline |
Symbol 610 Text | Uses:138 | Used by:Timeline |
Symbol 611 Graphic | Uses:373 | Used by:612 |
Symbol 612 Button | Uses:237 611 238 | Used by:Timeline |
Symbol 613 Text | Uses:138 | Used by:Timeline |
Symbol 614 Button | Uses:237 238 | Used by:Timeline |
Symbol 615 Button | Uses:237 238 | Used by:Timeline |
Symbol 616 Sound | Used by:617 | |
Symbol 617 MovieClip | Uses:616 | Used by:Timeline |
Symbol 618 Button | Uses:237 238 | Used by:Timeline |
Symbol 619 Button | Uses:237 238 | Used by:Timeline |
Symbol 620 Bitmap | Used by:621 622 623 624 711 713 714 715 716 717 719 721 723 724 726 728 729 731 733 735 736 737 738 739 741 742 743 744 746 748 750 819 820 826 | |
Symbol 621 Graphic | Uses:620 | Used by:625 |
Symbol 622 Graphic | Uses:620 | Used by:625 |
Symbol 623 Graphic | Uses:620 | Used by:625 |
Symbol 624 Graphic | Uses:620 | Used by:625 |
Symbol 625 MovieClip | Uses:621 622 623 624 | Used by:752 Timeline |
Symbol 626 Bitmap | Used by:627 628 649 650 651 652 653 655 656 657 658 659 660 661 662 664 665 667 668 670 672 673 675 676 678 680 682 705 707 823 824 | |
Symbol 627 Graphic | Uses:626 | Used by:629 |
Symbol 628 Graphic | Uses:626 | Used by:629 |
Symbol 629 MovieClip | Uses:627 628 | Used by:710 Timeline |
Symbol 630 Bitmap | Used by:631 | |
Symbol 631 Graphic | Uses:630 | Used by:Timeline |
Symbol 632 Bitmap | Used by:633 802 | |
Symbol 633 Graphic | Uses:632 | Used by:646 |
Symbol 634 Bitmap | Used by:635 636 637 638 | |
Symbol 635 Graphic | Uses:634 | Used by:646 755 771 800 806 835 897 |
Symbol 636 Graphic | Uses:634 | Used by:646 755 771 800 806 835 |
Symbol 637 Graphic | Uses:634 | Used by:646 755 771 800 806 835 |
Symbol 638 Graphic | Uses:634 | Used by:646 755 771 800 806 835 897 |
Symbol 639 Bitmap | Used by:640 801 803 807 830 | |
Symbol 640 Graphic | Uses:639 | Used by:646 755 771 800 |
Symbol 641 Bitmap | Used by:642 | |
Symbol 642 Graphic | Uses:641 | Used by:646 |
Symbol 643 Bitmap | Used by:644 | |
Symbol 644 Graphic | Uses:643 | Used by:645 |
Symbol 645 MovieClip | Uses:644 | Used by:646 755 771 806 835 861 897 902 907 1113 1117 |
Symbol 646 MovieClip | Uses:260 262 259 263 633 635 636 637 638 640 642 70 409 645 | Used by:Timeline |
Symbol 647 Graphic | Used by:648 | |
Symbol 648 MovieClip | Uses:647 | Used by:Timeline |
Symbol 649 Graphic | Uses:626 | Used by:654 |
Symbol 650 Graphic | Uses:626 | Used by:654 |
Symbol 651 Graphic | Uses:626 | Used by:654 |
Symbol 652 Graphic | Uses:626 | Used by:654 |
Symbol 653 Graphic | Uses:626 | Used by:654 |
Symbol 654 MovieClip | Uses:649 650 651 652 653 | Used by:710 |
Symbol 655 Graphic | Uses:626 | Used by:663 |
Symbol 656 Graphic | Uses:626 | Used by:663 |
Symbol 657 Graphic | Uses:626 | Used by:663 |
Symbol 658 Graphic | Uses:626 | Used by:663 |
Symbol 659 Graphic | Uses:626 | Used by:663 |
Symbol 660 Graphic | Uses:626 | Used by:663 |
Symbol 661 Graphic | Uses:626 | Used by:663 |
Symbol 662 Graphic | Uses:626 | Used by:663 |
Symbol 663 MovieClip | Uses:655 656 657 658 659 660 661 662 | Used by:710 |
Symbol 664 Graphic | Uses:626 | Used by:666 |
Symbol 665 Graphic | Uses:626 | Used by:666 |
Symbol 666 MovieClip | Uses:664 665 | Used by:710 |
Symbol 667 Graphic | Uses:626 | Used by:669 |
Symbol 668 Graphic | Uses:626 | Used by:669 |
Symbol 669 MovieClip | Uses:667 668 | Used by:710 |
Symbol 670 Graphic | Uses:626 | Used by:671 |
Symbol 671 MovieClip | Uses:670 | Used by:710 |
Symbol 672 Graphic | Uses:626 | Used by:674 |
Symbol 673 Graphic | Uses:626 | Used by:674 |
Symbol 674 MovieClip | Uses:672 673 | Used by:710 |
Symbol 675 Graphic | Uses:626 | Used by:677 |
Symbol 676 Graphic | Uses:626 | Used by:677 |
Symbol 677 MovieClip | Uses:675 676 | Used by:710 |
Symbol 678 Graphic | Uses:626 | Used by:679 |
Symbol 679 MovieClip | Uses:678 | Used by:710 |
Symbol 680 Graphic | Uses:626 | Used by:681 |
Symbol 681 MovieClip | Uses:680 | Used by:710 |
Symbol 682 Graphic | Uses:626 | Used by:704 |
Symbol 683 Graphic | Used by:704 | |
Symbol 684 Graphic | Used by:704 | |
Symbol 685 Graphic | Used by:704 | |
Symbol 686 Graphic | Used by:704 | |
Symbol 687 Graphic | Used by:704 | |
Symbol 688 Graphic | Used by:704 | |
Symbol 689 Graphic | Used by:704 | |
Symbol 690 Graphic | Used by:704 | |
Symbol 691 Graphic | Used by:704 | |
Symbol 692 Graphic | Used by:704 | |
Symbol 693 Graphic | Used by:704 | |
Symbol 694 Graphic | Used by:704 | |
Symbol 695 Graphic | Used by:704 | |
Symbol 696 Graphic | Used by:704 | |
Symbol 697 Graphic | Used by:704 | |
Symbol 698 Graphic | Used by:704 | |
Symbol 699 Graphic | Used by:704 | |
Symbol 700 Graphic | Used by:704 | |
Symbol 701 Graphic | Used by:704 | |
Symbol 702 Graphic | Used by:704 | |
Symbol 703 Graphic | Used by:704 | |
Symbol 704 MovieClip | Uses:682 683 471 473 474 475 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 496 | Used by:710 |
Symbol 705 Graphic | Uses:626 | Used by:706 |
Symbol 706 MovieClip | Uses:705 390 | Used by:710 |
Symbol 707 Graphic | Uses:626 | Used by:709 |
Symbol 708 Graphic | Used by:709 1126 | |
Symbol 709 MovieClip | Uses:707 708 | Used by:710 |
Symbol 710 MovieClip | Uses:629 25 415 654 663 666 669 671 674 448 677 679 681 704 706 709 | Used by:Timeline |
Symbol 711 Graphic | Uses:620 | Used by:712 |
Symbol 712 MovieClip | Uses:711 | Used by:752 |
Symbol 713 Graphic | Uses:620 | Used by:718 |
Symbol 714 Graphic | Uses:620 | Used by:718 |
Symbol 715 Graphic | Uses:620 | Used by:718 |
Symbol 716 Graphic | Uses:620 | Used by:718 |
Symbol 717 Graphic | Uses:620 | Used by:718 |
Symbol 718 MovieClip | Uses:713 714 715 716 717 | Used by:752 |
Symbol 719 Graphic | Uses:620 | Used by:720 |
Symbol 720 MovieClip | Uses:719 | Used by:752 |
Symbol 721 Graphic | Uses:620 | Used by:722 |
Symbol 722 MovieClip | Uses:721 | Used by:752 |
Symbol 723 Graphic | Uses:620 | Used by:725 |
Symbol 724 Graphic | Uses:620 | Used by:725 |
Symbol 725 MovieClip | Uses:723 724 | Used by:752 |
Symbol 726 Graphic | Uses:620 | Used by:727 |
Symbol 727 MovieClip | Uses:726 | Used by:752 |
Symbol 728 Graphic | Uses:620 | Used by:730 |
Symbol 729 Graphic | Uses:620 | Used by:730 |
Symbol 730 MovieClip | Uses:728 729 | Used by:752 |
Symbol 731 Graphic | Uses:620 | Used by:734 |
Symbol 732 Graphic | Used by:734 | |
Symbol 733 Graphic | Uses:620 | Used by:734 |
Symbol 734 MovieClip | Uses:731 732 733 | Used by:752 |
Symbol 735 Graphic | Uses:620 | Used by:740 |
Symbol 736 Graphic | Uses:620 | Used by:740 |
Symbol 737 Graphic | Uses:620 | Used by:740 |
Symbol 738 Graphic | Uses:620 | Used by:740 |
Symbol 739 Graphic | Uses:620 | Used by:740 |
Symbol 740 MovieClip | Uses:735 736 737 738 739 | Used by:752 |
Symbol 741 Graphic | Uses:620 | Used by:745 |
Symbol 742 Graphic | Uses:620 | Used by:745 |
Symbol 743 Graphic | Uses:620 | Used by:745 |
Symbol 744 Graphic | Uses:620 | Used by:745 |
Symbol 745 MovieClip | Uses:741 742 743 744 | Used by:752 |
Symbol 746 Graphic | Uses:620 | Used by:747 |
Symbol 747 MovieClip | Uses:746 | Used by:752 |
Symbol 748 Graphic | Uses:620 | Used by:749 |
Symbol 749 MovieClip | Uses:748 | Used by:752 |
Symbol 750 Graphic | Uses:620 | Used by:751 |
Symbol 751 MovieClip | Uses:750 347 | Used by:752 |
Symbol 752 MovieClip | Uses:625 25 712 718 720 722 725 727 730 734 740 330 745 747 749 751 | Used by:Timeline |
Symbol 753 MovieClip | Uses:36 | Used by:755 756 771 1197 1267 |
Symbol 754 MovieClip | Uses:259 | Used by:755 800 806 835 861 889 897 902 1113 1165 1249 |
Symbol 755 MovieClip | Uses:260 262 753 259 263 754 640 638 637 635 636 645 409 70 | Used by:Timeline |
Symbol 756 MovieClip | Uses:753 | Used by:771 806 835 850 889 897 902 907 1098 1113 1130 1136 |
Symbol 757 MovieClip | Uses:259 | Used by:771 806 835 897 902 907 1113 1117 1136 |
Symbol 758 Graphic | Uses:37 | Used by:763 764 |
Symbol 759 Graphic | Uses:37 | Used by:763 764 |
Symbol 760 Graphic | Uses:37 | Used by:763 764 |
Symbol 761 Graphic | Uses:37 | Used by:763 764 |
Symbol 762 Graphic | Uses:37 | Used by:763 896 |
Symbol 763 MovieClip | Uses:758 759 760 761 762 | Used by:765 902 |
Symbol 764 MovieClip | Uses:761 760 759 758 35 | Used by:765 |
Symbol 765 MovieClip | Uses:763 764 | Used by:770 |
Symbol 766 Graphic | Uses:37 | Used by:770 |
Symbol 767 Graphic | Uses:37 | Used by:770 |
Symbol 768 Graphic | Uses:37 | Used by:770 |
Symbol 769 Graphic | Uses:37 | Used by:770 |
Symbol 770 MovieClip | Uses:36 765 766 767 768 769 64 | Used by:771 806 897 902 907 1136 |
Symbol 771 MovieClip | Uses:260 262 753 756 757 640 635 637 636 638 645 70 770 | Used by:Timeline |
Symbol 772 Bitmap | Used by:773 774 778 779 780 783 784 785 786 787 788 789 790 791 792 793 796 | |
Symbol 773 Graphic | Uses:772 | Used by:782 |
Symbol 774 Graphic | Uses:772 | Used by:782 797 |
Symbol 775 Bitmap | Used by:776 849 895 901 | |
Symbol 776 Graphic | Uses:775 | Used by:777 |
Symbol 777 MovieClip | Uses:776 | Used by:782 795 797 |
Symbol 778 Graphic | Uses:772 | Used by:782 |
Symbol 779 Graphic | Uses:772 | Used by:781 |
Symbol 780 Graphic | Uses:772 | Used by:781 |
Symbol 781 MovieClip | Uses:779 259 780 | Used by:782 798 |
Symbol 782 MovieClip | Uses:773 774 777 778 781 | Used by:798 |
Symbol 783 Graphic | Uses:772 | Used by:794 |
Symbol 784 Graphic | Uses:772 | Used by:794 |
Symbol 785 Graphic | Uses:772 | Used by:794 |
Symbol 786 Graphic | Uses:772 | Used by:794 |
Symbol 787 Graphic | Uses:772 | Used by:794 |
Symbol 788 Graphic | Uses:772 | Used by:794 |
Symbol 789 Graphic | Uses:772 | Used by:794 |
Symbol 790 Graphic | Uses:772 | Used by:794 |
Symbol 791 Graphic | Uses:772 | Used by:794 |
Symbol 792 Graphic | Uses:772 | Used by:794 |
Symbol 793 Graphic | Uses:772 | Used by:794 |
Symbol 794 MovieClip | Uses:783 784 785 786 787 788 789 790 791 792 793 | Used by:795 1204 |
Symbol 795 MovieClip | Uses:794 777 | Used by:798 |
Symbol 796 Graphic | Uses:772 | Used by:797 |
Symbol 797 MovieClip | Uses:796 774 777 | Used by:798 |
Symbol 798 MovieClip | Uses:782 795 797 781 | Used by:799 |
Symbol 799 MovieClip | Uses:798 | Used by:800 |
Symbol 800 MovieClip | Uses:260 754 263 259 635 637 636 638 640 799 | Used by:1204 Timeline |
Symbol 801 Graphic | Uses:639 | Used by:Timeline |
Symbol 802 Graphic | Uses:632 | Used by:806 |
Symbol 803 Graphic | Uses:639 | Used by:806 897 |
Symbol 804 Bitmap | Used by:805 894 1172 | |
Symbol 805 Graphic | Uses:804 | Used by:806 835 897 1113 1117 1130 |
Symbol 806 MovieClip | Uses:260 262 263 756 754 757 802 803 638 637 635 636 805 152 645 770 70 | Used by:Timeline |
Symbol 807 Graphic | Uses:639 | Used by:808 |
Symbol 808 MovieClip | Uses:807 | Used by:Timeline |
Symbol 809 Bitmap | Used by:810 903 | |
Symbol 810 Graphic | Uses:809 | Used by:811 |
Symbol 811 MovieClip | Uses:810 | Used by:Timeline |
Symbol 812 MovieClip | Uses:73 | Used by:Timeline |
Symbol 813 EditableText | Uses:93 | Used by:Timeline |
Symbol 814 Text | Uses:93 | Used by:Timeline |
Symbol 815 Graphic | Used by:816 | |
Symbol 816 MovieClip | Uses:815 | Used by:Timeline |
Symbol 817 Graphic | Used by:818 | |
Symbol 818 MovieClip | Uses:817 | Used by:Timeline |
Symbol 819 Graphic | Uses:620 | Used by:822 |
Symbol 820 Graphic | Uses:620 | Used by:822 |
Symbol 821 Sound | Used by:822 | |
Symbol 822 MovieClip | Uses:819 820 821 | Used by:829 |
Symbol 823 Graphic | Uses:626 | Used by:825 |
Symbol 824 Graphic | Uses:626 | Used by:825 |
Symbol 825 MovieClip | Uses:823 824 | Used by:829 |
Symbol 826 Graphic | Uses:148 620 | Used by:828 |
Symbol 827 Sound | Used by:828 | |
Symbol 828 MovieClip | Uses:826 827 | Used by:829 |
Symbol 829 MovieClip | Uses:822 152 180 825 828 204 | Used by:Timeline |
Symbol 830 Graphic | Uses:639 | Used by:Timeline |
Symbol 831 Bitmap | Used by:832 | |
Symbol 832 Graphic | Uses:831 | Used by:833 Timeline |
Symbol 833 MovieClip | Uses:832 | Used by:835 |
Symbol 834 MovieClip | Uses:259 | Used by:835 907 1113 1117 |
Symbol 835 MovieClip | Uses:73 833 260 262 754 756 263 757 834 638 637 635 636 805 645 70 409 | Used by:Timeline |
Symbol 836 Bitmap | Used by:837 840 842 1207 1209 | |
Symbol 837 Graphic | Uses:836 | Used by:841 |
Symbol 838 MovieClip | Uses:73 | Used by:839 |
Symbol 839 MovieClip | Uses:838 | Used by:841 869 1149 1153 1159 |
Symbol 840 Graphic | Uses:836 | Used by:841 |
Symbol 841 MovieClip | Uses:837 839 840 | Used by:844 |
Symbol 842 Graphic | Uses:836 | Used by:843 |
Symbol 843 MovieClip | Uses:842 | Used by:844 1212 |
Symbol 844 MovieClip | Uses:841 843 | Used by:845 |
Symbol 845 MovieClip | Uses:844 | Used by:850 |
Symbol 846 Bitmap | Used by:848 1116 1129 1134 1135 1138 | |
Symbol 847 Bitmap | Used by:848 1106 1116 1129 1133 1134 1138 | |
Symbol 848 Graphic | Uses:846 847 | Used by:850 |
Symbol 849 Graphic | Uses:775 | Used by:850 861 889 |
Symbol 850 MovieClip | Uses:260 262 756 845 259 848 849 | Used by:Timeline |
Symbol 851 Graphic | Used by:852 | |
Symbol 852 MovieClip | Uses:851 | Used by:Timeline |
Symbol 853 Graphic | Used by:856 | |
Symbol 854 Bitmap | Used by:855 | |
Symbol 855 Graphic | Uses:854 | Used by:856 |
Symbol 856 MovieClip | Uses:853 855 | Used by:859 1113 |
Symbol 857 Bitmap | Used by:858 | |
Symbol 858 Graphic | Uses:857 | Used by:859 |
Symbol 859 MovieClip | Uses:856 858 | Used by:Timeline |
Symbol 860 Graphic | Used by:861 | |
Symbol 861 MovieClip | Uses:860 260 754 263 645 849 | Used by:1237 Timeline |
Symbol 862 EditableText | Uses:93 | Used by:Timeline |
Symbol 863 Text | Uses:93 | Used by:Timeline |
Symbol 864 Graphic | Used by:889 | |
Symbol 865 Bitmap | Used by:866 867 868 870 871 872 873 875 880 882 883 884 885 1213 1214 1220 1223 1224 1225 | |
Symbol 866 Graphic | Uses:865 | Used by:869 |
Symbol 867 Graphic | Uses:865 | Used by:869 |
Symbol 868 Graphic | Uses:865 | Used by:869 |
Symbol 869 MovieClip | Uses:866 867 839 868 | Used by:887 |
Symbol 870 Graphic | Uses:865 | Used by:874 |
Symbol 871 Graphic | Uses:865 | Used by:874 |
Symbol 872 Graphic | Uses:865 | Used by:874 |
Symbol 873 Graphic | Uses:865 | Used by:874 |
Symbol 874 MovieClip | Uses:870 259 871 872 873 | Used by:887 |
Symbol 875 Graphic | Uses:865 | Used by:881 |
Symbol 876 Graphic | Used by:881 | |
Symbol 877 Graphic | Used by:881 | |
Symbol 878 Graphic | Used by:881 | |
Symbol 879 Graphic | Used by:881 | |
Symbol 880 Graphic | Uses:865 | Used by:881 |
Symbol 881 MovieClip | Uses:875 876 877 878 879 259 880 | Used by:887 |
Symbol 882 Graphic | Uses:865 | Used by:886 |
Symbol 883 Graphic | Uses:865 | Used by:886 |
Symbol 884 Graphic | Uses:865 | Used by:886 |
Symbol 885 Graphic | Uses:865 | Used by:886 |
Symbol 886 MovieClip | Uses:882 883 884 885 259 | Used by:887 |
Symbol 887 MovieClip | Uses:869 874 881 886 | Used by:888 |
Symbol 888 MovieClip | Uses:887 | Used by:889 |
Symbol 889 MovieClip | Uses:864 260 756 259 888 263 754 849 | Used by:Timeline |
Symbol 890 Bitmap | Used by:891 | |
Symbol 891 Graphic | Uses:890 | Used by:Timeline |
Symbol 892 Bitmap | Used by:893 1172 | |
Symbol 893 Graphic | Uses:892 | Used by:897 |
Symbol 894 Graphic | Uses:804 | Used by:897 |
Symbol 895 Graphic | Uses:775 | Used by:897 902 907 1098 |
Symbol 896 MovieClip | Uses:762 | Used by:897 902 |
Symbol 897 MovieClip | Uses:260 262 756 757 754 893 805 894 635 638 803 895 645 70 409 896 770 | Used by:Timeline |
Symbol 898 Bitmap | Used by:899 | |
Symbol 899 Graphic | Uses:898 | Used by:Timeline |
Symbol 900 Graphic | Used by:902 | |
Symbol 901 Graphic | Uses:775 | Used by:902 |
Symbol 902 MovieClip | Uses:262 260 756 754 263 757 900 770 896 763 901 895 645 70 | Used by:Timeline |
Symbol 903 Graphic | Uses:809 | Used by:904 |
Symbol 904 MovieClip | Uses:903 | Used by:905 |
Symbol 905 MovieClip | Uses:904 | Used by:907 1117 |
Symbol 906 Graphic | Uses:358 | Used by:907 |
Symbol 907 MovieClip | Uses:756 262 260 834 263 905 757 906 895 645 409 70 770 | Used by:Timeline |
Symbol 908 Graphic | Used by:1098 | |
Symbol 909 Bitmap | Used by:910 | |
Symbol 910 Graphic | Uses:909 | Used by:926 1238 |
Symbol 911 Bitmap | Used by:912 | |
Symbol 912 Graphic | Uses:911 | Used by:926 1238 |
Symbol 913 Bitmap | Used by:914 | |
Symbol 914 Graphic | Uses:913 | Used by:926 1238 |
Symbol 915 Bitmap | Used by:916 | |
Symbol 916 Graphic | Uses:915 | Used by:926 1238 |
Symbol 917 Bitmap | Used by:918 | |
Symbol 918 Graphic | Uses:917 | Used by:926 1238 |
Symbol 919 Bitmap | Used by:920 | |
Symbol 920 Graphic | Uses:919 | Used by:926 1238 |
Symbol 921 Bitmap | Used by:922 | |
Symbol 922 Graphic | Uses:921 | Used by:926 1238 |
Symbol 923 Bitmap | Used by:924 | |
Symbol 924 Graphic | Uses:923 | Used by:926 1238 |
Symbol 925 MovieClip | Uses:387 | Used by:926 |
Symbol 926 MovieClip | Uses:910 912 914 916 918 920 922 924 925 | Used by:1096 1248 |
Symbol 927 Bitmap | Used by:928 | |
Symbol 928 Graphic | Uses:927 | Used by:972 |
Symbol 929 Bitmap | Used by:930 | |
Symbol 930 Graphic | Uses:929 | Used by:972 |
Symbol 931 Bitmap | Used by:932 | |
Symbol 932 Graphic | Uses:931 | Used by:972 |
Symbol 933 Sound | Used by:972 | |
Symbol 934 Bitmap | Used by:935 | |
Symbol 935 Graphic | Uses:934 | Used by:972 |
Symbol 936 Bitmap | Used by:937 | |
Symbol 937 Graphic | Uses:936 | Used by:972 |
Symbol 938 Bitmap | Used by:939 | |
Symbol 939 Graphic | Uses:938 | Used by:972 |
Symbol 940 Bitmap | Used by:941 | |
Symbol 941 Graphic | Uses:940 | Used by:972 |
Symbol 942 Bitmap | Used by:943 | |
Symbol 943 Graphic | Uses:942 | Used by:972 |
Symbol 944 Bitmap | Used by:945 | |
Symbol 945 Graphic | Uses:944 | Used by:972 |
Symbol 946 Bitmap | Used by:947 | |
Symbol 947 Graphic | Uses:946 | Used by:972 |
Symbol 948 Bitmap | Used by:949 | |
Symbol 949 Graphic | Uses:948 | Used by:972 |
Symbol 950 Bitmap | Used by:951 | |
Symbol 951 Graphic | Uses:950 | Used by:972 |
Symbol 952 Bitmap | Used by:953 | |
Symbol 953 Graphic | Uses:952 | Used by:972 |
Symbol 954 Bitmap | Used by:955 | |
Symbol 955 Graphic | Uses:954 | Used by:972 |
Symbol 956 Bitmap | Used by:957 | |
Symbol 957 Graphic | Uses:956 | Used by:972 |
Symbol 958 Bitmap | Used by:959 | |
Symbol 959 Graphic | Uses:958 | Used by:972 |
Symbol 960 Bitmap | Used by:961 | |
Symbol 961 Graphic | Uses:960 | Used by:972 |
Symbol 962 Bitmap | Used by:963 | |
Symbol 963 Graphic | Uses:962 | Used by:972 |
Symbol 964 Bitmap | Used by:965 | |
Symbol 965 Graphic | Uses:964 | Used by:972 |
Symbol 966 Bitmap | Used by:967 | |
Symbol 967 Graphic | Uses:966 | Used by:972 |
Symbol 968 Bitmap | Used by:969 | |
Symbol 969 Graphic | Uses:968 | Used by:972 |
Symbol 970 Bitmap | Used by:971 | |
Symbol 971 Graphic | Uses:970 | Used by:972 |
Symbol 972 MovieClip | Uses:928 930 932 933 935 937 939 941 943 945 259 947 949 951 953 955 957 959 961 963 965 967 969 971 SS8 | Used by:1096 |
Symbol 973 Bitmap | Used by:974 | |
Symbol 974 Graphic | Uses:973 | Used by:1061 |
Symbol 975 Bitmap | Used by:976 | |
Symbol 976 Graphic | Uses:975 | Used by:1061 |
Symbol 977 Bitmap | Used by:978 | |
Symbol 978 Graphic | Uses:977 | Used by:1061 |
Symbol 979 Bitmap | Used by:980 | |
Symbol 980 Graphic | Uses:979 | Used by:1061 |
Symbol 981 Bitmap | Used by:982 | |
Symbol 982 Graphic | Uses:981 | Used by:1061 |
Symbol 983 Bitmap | Used by:984 | |
Symbol 984 Graphic | Uses:983 | Used by:1061 |
Symbol 985 Bitmap | Used by:986 | |
Symbol 986 Graphic | Uses:985 | Used by:1061 |
Symbol 987 Bitmap | Used by:988 | |
Symbol 988 Graphic | Uses:987 | Used by:1061 |
Symbol 989 Bitmap | Used by:990 | |
Symbol 990 Graphic | Uses:989 | Used by:1061 |
Symbol 991 Bitmap | Used by:992 | |
Symbol 992 Graphic | Uses:991 | Used by:1061 |
Symbol 993 Bitmap | Used by:994 | |
Symbol 994 Graphic | Uses:993 | Used by:1061 |
Symbol 995 Bitmap | Used by:996 | |
Symbol 996 Graphic | Uses:995 | Used by:1061 |
Symbol 997 Bitmap | Used by:998 | |
Symbol 998 Graphic | Uses:997 | Used by:1061 |
Symbol 999 Bitmap | Used by:1000 | |
Symbol 1000 Graphic | Uses:999 | Used by:1061 |
Symbol 1001 Bitmap | Used by:1002 | |
Symbol 1002 Graphic | Uses:1001 | Used by:1061 |
Symbol 1003 Bitmap | Used by:1004 | |
Symbol 1004 Graphic | Uses:1003 | Used by:1061 |
Symbol 1005 Bitmap | Used by:1006 | |
Symbol 1006 Graphic | Uses:1005 | Used by:1061 |
Symbol 1007 Bitmap | Used by:1008 | |
Symbol 1008 Graphic | Uses:1007 | Used by:1061 |
Symbol 1009 Bitmap | Used by:1010 | |
Symbol 1010 Graphic | Uses:1009 | Used by:1061 |
Symbol 1011 Bitmap | Used by:1012 | |
Symbol 1012 Graphic | Uses:1011 | Used by:1061 |
Symbol 1013 Bitmap | Used by:1014 | |
Symbol 1014 Graphic | Uses:1013 | Used by:1061 |
Symbol 1015 Bitmap | Used by:1016 | |
Symbol 1016 Graphic | Uses:1015 | Used by:1061 |
Symbol 1017 Bitmap | Used by:1018 | |
Symbol 1018 Graphic | Uses:1017 | Used by:1061 |
Symbol 1019 Bitmap | Used by:1020 | |
Symbol 1020 Graphic | Uses:1019 | Used by:1061 |
Symbol 1021 Bitmap | Used by:1022 | |
Symbol 1022 Graphic | Uses:1021 | Used by:1061 |
Symbol 1023 Bitmap | Used by:1024 | |
Symbol 1024 Graphic | Uses:1023 | Used by:1061 |
Symbol 1025 Bitmap | Used by:1026 | |
Symbol 1026 Graphic | Uses:1025 | Used by:1061 |
Symbol 1027 Bitmap | Used by:1028 | |
Symbol 1028 Graphic | Uses:1027 | Used by:1061 |
Symbol 1029 Bitmap | Used by:1030 | |
Symbol 1030 Graphic | Uses:1029 | Used by:1061 |
Symbol 1031 Bitmap | Used by:1032 | |
Symbol 1032 Graphic | Uses:1031 | Used by:1061 |
Symbol 1033 Bitmap | Used by:1034 | |
Symbol 1034 Graphic | Uses:1033 | Used by:1061 |
Symbol 1035 Bitmap | Used by:1036 | |
Symbol 1036 Graphic | Uses:1035 | Used by:1061 |
Symbol 1037 Bitmap | Used by:1038 | |
Symbol 1038 Graphic | Uses:1037 | Used by:1061 |
Symbol 1039 Bitmap | Used by:1040 | |
Symbol 1040 Graphic | Uses:1039 | Used by:1061 |
Symbol 1041 Bitmap | Used by:1042 | |
Symbol 1042 Graphic | Uses:1041 | Used by:1061 |
Symbol 1043 Bitmap | Used by:1044 | |
Symbol 1044 Graphic | Uses:1043 | Used by:1061 |
Symbol 1045 Bitmap | Used by:1046 | |
Symbol 1046 Graphic | Uses:1045 | Used by:1061 |
Symbol 1047 Bitmap | Used by:1048 | |
Symbol 1048 Graphic | Uses:1047 | Used by:1061 |
Symbol 1049 Bitmap | Used by:1050 | |
Symbol 1050 Graphic | Uses:1049 | Used by:1061 |
Symbol 1051 Bitmap | Used by:1052 | |
Symbol 1052 Graphic | Uses:1051 | Used by:1061 |
Symbol 1053 Bitmap | Used by:1054 | |
Symbol 1054 Graphic | Uses:1053 | Used by:1061 |
Symbol 1055 Bitmap | Used by:1056 | |
Symbol 1056 Graphic | Uses:1055 | Used by:1061 |
Symbol 1057 Bitmap | Used by:1058 | |
Symbol 1058 Graphic | Uses:1057 | Used by:1061 |
Symbol 1059 Bitmap | Used by:1060 | |
Symbol 1060 Graphic | Uses:1059 | Used by:1061 |
Symbol 1061 MovieClip | Uses:974 976 978 980 982 984 986 988 990 992 994 996 998 1000 1002 1004 1006 1008 1010 1012 1014 1016 1018 1020 1022 1024 1026 1028 1030 1032 1034 1036 1038 1040 1042 1044 1046 1048 1050 1052 1054 1056 1058 1060 | Used by:1062 1096 |
Symbol 1062 MovieClip | Uses:1061 259 | Used by:1096 |
Symbol 1063 Bitmap | Used by:1064 | |
Symbol 1064 Graphic | Uses:1063 | Used by:1095 |
Symbol 1065 Bitmap | Used by:1066 | |
Symbol 1066 Graphic | Uses:1065 | Used by:1095 |
Symbol 1067 Bitmap | Used by:1068 | |
Symbol 1068 Graphic | Uses:1067 | Used by:1095 |
Symbol 1069 Bitmap | Used by:1070 | |
Symbol 1070 Graphic | Uses:1069 | Used by:1095 |
Symbol 1071 Bitmap | Used by:1072 | |
Symbol 1072 Graphic | Uses:1071 | Used by:1095 |
Symbol 1073 Bitmap | Used by:1074 | |
Symbol 1074 Graphic | Uses:1073 | Used by:1095 |
Symbol 1075 Bitmap | Used by:1076 | |
Symbol 1076 Graphic | Uses:1075 | Used by:1095 |
Symbol 1077 Bitmap | Used by:1078 | |
Symbol 1078 Graphic | Uses:1077 | Used by:1095 |
Symbol 1079 Bitmap | Used by:1080 | |
Symbol 1080 Graphic | Uses:1079 | Used by:1095 |
Symbol 1081 Bitmap | Used by:1082 | |
Symbol 1082 Graphic | Uses:1081 | Used by:1095 |
Symbol 1083 Bitmap | Used by:1084 | |
Symbol 1084 Graphic | Uses:1083 | Used by:1095 |
Symbol 1085 Bitmap | Used by:1086 | |
Symbol 1086 Graphic | Uses:1085 | Used by:1095 |
Symbol 1087 Bitmap | Used by:1088 | |
Symbol 1088 Graphic | Uses:1087 | Used by:1095 |
Symbol 1089 Bitmap | Used by:1090 | |
Symbol 1090 Graphic | Uses:1089 | Used by:1095 |
Symbol 1091 Bitmap | Used by:1092 | |
Symbol 1092 Graphic | Uses:1091 | Used by:1095 |
Symbol 1093 Bitmap | Used by:1094 | |
Symbol 1094 Graphic | Uses:1093 | Used by:1095 |
Symbol 1095 MovieClip | Uses:1064 259 1066 1068 1070 1072 1074 1076 1078 1080 1082 1084 1086 1088 1090 1092 1094 | Used by:1096 |
Symbol 1096 MovieClip | Uses:926 972 1062 1061 1095 | Used by:1097 |
Symbol 1097 MovieClip | Uses:1096 | Used by:1098 |
Symbol 1098 MovieClip | Uses:908 260 262 756 259 1097 895 | Used by:1248 Timeline |
Symbol 1099 Bitmap | Used by:1100 | |
Symbol 1100 Graphic | Uses:1099 | Used by:Timeline |
Symbol 1101 EditableText | Uses:93 | Used by:Timeline |
Symbol 1102 Text | Uses:93 | Used by:Timeline |
Symbol 1103 Bitmap | Used by:1104 | |
Symbol 1104 Graphic | Uses:1103 | Used by:Timeline |
Symbol 1105 Graphic | Used by:1113 | |
Symbol 1106 Graphic | Uses:847 | Used by:1113 |
Symbol 1107 Bitmap | Used by:1108 1109 1110 1111 | |
Symbol 1108 Graphic | Uses:1107 | Used by:1112 |
Symbol 1109 Graphic | Uses:1107 | Used by:1112 |
Symbol 1110 Graphic | Uses:1107 | Used by:1112 |
Symbol 1111 Graphic | Uses:1107 | Used by:1112 |
Symbol 1112 MovieClip | Uses:1108 1109 1110 1111 | Used by:1113 1117 |
Symbol 1113 MovieClip | Uses:260 262 263 834 756 754 757 1105 856 1106 805 645 1112 70 | Used by:Timeline |
Symbol 1114 Graphic | Used by:1117 | |
Symbol 1115 Bitmap | Used by:1116 1134 | |
Symbol 1116 Graphic | Uses:1115 846 847 | Used by:1117 |
Symbol 1117 MovieClip | Uses:905 260 834 263 262 757 1114 1112 1116 805 645 | Used by:Timeline |
Symbol 1118 Bitmap | Used by:1119 1122 1123 | |
Symbol 1119 Graphic | Uses:1118 | Used by:1120 |
Symbol 1120 MovieClip | Uses:1119 | Used by:1121 1127 |
Symbol 1121 MovieClip | Uses:1120 | Used by:1127 |
Symbol 1122 Graphic | Uses:1118 | Used by:1125 1126 |
Symbol 1123 Graphic | Uses:1118 | Used by:1124 |
Symbol 1124 MovieClip | Uses:1123 259 | Used by:1125 |
Symbol 1125 MovieClip | Uses:1122 1124 | Used by:1127 |
Symbol 1126 MovieClip | Uses:1122 708 | Used by:1127 |
Symbol 1127 MovieClip | Uses:1121 1125 1126 1120 | Used by:1128 |
Symbol 1128 MovieClip | Uses:1127 | Used by:1130 |
Symbol 1129 Graphic | Uses:847 846 | Used by:1130 |
Symbol 1130 MovieClip | Uses:260 262 756 259 1128 1129 805 | Used by:Timeline |
Symbol 1131 Bitmap | Used by:1132 1137 | |
Symbol 1132 Graphic | Uses:1131 | Used by:1136 |
Symbol 1133 Graphic | Uses:847 | Used by:1136 |
Symbol 1134 Graphic | Uses:846 1115 847 | Used by:1136 |
Symbol 1135 Graphic | Uses:846 | Used by:1136 |
Symbol 1136 MovieClip | Uses:262 756 260 263 757 1132 1133 1134 1135 770 70 | Used by:Timeline |
Symbol 1137 Graphic | Uses:1131 | Used by:Timeline |
Symbol 1138 Graphic | Uses:846 847 | Used by:1165 1249 |
Symbol 1139 Bitmap | Used by:1140 1141 1142 1143 1144 1150 1151 1152 1160 1161 1250 1251 1252 1253 1254 1261 | |
Symbol 1140 Graphic | Uses:1139 | Used by:1149 1153 1159 1162 1256 1260 |
Symbol 1141 Graphic | Uses:1139 | Used by:1149 |
Symbol 1142 Graphic | Uses:1139 | Used by:1149 1260 |
Symbol 1143 Graphic | Uses:1139 | Used by:1149 1153 1159 1162 1256 1260 |
Symbol 1144 Graphic | Uses:1139 | Used by:1149 1153 1159 1162 1256 1260 |
Symbol 1145 Graphic | Used by:1146 | |
Symbol 1146 MovieClip | Uses:1145 | Used by:1149 |
Symbol 1147 Sound | Used by:1149 | |
Symbol 1148 Sound | Used by:1149 1308 | |
Symbol 1149 MovieClip | Uses:1140 1141 1142 1143 1144 1146 839 1147 1148 | Used by:1163 |
Symbol 1150 Graphic | Uses:1139 | Used by:1153 1159 1260 |
Symbol 1151 Graphic | Uses:1139 | Used by:1153 1159 |
Symbol 1152 Graphic | Uses:1139 | Used by:1153 1159 |
Symbol 1153 MovieClip | Uses:1140 1150 1151 1152 1143 1144 839 | Used by:1163 |
Symbol 1154 ShapeTweening | Used by:1159 | |
Symbol 1155 ShapeTweening | Used by:1159 | |
Symbol 1156 ShapeTweening | Used by:1159 | |
Symbol 1157 ShapeTweening | Used by:1159 | |
Symbol 1158 Graphic | Used by:1159 | |
Symbol 1159 MovieClip | Uses:1140 1150 1151 1152 1143 1144 839 259 1154 1155 1156 1157 1158 | Used by:1163 |
Symbol 1160 Graphic | Uses:1139 | Used by:1162 |
Symbol 1161 Graphic | Uses:1139 | Used by:1162 |
Symbol 1162 MovieClip | Uses:36 1140 1160 1143 1144 1161 | Used by:1163 1266 |
Symbol 1163 MovieClip | Uses:1149 1153 1159 1162 | Used by:1164 |
Symbol 1164 MovieClip | Uses:1163 | Used by:1165 |
Symbol 1165 MovieClip | Uses:260 754 263 259 1138 1164 | Used by:Timeline |
Symbol 1166 Bitmap | Used by:1167 | |
Symbol 1167 Graphic | Uses:1166 | Used by:Timeline |
Symbol 1168 MovieClip | Uses:73 | Used by:1169 1188 |
Symbol 1169 MovieClip | Uses:1168 | Used by:1197 1267 |
Symbol 1170 MovieClip | Uses:36 | Used by:1197 1267 |
Symbol 1171 MovieClip | Used by:1197 1267 | |
Symbol 1172 Graphic | Uses:804 892 | Used by:1197 1267 |
Symbol 1173 Bitmap | Used by:1174 1175 1176 1177 1178 1179 1182 1186 1262 | |
Symbol 1174 Graphic | Uses:1173 | Used by:1181 |
Symbol 1175 Graphic | Uses:1173 | Used by:1181 |
Symbol 1176 Graphic | Uses:1173 | Used by:1181 |
Symbol 1177 Graphic | Uses:1173 | Used by:1181 |
Symbol 1178 Graphic | Uses:1173 | Used by:1181 |
Symbol 1179 Graphic | Uses:1173 | Used by:1181 |
Symbol 1180 MovieClip | Uses:24 | Used by:1181 1194 |
Symbol 1181 MovieClip | Uses:1174 1175 1176 1177 1178 1179 1180 | Used by:1185 1189 1194 1195 1308 |
Symbol 1182 Graphic | Uses:1173 | Used by:1183 |
Symbol 1183 MovieClip | Uses:1182 | Used by:1185 1194 1308 |
Symbol 1184 MovieClip | Uses:32 | Used by:1185 |
Symbol 1185 MovieClip | Uses:1181 1183 35 1184 | Used by:1195 |
Symbol 1186 Graphic | Uses:1173 | Used by:1187 |
Symbol 1187 MovieClip | Uses:1186 | Used by:1189 |
Symbol 1188 MovieClip | Uses:1168 | Used by:1189 |
Symbol 1189 MovieClip | Uses:1181 1187 1188 | Used by:1195 |
Symbol 1190 Bitmap | Used by:1191 1192 | |
Symbol 1191 Graphic | Uses:1190 | Used by:1193 |
Symbol 1192 Graphic | Uses:1190 | Used by:1193 |
Symbol 1193 MovieClip | Uses:1191 1192 | Used by:1194 |
Symbol 1194 MovieClip | Uses:1181 1183 1193 1180 | Used by:1195 |
Symbol 1195 MovieClip | Uses:1185 1189 1194 1181 | Used by:1196 |
Symbol 1196 MovieClip | Uses:1195 | Used by:1197 |
Symbol 1197 MovieClip | Uses:1169 1170 1171 753 1172 1196 | Used by:Timeline |
Symbol 1198 Graphic | Used by:1204 1266 1308 | |
Symbol 1199 Graphic | Used by:1204 | |
Symbol 1200 Graphic | Used by:1204 | |
Symbol 1201 Graphic | Used by:1204 | |
Symbol 1202 ShapeTweening | Used by:1204 | |
Symbol 1203 Graphic | Used by:1204 | |
Symbol 1204 MovieClip | Uses:800 1198 794 431 302 310 398 1199 257 1200 1201 1202 1203 SS9 | Used by:Timeline |
Symbol 1205 MovieClip | Uses:74 | Used by:1212 1308 1322 |
Symbol 1206 ShapeTweening | Used by:1212 | |
Symbol 1207 Graphic | Uses:836 | Used by:1208 |
Symbol 1208 MovieClip | Uses:1207 | Used by:1212 |
Symbol 1209 Graphic | Uses:836 | Used by:1210 |
Symbol 1210 MovieClip | Uses:1209 | Used by:1212 |
Symbol 1211 Graphic | Used by:1212 | |
Symbol 1212 MovieClip | Uses:843 453 1205 1206 1208 1210 1211 SS10 | Used by:Timeline |
Symbol 1213 Graphic | Uses:865 | Used by:1237 |
Symbol 1214 Graphic | Uses:865 | Used by:1237 |
Symbol 1215 Graphic | Uses:507 | Used by:1237 |
Symbol 1216 Sound | Used by:1237 | |
Symbol 1217 Sound | Used by:1237 | |
Symbol 1218 Graphic | Uses:284 | Used by:1237 |
Symbol 1219 Sound | Used by:1237 | |
Symbol 1220 Graphic | Uses:865 | Used by:1237 |
Symbol 1221 Graphic | Uses:284 | Used by:1237 |
Symbol 1222 Sound | Used by:1237 | |
Symbol 1223 Graphic | Uses:865 | Used by:1226 |
Symbol 1224 Graphic | Uses:865 | Used by:1226 |
Symbol 1225 Graphic | Uses:865 | Used by:1226 |
Symbol 1226 MovieClip | Uses:1223 1224 1225 | Used by:1237 |
Symbol 1227 Sound | Used by:1237 | |
Symbol 1228 Sound | Used by:1237 | |
Symbol 1229 Sound | Used by:1237 | |
Symbol 1230 Graphic | Uses:284 | Used by:1234 |
Symbol 1231 Graphic | Uses:284 | Used by:1234 |
Symbol 1232 Graphic | Uses:284 | Used by:1234 |
Symbol 1233 Graphic | Uses:284 | Used by:1234 |
Symbol 1234 MovieClip | Uses:1230 1231 1232 1233 | Used by:1237 |
Symbol 1235 Graphic | Uses:284 | Used by:1237 |
Symbol 1236 Graphic | Used by:1237 | |
Symbol 1237 MovieClip | Uses:861 1213 257 1214 288 398 1215 1216 1217 1218 1219 1220 1221 1222 1226 1227 1228 1229 1234 1235 1236 | Used by:Timeline |
Symbol 1238 MovieClip | Uses:910 912 914 916 918 920 922 924 | Used by:1248 |
Symbol 1239 Sound | Used by:1248 | |
Symbol 1240 Graphic | Used by:1248 | |
Symbol 1241 Graphic | Used by:1248 | |
Symbol 1242 EditableText | Uses:138 | Used by:1248 |
Symbol 1243 Sound | Used by:1248 | |
Symbol 1244 EditableText | Uses:138 | Used by:1248 |
Symbol 1245 EditableText | Uses:138 | Used by:1248 |
Symbol 1246 Graphic | Used by:1248 | |
Symbol 1247 Sound | Used by:1248 | |
Symbol 1248 MovieClip | Uses:1098 1238 257 1239 398 431 302 1240 1241 25 1242 1243 1244 1245 1246 313 926 1247 | Used by:Timeline |
Symbol 1249 MovieClip | Uses:260 754 263 259 1138 | Used by:1266 |
Symbol 1250 Graphic | Uses:1139 | Used by:1256 |
Symbol 1251 Graphic | Uses:1139 | Used by:1256 |
Symbol 1252 Graphic | Uses:1139 | Used by:1256 |
Symbol 1253 Graphic | Uses:1139 | Used by:1256 |
Symbol 1254 Graphic | Uses:1139 | Used by:1256 |
Symbol 1255 Graphic | Used by:1256 | |
Symbol 1256 MovieClip | Uses:1140 1250 1251 1252 1143 1144 1253 1254 1255 | Used by:1266 |
Symbol 1257 Sound | Used by:1266 1308 | |
Symbol 1258 EditableText | Uses:138 | Used by:1266 |
Symbol 1259 Sound | Used by:1260 | |
Symbol 1260 MovieClip | Uses:1140 1150 1142 1143 1144 1259 | Used by:1266 |
Symbol 1261 ShapeTweening | Uses:1139 | Used by:1263 |
Symbol 1262 Graphic | Uses:1173 | Used by:1263 |
Symbol 1263 MovieClip | Uses:1261 1262 | Used by:1266 |
Symbol 1264 Sound | Used by:1266 | |
Symbol 1265 MovieClip | Uses:73 | Used by:1266 |
Symbol 1266 MovieClip | Uses:1198 1249 1256 1257 1258 25 1162 1260 1263 1264 1265 | Used by:Timeline |
Symbol 1267 MovieClip | Uses:1169 1170 1171 753 1172 | Used by:1308 |
Symbol 1268 Bitmap | Used by:1269 1270 1271 | |
Symbol 1269 Graphic | Uses:1268 | Used by:1272 |
Symbol 1270 Graphic | Uses:1268 | Used by:1272 |
Symbol 1271 Graphic | Uses:1268 | Used by:1272 |
Symbol 1272 MovieClip | Uses:1269 1270 1271 | Used by:1308 1322 |
Symbol 1273 Bitmap | Used by:1274 | |
Symbol 1274 Graphic | Uses:1273 | Used by:1308 |
Symbol 1275 Sound | Used by:1308 | |
Symbol 1276 Bitmap | Used by:1277 1278 1279 | |
Symbol 1277 Graphic | Uses:1276 | Used by:1280 |
Symbol 1278 Graphic | Uses:1276 | Used by:1280 |
Symbol 1279 Graphic | Uses:1276 | Used by:1280 |
Symbol 1280 MovieClip | Uses:1277 1278 1279 | Used by:1308 1322 |
Symbol 1281 Sound | Used by:1308 | |
Symbol 1282 Bitmap | Used by:1283 1284 1286 1287 1288 1289 1292 1294 1299 | |
Symbol 1283 Graphic | Uses:1282 | Used by:1285 |
Symbol 1284 Graphic | Uses:1282 | Used by:1285 |
Symbol 1285 MovieClip | Uses:1283 1284 | Used by:1308 |
Symbol 1286 Graphic | Uses:1282 | Used by:1290 |
Symbol 1287 Graphic | Uses:1282 | Used by:1290 |
Symbol 1288 Graphic | Uses:1282 | Used by:1290 |
Symbol 1289 Graphic | Uses:1282 | Used by:1290 |
Symbol 1290 MovieClip | Uses:1286 1287 1288 1289 | Used by:1308 |
Symbol 1291 EditableText | Uses:93 | Used by:1308 |
Symbol 1292 Graphic | Uses:1282 | Used by:1293 |
Symbol 1293 MovieClip | Uses:1292 | Used by:1308 |
Symbol 1294 Graphic | Uses:1282 | Used by:1295 |
Symbol 1295 MovieClip | Uses:1294 | Used by:1308 |
Symbol 1296 Sound | Used by:1308 | |
Symbol 1297 Graphic | Used by:1308 | |
Symbol 1298 Sound | Used by:1308 | |
Symbol 1299 Graphic | Uses:1282 | Used by:1300 |
Symbol 1300 MovieClip | Uses:1299 | Used by:1308 |
Symbol 1301 EditableText | Uses:93 | Used by:1308 |
Symbol 1302 EditableText | Uses:93 | Used by:1308 |
Symbol 1303 EditableText | Uses:93 | Used by:1308 |
Symbol 1304 Sound | Used by:1308 | |
Symbol 1305 Sound | Used by:1308 | |
Symbol 1306 Sound | Used by:1308 | |
Symbol 1307 Graphic | Used by:1308 | |
Symbol 1308 MovieClip | Uses:1198 1267 506 580 1272 1257 315 1181 1274 1148 197 1183 390 1275 1280 1281 1285 1290 25 1291 1293 1295 1296 1297 1298 293 1300 1301 1302 1303 304 437 1304 1305 448 1306 1307 1205 SS11 | Used by:Timeline |
Symbol 1309 Graphic | Uses:345 | Used by:1310 |
Symbol 1310 MovieClip | Uses:1309 346 | Used by:1322 |
Symbol 1311 Text | Uses:93 233 | Used by:1312 |
Symbol 1312 MovieClip | Uses:1311 | Used by:1322 |
Symbol 1313 Text | Uses:93 | Used by:1321 |
Symbol 1314 Text | Uses:93 | Used by:1321 |
Symbol 1315 Bitmap | Used by:1316 | |
Symbol 1316 Graphic | Uses:1315 | Used by:1321 |
Symbol 1317 Graphic | Used by:1318 | |
Symbol 1318 MovieClip | Uses:1317 | Used by:1321 |
Symbol 1319 Text | Uses:93 | Used by:1321 |
Symbol 1320 Text | Uses:93 | Used by:1321 |
Symbol 1321 MovieClip | Uses:1313 1314 1316 1318 1319 1320 | Used by:1322 |
Symbol 1322 MovieClip | Uses:1205 255 1310 1280 1272 1312 1321 | Used by:Timeline |
Symbol 1323 Button | Uses:237 238 | Used by:Timeline |
Symbol 1324 Button | Uses:237 238 | Used by:Timeline |
Symbol 1325 Text | Uses:138 | Used by:1331 |
Symbol 1326 Text | Uses:138 | Used by:1331 |
Symbol 1327 Text | Uses:138 | Used by:1331 |
Symbol 1328 Text | Uses:138 | Used by:1331 |
Symbol 1329 Text | Uses:138 | Used by:1331 |
Symbol 1330 Text | Uses:138 | Used by:1331 |
Symbol 1331 MovieClip | Uses:1325 1326 1327 1328 1329 1330 | Used by:Timeline |
Symbol 1332 Graphic | Uses:373 | Used by:Timeline |
Symbol 1333 Sound | Used by:Timeline | |
Streaming Sound 1 | Used by:Symbol 52 MovieClip | |
Streaming Sound 2 | Used by:Symbol 179 MovieClip | |
Streaming Sound 3 | Used by:Symbol 214 MovieClip | |
Streaming Sound 4 | Used by:Symbol 282 MovieClip | |
Streaming Sound 5 | Used by:Symbol 372 MovieClip | |
Streaming Sound 6 | Used by:Symbol 399 MovieClip | |
Streaming Sound 7 | Used by:Symbol 593 MovieClip | |
Streaming Sound 8 | Used by:Symbol 972 MovieClip | |
Streaming Sound 9 | Used by:Symbol 1204 MovieClip | |
Streaming Sound 10 | Used by:Symbol 1212 MovieClip | |
Streaming Sound 11 | Used by:Symbol 1308 MovieClip |
Instance Names
"control" | Frame 1 | Symbol 72 MovieClip |
"cursor" | Frame 1 | Symbol 114 MovieClip |
"mov" | Frame 2 | Symbol 214 MovieClip |
"skp" | Frame 2 | Symbol 217 Button |
"loading" | Frame 3 | Symbol 228 Button |
"res" | Frame 4 | Symbol 246 EditableText |
"lng" | Frame 4 | Symbol 247 EditableText |
"pass" | Frame 5 | Symbol 249 EditableText |
"plataforms" | Frame 6 | Symbol 283 MovieClip |
"zero" | Frame 6 | Symbol 348 MovieClip |
"laser" | Frame 6 | Symbol 35 MovieClip [blast] |
"Hbar" | Frame 6 | Symbol 357 MovieClip |
"plataforms" | Frame 7 | Symbol 368 MovieClip |
"warning" | Frame 7 | Symbol 372 MovieClip |
"Boss_meter" | Frame 7 | Symbol 377 MovieClip |
"plataforms" | Frame 9 | Symbol 410 MovieClip |
"zero" | Frame 9 | Symbol 559 MovieClip |
"laser" | Frame 9 | Symbol 35 MovieClip [blast] |
"blast" | Frame 9 | Symbol 564 MovieClip |
"warning" | Frame 10 | Symbol 372 MovieClip |
"Boss_meter" | Frame 10 | Symbol 377 MovieClip |
"plataforms" | Frame 10 | Symbol 565 MovieClip |
"scene1" | Frame 11 | Symbol 593 MovieClip |
"boss" | Frame 12 | Symbol 597 EditableText |
"kills" | Frame 12 | Symbol 598 EditableText |
"boss2" | Frame 12 | Symbol 602 EditableText |
"boss3" | Frame 12 | Symbol 603 EditableText |
"finale" | Frame 12 | Symbol 612 Button |
"cursor" | Frame 12 | Symbol 114 MovieClip |
"luigi" | Frame 13 | Symbol 618 Button |
"mega" | Frame 13 | Symbol 619 Button |
"plataforms" | Frame 14 | Symbol 646 MovieClip |
"zero" | Frame 14 | Symbol 559 MovieClip |
"laser" | Frame 14 | Symbol 35 MovieClip [blast] |
"blast" | Frame 14 | Symbol 564 MovieClip |
"Hbar" | Frame 14 | Symbol 357 MovieClip |
"zero" | Frame 15 | Symbol 348 MovieClip |
"laser" | Frame 15 | Symbol 35 MovieClip [blast] |
"zero" | Frame 16 | Symbol 710 MovieClip |
"laser" | Frame 16 | Symbol 35 MovieClip [blast] |
"blast" | Frame 16 | Symbol 564 MovieClip |
"zero" | Frame 17 | Symbol 752 MovieClip |
"plataforms" | Frame 18 | Symbol 755 MovieClip |
"zero" | Frame 18 | Symbol 559 MovieClip |
"laser" | Frame 18 | Symbol 35 MovieClip [blast] |
"blast" | Frame 18 | Symbol 564 MovieClip |
"zero" | Frame 19 | Symbol 348 MovieClip |
"laser" | Frame 19 | Symbol 35 MovieClip [blast] |
"zero" | Frame 20 | Symbol 710 MovieClip |
"laser" | Frame 20 | Symbol 35 MovieClip [blast] |
"blast" | Frame 20 | Symbol 564 MovieClip |
"zero" | Frame 21 | Symbol 752 MovieClip |
"plataforms" | Frame 22 | Symbol 771 MovieClip |
"zero" | Frame 22 | Symbol 559 MovieClip |
"laser" | Frame 22 | Symbol 35 MovieClip [blast] |
"blast" | Frame 22 | Symbol 564 MovieClip |
"zero" | Frame 23 | Symbol 348 MovieClip |
"laser" | Frame 23 | Symbol 35 MovieClip [blast] |
"zero" | Frame 24 | Symbol 710 MovieClip |
"laser" | Frame 24 | Symbol 35 MovieClip [blast] |
"blast" | Frame 24 | Symbol 564 MovieClip |
"zero" | Frame 25 | Symbol 752 MovieClip |
"plataforms" | Frame 26 | Symbol 800 MovieClip |
"warning" | Frame 26 | Symbol 372 MovieClip |
"Boss_meter" | Frame 26 | Symbol 377 MovieClip |
"zero" | Frame 26 | Symbol 559 MovieClip |
"laser" | Frame 26 | Symbol 35 MovieClip [blast] |
"blast" | Frame 26 | Symbol 564 MovieClip |
"zero" | Frame 27 | Symbol 348 MovieClip |
"laser" | Frame 27 | Symbol 35 MovieClip [blast] |
"zero" | Frame 28 | Symbol 710 MovieClip |
"laser" | Frame 28 | Symbol 35 MovieClip [blast] |
"blast" | Frame 28 | Symbol 564 MovieClip |
"zero" | Frame 29 | Symbol 752 MovieClip |
"plataforms" | Frame 30 | Symbol 806 MovieClip |
"zero" | Frame 30 | Symbol 559 MovieClip |
"laser" | Frame 30 | Symbol 35 MovieClip [blast] |
"blast" | Frame 30 | Symbol 564 MovieClip |
"zero" | Frame 31 | Symbol 348 MovieClip |
"laser" | Frame 31 | Symbol 35 MovieClip [blast] |
"zero" | Frame 32 | Symbol 710 MovieClip |
"laser" | Frame 32 | Symbol 35 MovieClip [blast] |
"blast" | Frame 32 | Symbol 564 MovieClip |
"zero" | Frame 33 | Symbol 752 MovieClip |
"kill" | Frame 34 | Symbol 813 EditableText |
"zero" | Frame 34 | Symbol 191 MovieClip |
"DPlat" | Frame 34 | Symbol 816 MovieClip |
"UPlat" | Frame 34 | Symbol 816 MovieClip |
"LWall" | Frame 34 | Symbol 816 MovieClip |
"RWall" | Frame 34 | Symbol 816 MovieClip |
"cursor_mc" | Frame 34 | Symbol 818 MovieClip |
"LWall" | Frame 36 | Symbol 816 MovieClip |
"RWall" | Frame 36 | Symbol 816 MovieClip |
"zero" | Frame 36 | Symbol 829 MovieClip |
"plataforms" | Frame 38 | Symbol 835 MovieClip |
"zero" | Frame 38 | Symbol 559 MovieClip |
"laser" | Frame 38 | Symbol 35 MovieClip [blast] |
"blast" | Frame 38 | Symbol 564 MovieClip |
"zero" | Frame 39 | Symbol 348 MovieClip |
"laser" | Frame 39 | Symbol 35 MovieClip [blast] |
"zero" | Frame 40 | Symbol 710 MovieClip |
"laser" | Frame 40 | Symbol 35 MovieClip [blast] |
"blast" | Frame 40 | Symbol 564 MovieClip |
"zero" | Frame 41 | Symbol 752 MovieClip |
"plataforms" | Frame 42 | Symbol 850 MovieClip |
"warning" | Frame 42 | Symbol 372 MovieClip |
"Boss_meter" | Frame 42 | Symbol 377 MovieClip |
"zero" | Frame 42 | Symbol 559 MovieClip |
"laser" | Frame 42 | Symbol 35 MovieClip [blast] |
"blast" | Frame 42 | Symbol 564 MovieClip |
"zero" | Frame 43 | Symbol 348 MovieClip |
"laser" | Frame 43 | Symbol 35 MovieClip [blast] |
"zero" | Frame 44 | Symbol 710 MovieClip |
"laser" | Frame 44 | Symbol 35 MovieClip [blast] |
"blast" | Frame 44 | Symbol 564 MovieClip |
"zero" | Frame 45 | Symbol 752 MovieClip |
"plataforms" | Frame 46 | Symbol 861 MovieClip |
"kill" | Frame 46 | Symbol 862 EditableText |
"zero" | Frame 46 | Symbol 559 MovieClip |
"laser" | Frame 46 | Symbol 35 MovieClip [blast] |
"blast" | Frame 46 | Symbol 564 MovieClip |
"zero" | Frame 47 | Symbol 348 MovieClip |
"laser" | Frame 47 | Symbol 35 MovieClip [blast] |
"zero" | Frame 48 | Symbol 710 MovieClip |
"laser" | Frame 48 | Symbol 35 MovieClip [blast] |
"blast" | Frame 48 | Symbol 564 MovieClip |
"zero" | Frame 49 | Symbol 752 MovieClip |
"plataforms" | Frame 50 | Symbol 889 MovieClip |
"warning" | Frame 50 | Symbol 372 MovieClip |
"Boss_meter" | Frame 50 | Symbol 377 MovieClip |
"zero" | Frame 50 | Symbol 559 MovieClip |
"laser" | Frame 50 | Symbol 35 MovieClip [blast] |
"blast" | Frame 50 | Symbol 564 MovieClip |
"zero" | Frame 51 | Symbol 348 MovieClip |
"laser" | Frame 51 | Symbol 35 MovieClip [blast] |
"zero" | Frame 52 | Symbol 710 MovieClip |
"laser" | Frame 52 | Symbol 35 MovieClip [blast] |
"blast" | Frame 52 | Symbol 564 MovieClip |
"zero" | Frame 53 | Symbol 752 MovieClip |
"plataforms" | Frame 54 | Symbol 897 MovieClip |
"zero" | Frame 54 | Symbol 559 MovieClip |
"laser" | Frame 54 | Symbol 35 MovieClip [blast] |
"blast" | Frame 54 | Symbol 564 MovieClip |
"zero" | Frame 55 | Symbol 348 MovieClip |
"laser" | Frame 55 | Symbol 35 MovieClip [blast] |
"zero" | Frame 56 | Symbol 710 MovieClip |
"laser" | Frame 56 | Symbol 35 MovieClip [blast] |
"blast" | Frame 56 | Symbol 564 MovieClip |
"zero" | Frame 57 | Symbol 752 MovieClip |
"plataforms" | Frame 58 | Symbol 902 MovieClip |
"zero" | Frame 58 | Symbol 559 MovieClip |
"laser" | Frame 58 | Symbol 35 MovieClip [blast] |
"blast" | Frame 58 | Symbol 564 MovieClip |
"zero" | Frame 59 | Symbol 348 MovieClip |
"laser" | Frame 59 | Symbol 35 MovieClip [blast] |
"zero" | Frame 60 | Symbol 710 MovieClip |
"laser" | Frame 60 | Symbol 35 MovieClip [blast] |
"blast" | Frame 60 | Symbol 564 MovieClip |
"zero" | Frame 61 | Symbol 752 MovieClip |
"plataforms" | Frame 62 | Symbol 907 MovieClip |
"zero" | Frame 62 | Symbol 559 MovieClip |
"laser" | Frame 62 | Symbol 35 MovieClip [blast] |
"blast" | Frame 62 | Symbol 564 MovieClip |
"zero" | Frame 63 | Symbol 348 MovieClip |
"laser" | Frame 63 | Symbol 35 MovieClip [blast] |
"zero" | Frame 64 | Symbol 710 MovieClip |
"laser" | Frame 64 | Symbol 35 MovieClip [blast] |
"blast" | Frame 64 | Symbol 564 MovieClip |
"zero" | Frame 65 | Symbol 752 MovieClip |
"plataforms" | Frame 66 | Symbol 1098 MovieClip |
"warning" | Frame 66 | Symbol 372 MovieClip |
"Boss_meter" | Frame 66 | Symbol 377 MovieClip |
"zero" | Frame 66 | Symbol 559 MovieClip |
"laser" | Frame 66 | Symbol 35 MovieClip [blast] |
"blast" | Frame 66 | Symbol 564 MovieClip |
"zero" | Frame 67 | Symbol 348 MovieClip |
"laser" | Frame 67 | Symbol 35 MovieClip [blast] |
"zero" | Frame 68 | Symbol 710 MovieClip |
"laser" | Frame 68 | Symbol 35 MovieClip [blast] |
"blast" | Frame 68 | Symbol 564 MovieClip |
"zero" | Frame 69 | Symbol 752 MovieClip |
"kill" | Frame 70 | Symbol 1101 EditableText |
"zero" | Frame 70 | Symbol 191 MovieClip |
"DPlat" | Frame 70 | Symbol 816 MovieClip |
"UPlat" | Frame 70 | Symbol 816 MovieClip |
"LWall" | Frame 70 | Symbol 816 MovieClip |
"RWall" | Frame 70 | Symbol 816 MovieClip |
"cursor_mc" | Frame 70 | Symbol 818 MovieClip |
"LWall" | Frame 72 | Symbol 816 MovieClip |
"RWall" | Frame 72 | Symbol 816 MovieClip |
"zero" | Frame 72 | Symbol 829 MovieClip |
"plataforms" | Frame 74 | Symbol 1113 MovieClip |
"zero" | Frame 74 | Symbol 559 MovieClip |
"laser" | Frame 74 | Symbol 35 MovieClip [blast] |
"blast" | Frame 74 | Symbol 564 MovieClip |
"zero" | Frame 75 | Symbol 348 MovieClip |
"laser" | Frame 75 | Symbol 35 MovieClip [blast] |
"zero" | Frame 76 | Symbol 710 MovieClip |
"laser" | Frame 76 | Symbol 35 MovieClip [blast] |
"blast" | Frame 76 | Symbol 564 MovieClip |
"zero" | Frame 77 | Symbol 752 MovieClip |
"plataforms" | Frame 78 | Symbol 1117 MovieClip |
"zero" | Frame 78 | Symbol 559 MovieClip |
"laser" | Frame 78 | Symbol 35 MovieClip [blast] |
"blast" | Frame 78 | Symbol 564 MovieClip |
"zero" | Frame 79 | Symbol 348 MovieClip |
"laser" | Frame 79 | Symbol 35 MovieClip [blast] |
"zero" | Frame 80 | Symbol 710 MovieClip |
"laser" | Frame 80 | Symbol 35 MovieClip [blast] |
"blast" | Frame 80 | Symbol 564 MovieClip |
"zero" | Frame 81 | Symbol 752 MovieClip |
"plataforms" | Frame 82 | Symbol 1130 MovieClip |
"warning" | Frame 82 | Symbol 372 MovieClip |
"Boss_meter" | Frame 82 | Symbol 377 MovieClip |
"zero" | Frame 82 | Symbol 559 MovieClip |
"laser" | Frame 82 | Symbol 35 MovieClip [blast] |
"blast" | Frame 82 | Symbol 564 MovieClip |
"zero" | Frame 83 | Symbol 348 MovieClip |
"laser" | Frame 83 | Symbol 35 MovieClip [blast] |
"zero" | Frame 84 | Symbol 710 MovieClip |
"laser" | Frame 84 | Symbol 35 MovieClip [blast] |
"blast" | Frame 84 | Symbol 564 MovieClip |
"zero" | Frame 85 | Symbol 752 MovieClip |
"plataforms" | Frame 86 | Symbol 1136 MovieClip |
"zero" | Frame 86 | Symbol 559 MovieClip |
"laser" | Frame 86 | Symbol 35 MovieClip [blast] |
"blast" | Frame 86 | Symbol 564 MovieClip |
"zero" | Frame 87 | Symbol 348 MovieClip |
"laser" | Frame 87 | Symbol 35 MovieClip [blast] |
"zero" | Frame 88 | Symbol 710 MovieClip |
"laser" | Frame 88 | Symbol 35 MovieClip [blast] |
"blast" | Frame 88 | Symbol 564 MovieClip |
"zero" | Frame 89 | Symbol 752 MovieClip |
"plataforms" | Frame 90 | Symbol 1165 MovieClip |
"warning" | Frame 90 | Symbol 372 MovieClip |
"Boss_meter" | Frame 90 | Symbol 377 MovieClip |
"zero" | Frame 90 | Symbol 559 MovieClip |
"laser" | Frame 90 | Symbol 35 MovieClip [blast] |
"blast" | Frame 90 | Symbol 564 MovieClip |
"zero" | Frame 91 | Symbol 348 MovieClip |
"laser" | Frame 91 | Symbol 35 MovieClip [blast] |
"zero" | Frame 92 | Symbol 710 MovieClip |
"laser" | Frame 92 | Symbol 35 MovieClip [blast] |
"blast" | Frame 92 | Symbol 564 MovieClip |
"zero" | Frame 93 | Symbol 752 MovieClip |
"plataforms" | Frame 94 | Symbol 1197 MovieClip |
"zero" | Frame 94 | Symbol 559 MovieClip |
"laser" | Frame 94 | Symbol 35 MovieClip [blast] |
"blast" | Frame 94 | Symbol 564 MovieClip |
"zero" | Frame 95 | Symbol 348 MovieClip |
"laser" | Frame 95 | Symbol 35 MovieClip [blast] |
"zero" | Frame 96 | Symbol 710 MovieClip |
"laser" | Frame 96 | Symbol 35 MovieClip [blast] |
"blast" | Frame 96 | Symbol 564 MovieClip |
"zero" | Frame 97 | Symbol 752 MovieClip |
"cursor" | Frame 98 | Symbol 114 MovieClip |
"koopa2" | Symbol 29 MovieClip [enemy] Frame 1 | Symbol 23 MovieClip |
"range" | Symbol 70 MovieClip [soldier] Frame 1 | Symbol 36 MovieClip |
"die" | Symbol 70 MovieClip [soldier] Frame 2 | Symbol 69 MovieClip |
"bar" | Symbol 91 MovieClip Frame 1 | Symbol 75 MovieClip |
"gun" | Symbol 180 MovieClip Frame 1 | Symbol 179 MovieClip |
"body" | Symbol 191 MovieClip Frame 1 | Symbol 152 MovieClip |
"mario" | Symbol 191 MovieClip Frame 2 | Symbol 187 MovieClip |
"dialoge" | Symbol 214 MovieClip Frame 254 | Symbol 139 EditableText |
"pies" | Symbol 348 MovieClip Frame 1 | Symbol 25 MovieClip |
"body" | Symbol 348 MovieClip Frame 1 | Symbol 25 MovieClip |
"boss" | Symbol 367 MovieClip Frame 1 | Symbol 366 MovieClip |
"boss" | Symbol 368 MovieClip Frame 1 | Symbol 367 MovieClip |
"mario_dead" | Symbol 408 MovieClip Frame 11 | Symbol 406 MovieClip |
"mariobot" | Symbol 409 MovieClip Frame 1 | Symbol 408 MovieClip |
"pies" | Symbol 559 MovieClip Frame 1 | Symbol 25 MovieClip |
"body" | Symbol 559 MovieClip Frame 1 | Symbol 25 MovieClip |
"char" | Symbol 559 MovieClip Frame 1 | Symbol 415 MovieClip |
"zero_walk" | Symbol 559 MovieClip Frame 10 | Symbol 431 MovieClip |
"zero_jump" | Symbol 559 MovieClip Frame 15 | Symbol 437 MovieClip |
"zero_fall" | Symbol 559 MovieClip Frame 20 | Symbol 443 MovieClip |
"zero_land" | Symbol 559 MovieClip Frame 24 | Symbol 446 MovieClip |
"zero_land" | Symbol 559 MovieClip Frame 29 | Symbol 453 MovieClip |
"zero_land" | Symbol 559 MovieClip Frame 34 | Symbol 457 MovieClip |
"zero_land" | Symbol 559 MovieClip Frame 42 | Symbol 464 MovieClip |
"zero_land" | Symbol 559 MovieClip Frame 47 | Symbol 468 MovieClip |
"boss" | Symbol 565 MovieClip Frame 1 | Symbol 367 MovieClip |
"dialoge" | Symbol 593 MovieClip Frame 258 | Symbol 577 EditableText |
"dialoge" | Symbol 593 MovieClip Frame 279 | Symbol 579 EditableText |
"dialoge" | Symbol 593 MovieClip Frame 408 | Symbol 587 EditableText |
"dialoge" | Symbol 593 MovieClip Frame 415 | Symbol 588 EditableText |
"dialoge" | Symbol 593 MovieClip Frame 422 | Symbol 589 EditableText |
"dialoge" | Symbol 593 MovieClip Frame 427 | Symbol 590 EditableText |
"dialoge" | Symbol 593 MovieClip Frame 432 | Symbol 591 EditableText |
"dialoge" | Symbol 593 MovieClip Frame 590 | Symbol 592 EditableText |
"pies" | Symbol 710 MovieClip Frame 1 | Symbol 25 MovieClip |
"body" | Symbol 710 MovieClip Frame 1 | Symbol 25 MovieClip |
"char" | Symbol 710 MovieClip Frame 1 | Symbol 415 MovieClip |
"pies" | Symbol 752 MovieClip Frame 1 | Symbol 25 MovieClip |
"body" | Symbol 752 MovieClip Frame 1 | Symbol 25 MovieClip |
"upper" | Symbol 753 MovieClip Frame 1 | Symbol 36 MovieClip |
"range" | Symbol 770 MovieClip Frame 1 | Symbol 36 MovieClip |
"boss" | Symbol 799 MovieClip Frame 1 | Symbol 798 MovieClip |
"boss" | Symbol 800 MovieClip Frame 1 | Symbol 799 MovieClip |
"body" | Symbol 829 MovieClip Frame 1 | Symbol 152 MovieClip |
"mario" | Symbol 829 MovieClip Frame 2 | Symbol 828 MovieClip |
"boss" | Symbol 845 MovieClip Frame 1 | Symbol 844 MovieClip |
"boss" | Symbol 850 MovieClip Frame 1 | Symbol 845 MovieClip |
"boss" | Symbol 888 MovieClip Frame 1 | Symbol 887 MovieClip |
"boss" | Symbol 889 MovieClip Frame 1 | Symbol 888 MovieClip |
"boss" | Symbol 1097 MovieClip Frame 1 | Symbol 1096 MovieClip |
"boss" | Symbol 1098 MovieClip Frame 1 | Symbol 1097 MovieClip |
"boss" | Symbol 1127 MovieClip Frame 1 | Symbol 1121 MovieClip |
"boss" | Symbol 1128 MovieClip Frame 1 | Symbol 1127 MovieClip |
"boss" | Symbol 1130 MovieClip Frame 1 | Symbol 1128 MovieClip |
"Boss" | Symbol 1163 MovieClip Frame 1 | Symbol 1149 MovieClip |
"boss" | Symbol 1164 MovieClip Frame 1 | Symbol 1163 MovieClip |
"boss" | Symbol 1165 MovieClip Frame 1 | Symbol 1164 MovieClip |
"boss" | Symbol 1196 MovieClip Frame 1 | Symbol 1195 MovieClip |
"wall" | Symbol 1197 MovieClip Frame 1 | Symbol 1169 MovieClip |
"boss" | Symbol 1197 MovieClip Frame 1 | Symbol 1196 MovieClip |
"dialoge" | Symbol 1248 MovieClip Frame 188 | Symbol 1242 EditableText |
"dialoge" | Symbol 1248 MovieClip Frame 203 | Symbol 1244 EditableText |
"dialoge" | Symbol 1248 MovieClip Frame 216 | Symbol 1245 EditableText |
"dialoge" | Symbol 1266 MovieClip Frame 32 | Symbol 1258 EditableText |
"wall" | Symbol 1267 MovieClip Frame 1 | Symbol 1169 MovieClip |
"dialoge" | Symbol 1308 MovieClip Frame 692 | Symbol 1291 EditableText |
"dialoge" | Symbol 1308 MovieClip Frame 873 | Symbol 1301 EditableText |
"dialoge" | Symbol 1308 MovieClip Frame 878 | Symbol 1302 EditableText |
"dialoge" | Symbol 1308 MovieClip Frame 885 | Symbol 1303 EditableText |
"cosa" | Symbol 1322 MovieClip Frame 57 | Symbol 1321 MovieClip |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata present, AS1/AS2. |
SWFMetaData (77) | Timeline Frame 1 | 283 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns ..." |
Protect (24) | Timeline Frame 1 | 0 bytes "" |
ExportAssets (56) | Timeline Frame 1 | Symbol 12 as "bomb" |
ExportAssets (56) | Timeline Frame 1 | Symbol 29 as "enemy" |
ExportAssets (56) | Timeline Frame 1 | Symbol 33 as "flamerain" |
ExportAssets (56) | Timeline Frame 1 | Symbol 35 as "blast" |
ExportAssets (56) | Timeline Frame 1 | Symbol 70 as "soldier" |
ExportAssets (56) | Timeline Frame 2 | Symbol 115 as "00" |
ExportAssets (56) | Timeline Frame 2 | Symbol 116 as "01" |
ExportAssets (56) | Timeline Frame 2 | Symbol 117 as "02" |
ExportAssets (56) | Timeline Frame 2 | Symbol 118 as "03" |
ExportAssets (56) | Timeline Frame 2 | Symbol 119 as "04" |
ExportAssets (56) | Timeline Frame 2 | Symbol 120 as "05" |
ExportAssets (56) | Timeline Frame 2 | Symbol 121 as "06" |
ExportAssets (56) | Timeline Frame 2 | Symbol 122 as "10" |
ExportAssets (56) | Timeline Frame 2 | Symbol 123 as "07" |
ExportAssets (56) | Timeline Frame 2 | Symbol 124 as "09" |
ExportAssets (56) | Timeline Frame 2 | Symbol 125 as "fina" |
ExportAssets (56) | Timeline Frame 2 | Symbol 126 as "finb" |
ExportAssets (56) | Timeline Frame 2 | Symbol 127 as "warning" |
Labels
"gameover" | Frame 106 |
"loaded" | Symbol 91 MovieClip Frame 3 |
"dead" | Symbol 191 MovieClip Frame 2 |
"stay" | Symbol 348 MovieClip Frame 1 |
"tired" | Symbol 348 MovieClip Frame 5 |
"walk" | Symbol 348 MovieClip Frame 10 |
"jump" | Symbol 348 MovieClip Frame 15 |
"fall" | Symbol 348 MovieClip Frame 20 |
"land" | Symbol 348 MovieClip Frame 24 |
"dash" | Symbol 348 MovieClip Frame 29 |
"stop_dash" | Symbol 348 MovieClip Frame 34 |
"grab" | Symbol 348 MovieClip Frame 42 |
"grab_side" | Symbol 348 MovieClip Frame 47 |
"damage" | Symbol 348 MovieClip Frame 55 |
"dead" | Symbol 348 MovieClip Frame 61 |
"atack" | Symbol 348 MovieClip Frame 66 |
"atack2" | Symbol 348 MovieClip Frame 71 |
"atack3" | Symbol 348 MovieClip Frame 75 |
"shot" | Symbol 348 MovieClip Frame 80 |
"sleep" | Symbol 348 MovieClip Frame 83 |
"under" | Symbol 348 MovieClip Frame 89 |
"die" | Symbol 406 MovieClip Frame 1 |
"stay" | Symbol 559 MovieClip Frame 1 |
"tired" | Symbol 559 MovieClip Frame 5 |
"walk" | Symbol 559 MovieClip Frame 10 |
"jump" | Symbol 559 MovieClip Frame 15 |
"fall" | Symbol 559 MovieClip Frame 20 |
"land" | Symbol 559 MovieClip Frame 24 |
"dash" | Symbol 559 MovieClip Frame 29 |
"stop_dash" | Symbol 559 MovieClip Frame 34 |
"grab" | Symbol 559 MovieClip Frame 42 |
"grab_side" | Symbol 559 MovieClip Frame 47 |
"damage" | Symbol 559 MovieClip Frame 55 |
"dead" | Symbol 559 MovieClip Frame 61 |
"atack" | Symbol 559 MovieClip Frame 66 |
"atack2" | Symbol 559 MovieClip Frame 71 |
"atack3" | Symbol 559 MovieClip Frame 77 |
"atack4" | Symbol 559 MovieClip Frame 81 |
"shot" | Symbol 559 MovieClip Frame 86 |
"shot2" | Symbol 559 MovieClip Frame 91 |
"shot3" | Symbol 559 MovieClip Frame 96 |
"shot4" | Symbol 559 MovieClip Frame 101 |
"stay" | Symbol 710 MovieClip Frame 1 |
"tired" | Symbol 710 MovieClip Frame 5 |
"walk" | Symbol 710 MovieClip Frame 10 |
"jump" | Symbol 710 MovieClip Frame 15 |
"fall" | Symbol 710 MovieClip Frame 20 |
"land" | Symbol 710 MovieClip Frame 24 |
"dash" | Symbol 710 MovieClip Frame 29 |
"stop_dash" | Symbol 710 MovieClip Frame 34 |
"grab" | Symbol 710 MovieClip Frame 42 |
"grab_side" | Symbol 710 MovieClip Frame 47 |
"damage" | Symbol 710 MovieClip Frame 55 |
"dead" | Symbol 710 MovieClip Frame 61 |
"shot" | Symbol 710 MovieClip Frame 66 |
"shot2" | Symbol 710 MovieClip Frame 71 |
"shot3" | Symbol 710 MovieClip Frame 76 |
"shot4" | Symbol 710 MovieClip Frame 81 |
"stay" | Symbol 752 MovieClip Frame 1 |
"tired" | Symbol 752 MovieClip Frame 5 |
"walk" | Symbol 752 MovieClip Frame 10 |
"jump" | Symbol 752 MovieClip Frame 15 |
"fall" | Symbol 752 MovieClip Frame 20 |
"land" | Symbol 752 MovieClip Frame 24 |
"dash" | Symbol 752 MovieClip Frame 29 |
"stop_dash" | Symbol 752 MovieClip Frame 34 |
"grab" | Symbol 752 MovieClip Frame 42 |
"grab_side" | Symbol 752 MovieClip Frame 47 |
"damage" | Symbol 752 MovieClip Frame 55 |
"dead" | Symbol 752 MovieClip Frame 61 |
"atack" | Symbol 752 MovieClip Frame 66 |
"atack4" | Symbol 752 MovieClip Frame 71 |
"atack3" | Symbol 752 MovieClip Frame 75 |
"shot" | Symbol 752 MovieClip Frame 80 |
"sleep" | Symbol 752 MovieClip Frame 83 |
"under" | Symbol 752 MovieClip Frame 89 |
"dead" | Symbol 829 MovieClip Frame 2 |
|