Knight / A Platformer

Instructions: LOS SLIMES TIENEN 3 VIDAS\nNINGÚN NIVEL ES IMPOSIBLE\nalgunas instrucciones están en el juego\nMantené presionado {espacio} para matar un slime\nHold down {space bar} to kill a slime\nSI NO QUIEREN SPOILER NO LEAN LOS COMENTARIOS\n\n¡¡¡POR FIN HE TERMINADO EL JUEGO, AHORA YA NO ES UN BETA!!! :D\nSi no has podido matar ningún slime lee lo que está abajo ↓\n\n\n\n\n\n\n\n\n\n\n\n\nLOS SLIMES TIENEN 3 VIDAS, Y LO ESTÁS ATACANDO MAL, DEBES MANTENER PRESIONADO ESPACIO PARA QUITARLE LAS TRES VIDAS, POR QUE SI TOCÁS ESPACIO SOLO UNA VEZ, ENTONCES LUEGO EL SLIME TE ATACA A TI. :)

@Stage\n\nwhen flag clicked\nswitch backdrop to (fondo1 v)\n\nwhen flag clicked\nset [time v] to [0]\nhide variable [level v]\nhide variable [time v]\nstart sound [1 v]\n\nwhen I receive [start v]\nforever\n    wait (1) seconds\n    change [time v] by (1)\n    next backdrop\nend\n\nwhen I receive [start v]\nstop all sounds\nforever\n    play sound [Música v] until done\nend\n\n@Player\n\nwhen flag clicked\nclear graphic effects\nswitch costume to (disfraz1 v)\nset rotation style [left-right v]\npoint in direction (90)\ngo to (hitbox v)\nset size to (600) %\n\nwhen flag clicked\nforever\n    if <<key (left arrow v) pressed?> and <not <key (right arrow v) pressed?>>> then\n        point in direction (-90)\n        repeat until <not <key (left arrow v) pressed?>>\n            go to (hitbox v)\n            switch costume to (disfraz5 v)\n            if <(Next level) = [1]> then\n                start sound [Win v]\n                repeat (50)\n                    change [brightness v] effect by (2)\n                end\n                wait (0.5) seconds\n                broadcast (muere2 v)\n                broadcast (next v)\n            end\n            go to (hitbox v)\n            wait (0.1) seconds\n            go to (hitbox v)\n            if <(Next level) = [1]> then\n                start sound [Win v]\n                repeat (50)\n                    change [brightness v] effect by (2)\n                end\n                wait (0.5) seconds\n                broadcast (muere2 v)\n                broadcast (next v)\n            end\n            switch costume to (disfraz1 v)\n            go to (hitbox v)\n            wait (0.1) seconds\n            if <(Next level) = [1]> then\n                start sound [Win v]\n                repeat (50)\n                    change [brightness v] effect by (2)\n                end\n                wait (0.5) seconds\n                broadcast (muere2 v)\n                broadcast (next v)\n            end\n            go to (hitbox v)\n        end\n    end\n    if <(Next level) = [1]> then\n        start sound [Win v]\n        repeat (50)\n            change [brightness v] effect by (2)\n        end\n        wait (0.5) seconds\n        broadcast (muere2 v)\n        broadcast (next v)\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    if <<key (right arrow v) pressed?> and <not <key (left arrow v) pressed?>>> then\n        point in direction (90)\n        repeat until <not <key (right arrow v) pressed?>>\n            go to (hitbox v)\n            switch costume to (disfraz5 v)\n            go to (hitbox v)\n            wait (0.1) seconds\n            go to (hitbox v)\n            switch costume to (disfraz1 v)\n            go to (hitbox v)\n            wait (0.1) seconds\n            go to (hitbox v)\n        end\n    end\nend\n\nwhen I receive [muere1 v]\nset rotation style [all around v]\npoint in direction (45)\nwait (0.2) seconds\nbroadcast (muere2 v)\nset rotation style [left-right v]\npoint in direction (90)\n\nbroadcast (muere2 v)\n\nwhen I receive [normal v]\nclear graphic effects\n\nwhen I receive [start v]\nshow\nshow variable [time v]\nshow variable [level v]\nforever\n    go to (hitbox v)\n    if <key (space v) pressed?> then\n        go to (hitbox v)\n        wait (0.1) seconds\n        start sound [Golpe v]\n        go to (hitbox v)\n        switch costume to (disfraz1 v)\n        repeat (3)\n            go to (hitbox v)\n            next costume\n        end\n        repeat (3)\n            go to (hitbox v)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\n    if <not <<key (space v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>>> then\n        switch costume to (disfraz1 v)\n    end\nend\n\nwhen I receive [win v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [no v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@hitbox\n\nwhen flag clicked\nhide variable [☁ best score v]\nset [next level v] to [0]\ngo to x: (-116) y: (122)\nset [ghost v] effect to (99999)\ngo to [back v] layer\nshow\npoint in direction (90)\nset size to (100) %\n\ndefine gravedad\nchange y by (-6)\n\nwhen I receive [derecha v]\nchange [x v] by (-5)\n\nwhen I receive [izquierda v]\nchange [x v] by (5)\n\nwhen I receive [muere2 v]\ngo to x: (-116) y: (122)\nset [x v] to [0]\n\nwhen I receive [abajo v]\nchange y by (-11)\n\nwhen I receive [arriba v]\nchange y by (11)\n\nwhen I receive [start v]\nforever\n    if <not <(piso) = [1]>> then\n        gravedad\n    end\n    if <<<touching (slime1 v)?> or <touching (slime2 v)?>> and <not <key (space v) pressed?>>> then\n        broadcast (muere1 v)\n        start sound [muerte v]\n        wait until <not <<touching (slime1 v)?> or <touching (slime2 v)?>>>\n    end\n    if <touching color (#ff7300)?> then\n        broadcast (muere1 v)\n        start sound [muerte v]\n        wait until <not <touching color (#ff7300)?>>\n    end\n    if <<touching color (#a4a4a4)?> and <touching color (#ffffff)?>> then\n        set [next level v] to [1]\n        wait (0.1) seconds\n        set [next level v] to [0]\n        wait until <not <<touching color (#a4a4a4)?> and <touching color (#ffffff)?>>>\n        broadcast (normal v)\n    end\nend\n\nwhen I receive [best score v]\n\n@abajo\n\nwhen flag clicked\nset [ghost v] effect to (999999)\nwait (0.1) seconds\nforever\n    go to (hitbox v)\n    if <touching color (#30ff00)?> then\n        set [piso v] to [1]\n    else\n        set [piso v] to [0]\n    end\n    if <<touching (piso6 v)?> and <<(Level) = [5]> and <touching color (#30ff00)?>>> then\n        show variable [☁ best score v]\n        if <(Time) < (☁ Best score)> then\n            broadcast (win v)\n            set [☁ best score v] to (Time)\n        else\n            broadcast (no v)\n        end\n        wait (0.3) seconds\n        stop [all v]\n    end\nend\n\n@piso\n\nwhen flag clicked\nset [x v] to [0]\ngo to x: (0) y: (0)\nforever\n    set x to (x)\nend\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\n\nwhen I receive [next v]\nnext costume\n\n@derecha\n\nwhen flag clicked\nset [ghost v] effect to (999999)\nforever\n    go to (hitbox v)\n    if <<key (right arrow v) pressed?> and <not <touching color (#30ff00)?>>> then\n        broadcast (derecha v)\n    end\nend\n\n@izquierda\n\nwhen flag clicked\nset [ghost v] effect to (999999)\nforever\n    go to (hitbox v)\n    if <<key (left arrow v) pressed?> and <not <touching color (#30ff00)?>>> then\n        broadcast (izquierda v)\n    end\nend\n\n@piso2\n\nwhen flag clicked\nset [x v] to [0]\ngo to x: (0) y: (0)\nforever\n    set x to ((x) + (450))\n    set [level v] to (costume [number v])\nend\n\nwhen flag clicked\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\nset [level v] to [1]\n\n@Barras\n\nwhen flag clicked\nrepeat (10)\n    go to [front v] layer\nend\n\n@Slime1\n\nwhen flag clicked\nshow\nswitch costume to (disfraz1 v)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (500) %\nhide\nwait (0.3) seconds\nshow\nforever\n    if <(Level) = [1]> then\n        go to (piso2 v)\n        repeat (10)\n            go to (piso2 v)\n            move (-5) steps\n        end\n        go to (piso2 v)\n        point in direction ((direction) * (-1))\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso2 v)\n        end\n    end\n    if <(Level) = [2]> then\n        go to (piso v)\n        repeat (10)\n            go to (piso v)\n            move (-5) steps\n        end\n        go to (piso v)\n        point in direction ((direction) * (-1))\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso v)\n        end\n    end\n    if <(Level) = [4]> then\n        go to (piso5 v)\n        repeat (10)\n            go to (piso5 v)\n            move (-5) steps\n        end\n        go to (piso5 v)\n        point in direction ((direction) * (-1))\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso5 v)\n        end\n    end\n    if <(Level) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nset [vida slime 1 v] to [3]\nforever\n    if <<key (space v) pressed?> and <touching (player v)?>> then\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        change [vida slime 1 v] by (-1)\n        if <(Vida slime 1) = [0]> then\n            hide\n        end\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [muere2 v]\nif <<(Level) = [1]> or <<(Level) = [2]> or <(Level) = [4]>>> then\n    set [vida slime 1 v] to [3]\n    show\nelse\n    hide\nend\n\n@piso3\n\nwhen flag clicked\nset [x v] to [0]\ngo to x: (0) y: (0)\nforever\n    set x to ((x) + ((450) * (2)))\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\n\n@piso4\n\nwhen flag clicked\nset [x v] to [0]\ngo to x: (0) y: (0)\nforever\n    set x to ((x) + ((450) * (3)))\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\n\n@piso5\n\nwhen flag clicked\nset [x v] to [0]\ngo to x: (0) y: (0)\nforever\n    set x to ((x) + ((450) * (4)))\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\n\n@piso6\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\n\nwhen flag clicked\nset [x v] to [0]\ngo to x: (0) y: (0)\nforever\n    set x to ((x) + ((450) * (5)))\nend\n\nwhen I receive [win v]\nswitch costume to (disfraz5 v)\n\nwhen I receive [no v]\nswitch costume to (disfraz6 v)\n\n@Slime2\n\nwhen flag clicked\nset rotation style [left-right v]\nshow\nswitch costume to (disfraz1 v)\npoint in direction (90)\nset size to (500) %\nhide\nwait (0.3) seconds\nshow\nforever\n    if <(Level) = [1]> then\n        go to (piso6 v)\n        repeat (10)\n            go to (piso6 v)\n            move (-5) steps\n        end\n        go to (piso6 v)\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso6 v)\n        end\n    end\n    if <(Level) = [2]> then\n        go to (piso v)\n        repeat (10)\n            go to (piso v)\n            move (-5) steps\n        end\n        go to (piso v)\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso v)\n        end\n    end\n    if <(Level) = [3]> then\n        go to (piso3 v)\n        repeat (10)\n            go to (piso3 v)\n            move (-5) steps\n        end\n        go to (piso3 v)\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso3 v)\n        end\n    end\n    if <(Level) = [4]> then\n        go to (piso3 v)\n        repeat (10)\n            go to (piso3 v)\n            move (-5) steps\n        end\n        go to (piso3 v)\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso3 v)\n        end\n    end\nend\n\n\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <touching (player v)?>> then\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        wait until <<key (space v) pressed?> and <touching (player v)?>>\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        wait until <<key (space v) pressed?> and <touching (player v)?>>\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        hide\n    end\nend\n\nwhen I receive [muere2 v]\nshow\n\n@Objeto1\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\ngo to [front v] layer\nshow\n\n@Slime3\n\nwhen flag clicked\nset rotation style [left-right v]\nshow\nswitch costume to (disfraz1 v)\npoint in direction (90)\nset size to (500) %\nhide\nwait (0.3) seconds\nforever\n    if <(Level) = [3]> then\n        go to (piso3 v)\n        repeat (10)\n            go to (piso3 v)\n            move (-5) steps\n        end\n        go to (piso3 v)\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso3 v)\n        end\n    end\n    if <(Level) = [4]> then\n        go to (piso v)\n        repeat (10)\n            go to (piso v)\n            move (-5) steps\n        end\n        go to (piso v)\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso v)\n        end\n    end\nend\n\nshow\n\nwhen flag clicked\nset [vida slime 3 v] to [3]\nforever\n    if <<key (space v) pressed?> and <touching (player v)?>> then\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        change [vida slime 3 v] by (-1)\n        if <(Vida slime 3) = [0]> then\n            hide\n        end\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [muere2 v]\nif <(Level) = [5]> then\n    hide\nend\nif <<(Level) = [3]> or <(Level) = [4]>> then\n    set [vida slime 3 v] to [3]\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nwait until <(Level) = [5]>\nhide\n\n@Objeto2\n\nwhen flag clicked\nset rotation style [left-right v]\npoint in direction (90)\nswitch costume to (disfraz1 v)\nhide\nwait (0.2) seconds\nwait until <(Level) = [3]>\nshow\nrepeat until <touching (hitbox v)?>\n    go to (piso v)\nend\nforever\n    go to (player v)\n    if <key (space v) pressed?> then\n        go to (player v)\n        switch costume to (disfraz2 v)\n        repeat (4)\n            change x by (2)\n            if <<key (right arrow v) pressed?> and <not <key (left arrow v) pressed?>>> then\n                point in direction (90)\n            end\n            if <<key (left arrow v) pressed?> and <not <key (right arrow v) pressed?>>> then\n                point in direction (-90)\n            end\n        end\n        switch costume to (disfraz1 v)\n        go to (player v)\n    end\n    if <<key (right arrow v) pressed?> and <not <key (left arrow v) pressed?>>> then\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> and <not <key (right arrow v) pressed?>>> then\n        point in direction (-90)\n    end\nend\n\n@arriba\n\nwhen flag clicked\nset [ghost v] effect to (999999)\nforever\n    go to (hitbox v)\n    if <<key (up arrow v) pressed?> and <(piso) = [1]>> then\n        repeat (13)\n            broadcast (arriba v)\n            go to (hitbox v)\n            if <touching color (#30ff00)?> then\n                broadcast (abajo v)\n                go to (hitbox v)\n            end\n        end\n    end\nend\n\n@Objeto3\n\nwhen flag clicked\nshow\n\nwhen I receive [start v]\nhide\n\nwhen I receive [historia v]\nhide\n\n@Objeto4\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\ngo to x: (63) y: (-25)\nshow\n\nwhen I receive [start v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [historia v]\nhide\n\nwhen I receive [comienza v]\nwait (0.3) seconds\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        switch costume to (disfraz2 v)\n        wait (3) seconds\n        switch costume to (disfraz1 v)\n    end\nend\n\nwhen I receive [comienza v]\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (\( º-º \) v)\n    end\nend\n\n@Objeto5\n\nwhen flag clicked\nset size to (600) %\n\nwhen I receive [start v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\ngo to x: (-140) y: (-25)\nshow\n\nwhen I receive [historia v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\n\nwhen I receive [comienza v]\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (\( ºuº \) v)\n    end\nend\n\nwhen I receive [comienza v]\nwait (0.3) seconds\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        stop all sounds\n        start sound [A Elec Piano v]\n        broadcast (historia v)\n        wait (0.3) seconds\n        start sound [The Legend of Zelda \(NES\) - Intro \(Main Theme\) v]\n    end\nend\n\n@Objeto6\n\nwhen flag clicked\nhide\n\nwhen I receive [historia v]\nswitch costume to (disfraz1 v)\nshow\nstart sound [recording1 v]\nrepeat (18)\n    wait (0.2) seconds\n    next costume\nend\nstart sound [recording2 v]\nrepeat (9)\n    wait (0.2) seconds\n    next costume\nend\nwait (0.2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (START v)\n\n@Slime4\n\nwhen flag clicked\nset rotation style [left-right v]\nshow\nswitch costume to (disfraz1 v)\npoint in direction (90)\nset size to (500) %\nhide\nwait (0.3) seconds\nshow\nforever\n    if <not <(Level) = [4]>> then\n        hide\n        wait until <(Level) = [4]>\n        show\n    end\n    if <(Level) = [4]> then\n        go to (piso4 v)\n        repeat (10)\n            go to (piso4 v)\n            move (-5) steps\n        end\n        go to (piso4 v)\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso4 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <touching (player v)?>> then\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        wait until <<key (space v) pressed?> and <touching (player v)?>>\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        wait until <<key (space v) pressed?> and <touching (player v)?>>\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        hide\n    end\nend\n\nwhen I receive [muere2 v]\nshow\n\n@Objeto7\n\nwhen flag clicked\nset [h v] to [0]\nset [ghost v] effect to (0)\nhide\n\nwhen I receive [\( ºuº \) v]\nif <(h) = [0]> then\n    show\n    go to (objeto5 v)\nend\n\nwhen I receive [\( º-º \) v]\nif <(h) = [0]> then\n    show\n    go to (objeto4 v)\nend\n\nwhen I receive [historia v]\nstop [other scripts in sprite v]\nset [h v] to [1]\nhide\n\nwhen I receive [comienza v]\nforever\n    if <touching (mouse-pointer v)?> then\n        start sound [Pop v]\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\n@Objeto8\n\nwhen I receive [comienza v]\nhide\n\nwhen flag clicked\nshow\n\n@disfraz1 (15)\n\nwhen flag clicked\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        if <mouse down?> then\n            hide\n            broadcast (COMIENZA v)\n            repeat (3)\n                stop all sounds\n            end\n            stop [other scripts in sprite v]\n            start sound [The Legend of Zelda v]\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        start sound [Muted Conga v]\n        set size to (120) %\n        wait until <not <touching (mouse-pointer v)?>>\n    else\n        set size to (100) %\n    end\nend\n\n@Slime5\n\nwhen flag clicked\nshow\nswitch costume to (disfraz1 v)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (500) %\nhide\nwait (0.3) seconds\nforever\n    if <(Level) = [5]> then\n        go to (piso v)\n        repeat (10)\n            go to (piso v)\n            move (-5) steps\n        end\n        go to (piso v)\n        point in direction ((direction) * (-1))\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso v)\n        end\n    end\nend\n\nwhen flag clicked\nset [vida slime 1 v] to [3]\nforever\n    if <<key (space v) pressed?> and <touching (player v)?>> then\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        change [vida slime 1 v] by (-1)\n        if <(Vida slime 1) = [0]> then\n            hide\n        end\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [muere2 v]\nif <(Level) = [5]> then\n    set [vida slime 1 v] to [3]\n    show\nelse\n    hide\nend\n\n@Slime6\n\nwhen flag clicked\nset rotation style [left-right v]\nshow\nswitch costume to (disfraz1 v)\npoint in direction (90)\nset size to (500) %\nhide\nforever\n    if <(Level) = [5]> then\n        go to (piso5 v)\n        repeat (10)\n            go to (piso5 v)\n            move (-5) steps\n        end\n        go to (piso5 v)\n        repeat (10)\n            wait (0.1) seconds\n            go to (piso5 v)\n        end\n    end\nend\n\n\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <touching (player v)?>> then\n        start sound [Muerte v]\n        switch costume to (disfraz2 v)\n        repeat (5)\n            change [brightness v] effect by (10)\n        end\n        repeat (5)\n            change [brightness v] effect by (-10)\n        end\n        switch costume to (disfraz1 v)\n        change [vida slime 6 v] by (1)\n        if <(vida slime 6) = [0]> then\n            hide\n        end\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [muere2 v]\nif <(Level) = [5]> then\n    set [vida slime 6 v] to [3]\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    reset timer\n    repeat (2)\n        set size to (size) %\n    end\n    if <(timer) = [0]> then\n        broadcast (t v)\n    end\nend\n\n@Objeto9\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\n\nwhen I receive [t v]\nshow\nstop [all v]\n\n@Objeto10\n\n