Minecraft PLATFORMER #games
@Stage\n\nwhen I receive [empezar v]\nclear sound effects\nforever\n    set volume to (volumen) %\n    if <(juego terminado \(game over\)) = [1]> then\n        stop [other scripts in sprite v]\n        set volume to (0) %\n        clear sound effects\n        stop all sounds\n        wait (0.1) seconds\n        broadcast (dead v)\n        set volume to (volumen) %\n        play sound [y2mate2 v] until done\n        stop [all v]\n    end\n    if <<not <(juego terminado \(game over\)) = [1]>> and <(nivel) = [24]>> then\n        wait (0.1) seconds\n        play sound [y2mate v] until done\n        wait (1) seconds\n        stop [all v]\n    end\nend\n\nwhen I receive [empezar v]\nwait (1) seconds\nforever\n    if <<<[0] < (nivel)> and <(nivel) < [13]>> and <(juego terminado \(game over\)) = [0]>> then\n        play sound [otherside v] until done\n    end\nend\n\nwhen I receive [dead v]\nforever\n    set volume to (volumen) %\nend\n\nwhen flag clicked\nset [volumen v] to [100]\nforever\n    if <(THEME) = [0]> then\n        switch backdrop to (fondo2 v)\n    end\n    if <(THEME) = [1]> then\n        switch backdrop to (fondo1 v)\n    end\n    if <(THEME) = [2]> then\n        switch backdrop to (fondo3 v)\n    end\n    if <(THEME) = [3]> then\n        switch backdrop to (fondo4 v)\n    end\n    if <(THEME) = [4]> then\n        switch backdrop to (fondo5 v)\n    end\nend\n\nwhen I receive [empezar v]\nwait until <<not <<[0] < (nivel)> and <(nivel) < [13]>>> or <not <(juego terminado \(game over\)) = [0]>>>\nclear sound effects\nstop all sounds\nwait until <<not <<[12] < (nivel)> and <(nivel) < [17]>>> or <not <(juego terminado \(game over\)) = [0]>>>\nclear sound effects\nstop all sounds\nwait until <<<not <<[16] < (nivel)> and <(nivel) < [21]>>> and <(nivel) = [21]>> or <not <(juego terminado \(game over\)) = [0]>>>\nclear sound effects\nstop all sounds\nwait until <<not <<[20] < (nivel)> and <(nivel) < [23]>>> or <not <(juego terminado \(game over\)) = [0]>>>\nclear sound effects\nstop all sounds\nwait until <<not <<[22] < (nivel)> and <(nivel) < [24]>>> or <<not <(juego terminado \(game over\)) = [0]>> or <(end of the adventure) = [0]>>>\nclear sound effects\nstop all sounds\n\nwhen I receive [empezar v]\nwait (1) seconds\nforever\n    if <<<[12] < (nivel)> and <(nivel) < [17]>> and <(juego terminado \(game over\)) = [0]>> then\n        play sound [Minecraft - Aria Math \(8 Bit FDS\)_128k3 v] until done\n    end\nend\n\nwhen I receive [empezar v]\nwait (1) seconds\nforever\n    if <<<[16] < (nivel)> and <(nivel) < [21]>> and <(juego terminado \(game over\)) = [0]>> then\n        play sound [Minecraft OST - Pigstep, 8-Bit NES Remix_160k2 v] until done\n    end\nend\n\nwhen I receive [empezar v]\nwait (1) seconds\nforever\n    if <<<<[22] < (nivel)> and <(nivel) < [24]>> and <(juego terminado \(game over\)) = [0]>> and <(end of the adventure) = [0]>> then\n        play sound [Calm4 v] until done\n    end\nend\n\nwhen I receive [empezar v]\nwait (1) seconds\nforever\n    if <<<<[20] < (nivel)> and <(nivel) < [23]>> and <not <(nivel) = [22]>>> and <(juego terminado \(game over\)) = [0]>> then\n        play sound [_2 v] until done\n    end\nend\n\nwhen flag clicked\nwait until <(end of the adventure) = [1]>\nclear sound effects\nstop all sounds\n\n@player \n\nwhen I receive [hurt v]\nchange [vidas v] by (-1)\nstart sound [Hurt v]\nwait (1) seconds\n\nwhen I receive [go! v]\nforever\n    if <<(vidas) = [0]> or <(vidas) = [-1]>> then\n        if <(THEME) = [0]> then\n            set [nivel v] to [-3]\n        else\n            if <(THEME) = [1]> then\n                set [nivel v] to [-2]\n            else\n                if <(THEME) = [2]> then\n                    set [nivel v] to [-1]\n                else\n                    if <(THEME) = [3]> then\n                        set [nivel v] to [0]\n                    end\n                end\n            end\n        end\n        broadcast (Delete clones v)\n        broadcast (Reset Tiles v)\n        broadcast (next level v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [go! v]\nhide\nforever\n    if <<<([costume # v] of [player  v]) = [1]> or <([costume # v] of [player  v]) = [3]>> or <<([costume # v] of [player  v]) = [8]> or <([costume # v] of [player  v]) = [10]>>> then\n        play sound [pasos v] until done\n    end\n    if <<<([costume # v] of [player  v]) = [5]> or <([costume # v] of [player  v]) = [12]>> or <not <(salto de la pared) = [0]>>> then\n        start sound [salto v]\n        wait until <not <<<([costume # v] of [player  v]) = [5]> or <([costume # v] of [player  v]) = [12]>> or <not <(salto de la pared) = [0]>>>>\n    end\nend\n\nwhen I receive [next level v]\nrepeat until <(nivel \(oculto\)) = [1]>\n    go to x: (spawnx) y: (spawny)\nend\n\nwhen I receive [empezar v]\nforever\n    if <<touching color (#504bff)?> and <(touchpad boton de salto) = [1]>> then\n        change [velocidad y v] by (1.5)\n    end\n    if <<touching color (#504bff)?> and <(touchpad boton de salto) = [0]>> then\n        change [velocidad y v] by (1)\n    end\n    if <<touching color (#504bff)?> and <[15] > (cayendo?)>> then\n        change [velocidad y v] by (-0.3)\n    end\nend\n\ndefine Cambiar Disfraz\nif <(cayendo?) < [6]> then\n    if <(fotogramas) = [0]> then\n        if <[1] = (apariencia del jugador)> then\n            if <<<not <(daño de enderman \(2\)) = [0]>> and <(nivel) = [19]>> and <mouse down?>> then\n                switch costume to (sword damage 1 v)\n            else\n                switch costume to (iddle stive v)\n            end\n        else\n            if <<<not <(daño de enderman \(2\)) = [0]>> and <(nivel) = [19]>> and <mouse down?>> then\n                switch costume to (sword damage 2 v)\n            else\n                switch costume to (iddle alex v)\n            end\n        end\n    else\n        if <[1] = (apariencia del jugador)> then\n            switch costume to ([floor v] of ((1) + ((fotogramas) mod (4))) )\n        else\n            switch costume to ([floor v] of ((8) + ((fotogramas) mod (4))) )\n        end\n    end\nelse\n    if <(velocidad y) > [0]> then\n        if <[1] = (apariencia del jugador)> then\n            switch costume to (jump stive v)\n        else\n            switch costume to (jump alex v)\n        end\n    else\n        if <[1] = (apariencia del jugador)> then\n            switch costume to (fall stive v)\n        else\n            switch costume to (fall alex v)\n        end\n    end\nend\n\ndefine Tocando suelo <arriba?>\nchange [cayendo? v] by (1)\nrepeat until <not <<<touching (bloques v)?> or <touching (enderman v)?>> or <touching (enderman v)?>>>\n    if <arriba?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [cayendo? v] to [0]\n    end\n    set [velocidad y v] to [0]\nend\n\ndefine Caminar (direccion) (velocidad)\npoint in direction (direccion)\nchange x by (velocidad)\nset [friccion v] to [0]\nrepeat until <<(friccion) = [8]> or <not <<<touching (bloques v)?> or <touching (enderman v)?>> or <touching (enderman v)?>>>>\n    change y by (1)\n    change [friccion v] by (1)\nend\nif <(friccion) = [8]> then\n    change x by ((0) - (velocidad))\n    change y by ((0) - (friccion))\n    if <<(touchpad boton de salto) = [1]> and <([abs v] of (velocidad) ) > [3]>> then\n        if <(salto de la pared) = [0]> then\n            set [velocidad x v] to ((-1) * (velocidad))\n            set [velocidad y v] to [11]\n            set [cayendo? v] to [6]\n            set [salto de la pared v] to [15]\n        end\n    else\n        set [velocidad x v] to [0]\n    end\nend\nif <(velocidad) < [0]> then\n    change [fotogramas v] by ((velocidad) / (-20))\nelse\n    change [fotogramas v] by ((velocidad) / (20))\nend\n\nwhen I receive [empezar v]\nshow\nset [juego terminado \(game over\) v] to [0]\nforever\n    set [pan left/right v] effect to (x position)\n    if <<(vidas) = [0]> or <(vidas) = [-1]>> then\n        wait (0.1) seconds\n        show\n        set [ghost v] effect to (50)\n        set [juego terminado \(game over\) v] to [1]\n        if <(apariencia del jugador) = [1]> then\n            switch costume to (dead stive v)\n        else\n            switch costume to (dead alex v)\n        end\n        stop [other scripts in sprite v]\n        go to x: (0) y: (0)\n        repeat (30)\n            change y by (0.5)\n        end\n        wait (0.1) seconds\n        repeat (30)\n            change y by (-0.5)\n        end\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [empezar v]\nset size to (400) %\nset rotation style [left-right v]\nshow\nset [velocidad y v] to [0]\nset [cayendo? v] to [10]\nforever\n    switch costume to (hitbox v)\n    if <<(velocidad y) < [4]> or <(touchpad boton de salto) = [1]>> then\n        change [velocidad y v] by (-1)\n    else\n        change [velocidad y v] by (-2)\n    end\n    change y by (velocidad y)\n    Tocando suelo <(velocidad y) > [0]>\n    if <(salto de la pared) > [0]> then\n        change [salto de la pared v] by (-1)\n    else\n        set [velocidad x v] to ((velocidad x) * (0.7))\n        if <not <(nivel) = (cantidad maxima de niveles)>> then\n            if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <(touchpad boton izquierdo) = [1]>> then\n                change [velocidad x v] by (-1.5)\n            end\n            if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <(touchpad boton derecho) = [1]>> then\n                change [velocidad x v] by (1.5)\n            end\n        end\n    end\n    if <(velocidad x) < [-0.5]> then\n        Caminar (-90) (velocidad x)\n    else\n        if <(velocidad x) > [0.5]> then\n            Caminar (90) (velocidad x)\n        else\n            set [fotogramas v] to [0]\n        end\n    end\n    if <(touchpad boton de salto) = [1]> then\n        if <<(tecla de salto) = [0]> and <(cayendo?) < [3]>> then\n            set [velocidad y v] to [10]\n            set [cayendo? v] to [6]\n            set [tecla de salto v] to [1]\n        end\n    else\n        set [tecla de salto v] to [0]\n    end\n    if <<(y position) < [-180]> and <not <<(nivel) = [12]> or <(nivel) = [13]>>>> then\n        broadcast (dead v)\n        set [velocidad y v] to [0]\n        change [vidas v] by (-2)\n        hide\n        start sound [Hurt v]\n        wait (0.4) seconds\n        go to x: (spawnx) y: (spawny)\n        show\n    end\n    Cambiar Disfraz\nend\n\nwhen flag clicked\nhide\nset [daño \(tiempo de tolerancia\) v] to [0]\nset [vidas v] to [6]\nset [juego terminado \(game over\) v] to [0]\nset [modo tactil v] to [0]\nset [apariencia del jugador v] to [1]\nswitch costume to (hitbox v)\n\nwhen I receive [hurt v]\nset [daño \(tiempo de tolerancia\) v] to [1]\nrepeat (4)\n    wait (0.1) seconds\n    set [ghost v] effect to (50)\n    wait (0.1) seconds\n    set [ghost v] effect to (0)\nend\nset [daño \(tiempo de tolerancia\) v] to [0]\n\nwhen I receive [next level v]\nrepeat until <(nivel \(oculto\)) = [1]>\n    set [velocidad x v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(punch) = [1]> then\n        go to x: (x position) y: (15)\n        repeat (5)\n            change [velocidad y v] by (5)\n        end\n        wait until <(punch) = [0]>\n    end\nend\n\nwhen flag clicked\nset [juego terminado \(game over\) v] to [0]\nforever\n    if <(punch) = [1]> then\n        repeat (10)\n            point in direction ([direction v] of [warden v])\n            if <<[0] < (direction)> and <(direction) < [180]>> then\n                change [velocidad x v] by (3)\n            else\n                change [velocidad x v] by (-3)\n            end\n        end\n        wait until <(punch) = [0]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(y position) < [-180]> and <(nivel) = [12]>> then\n        change [nivel v] by (1)\n        broadcast (next level v)\n        broadcast (Delete clones v)\n        broadcast (Reset Tiles v)\n    end\nend\n\nwhen I receive [empezar v]\nrepeat until <(nivel \(oculto\)) = [1]>\n    go to x: (spawnx) y: (spawny)\nend\n\ndefine lugar de aparicion\nforever\n    if <<<(nivel) = [1]> or <<(nivel) = [2]> or <(nivel) = [4]>>> or <<(nivel) = [10]> or <<<(nivel) = [16]> or <(nivel) = [18]>> or <(nivel) = [23]>>>> then\n        set [spawnx v] to [-220]\n        set [spawny v] to [-80]\n    end\n    if <<(nivel) = [3]> or <<(nivel) = [5]> or <<(nivel) = [7]> or <<(nivel) = [8]> or <<(nivel) = [9]> or <<(nivel) = [11]> or <<<(nivel) = [12]> or <(nivel) = [13]>> or <<(nivel) = [14]> or <<(nivel) = [15]> or <(nivel) = [16]>>>>>>>>>> then\n        set [spawnx v] to [-220]\n        set [spawny v] to [160]\n    end\n    if <(nivel) = [17]> then\n        set [spawnx v] to [-180]\n        set [spawny v] to [-80]\n    end\n    if <(nivel) = [19]> then\n        set [spawnx v] to [-220]\n        set [spawny v] to [-80]\n    end\n    if <(nivel) = [20]> then\n        set [spawnx v] to [-220]\n        set [spawny v] to [90]\n    end\n    if <(nivel) = [21]> then\n        set [spawnx v] to [-180]\n        set [spawny v] to [0]\n    end\n    if <(nivel) = [22]> then\n        set [spawnx v] to [-220]\n        set [spawny v] to [-40]\n    end\n    if <(nivel) = [24]> then\n        set [spawnx v] to [-180]\n        set [spawny v] to [-80]\n    end\nend\n\nwhen I receive [empezar v]\nlugar de aparicion\n\nwhen flag clicked\nforever\n    repeat until <(empezar) = [1]>\n        set [velocidad y v] to [0]\n        set [velocidad x v] to [0]\n    end\nend\n\nwhen I receive [next level v]\nrepeat until <(nivel \(oculto\)) = [1]>\n    set [velocidad y v] to [0]\n    set [velocidad x v] to [0]\nend\n\nwhen flag clicked\nwait until <[20] = (nivel)>\nrepeat (10)\n    set [daño \(tiempo de tolerancia\) v] to [1]\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [24]> then\n        set x to (-180)\n        set [touchpad boton de salto v] to [1]\n        wait (0.1) seconds\n        set [touchpad boton de salto v] to [0.1]\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [24]> then\n        set x to (-180)\n        point in direction (-90)\n        wait (1) seconds\n        point in direction (90)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [24]> then\n        set volume to (0) %\n    else\n        set volume to (volumen) %\n    end\nend\n\n@calabaza\n\nwhen flag clicked\nhide\n\nwhen I receive [inventory unlocked v]\nforever\n    if <<(nivel) < [0]> or <<(nivel \(oculto\)) = [0]> or <<([costume # v] of [player  v]) = [19]> or <([costume # v] of [player  v]) = [20]>>>> then\n        hide\n    else\n        show\n    end\n    point in direction ([direction v] of [player  v])\n    go to x: ([x position v] of [player  v]) y: ([y position v] of [player  v])\n    if <(apariencia del jugador) = [1]> then\n        switch costume to (([costume # v] of [player  v]) + (7))\n    else\n        switch costume to ([costume # v] of [player  v])\n    end\nend\n\nwhen I receive [inventory unlocked v]\nwait until <(daño de enderman \(2\)) = [0]>\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@logo\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen [timer v] > (Check Time)\nerase all\nshow\nset [ghost v] effect to (100)\nswitch costume to (disfraz3 v)\nrepeat (50)\n    change [ghost v] effect by (-2.5)\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nforever\n    set [check time v] to ((timer) + (0.1))\nend\n\n@barra de vida\n\nwhen flag clicked\nforever\n    if <(nivel \(oculto\)) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [empezar v]\nset size to (200) %\nshow\nwait (0.1) seconds\nset [vidas v] to [6]\nswitch costume to (3 v)\nforever\n    switch costume to ((0) - (vidas))\n    go to x: ([x position v] of [player  v]) y: (([y position v] of [player  v]) - (30))\n    if <<(cantidad maxima de niveles) = (nivel)> or <[1] = (juego terminado \(game over\))>> then\n        hide\n    end\nend\n\nwhen I receive [hurt v]\ngo to x: ((x position) + (5)) y: ((y position) + (5))\nhide\nwait (0.01) seconds\ngo to x: ((x position) - (5)) y: ((y position) - (5))\nshow\nwait (0.01) seconds\n\nwhen flag clicked\nhide\n\ngo to x: ([x position v] of [player  v]) y: ([y position v] of [player  v])\n\n@daño\n\nwhen flag clicked\nforever\n    if <(nivel \(oculto\)) = [0]> then\n        hide\n    end\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nhide\n\nwhen I receive [hurt v]\nshow\nwait (0.1) seconds\nhide\n\nwhen I receive [empezar v]\nforever\n    point in direction ([direction v] of [player  v])\n    set [ghost v] effect to (50)\n    go to [front v] layer\n    go to x: ([x position v] of [player  v]) y: ([y position v] of [player  v])\n    set volume to (volumen) %\nend\n\nwhen flag clicked\nforever\n    if <(apariencia del jugador) = [1]> then\n        switch costume to ([costume # v] of [player  v])\n    else\n        switch costume to (([costume # v] of [player  v]) + (7))\n    end\nend\n\n@configuracion\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I start as a clone\nhide\nswitch costume to (menú background v)\nset size to (1500) %\ngo to x: (0) y: (0)\nforever\n    set [ghost v] effect to (25)\n    set volume to (volumen) %\n    if <<(nivel) = (cantidad maxima de niveles)> or <[0] < (juego terminado \(game over\))>> then\n        set [menú v] to [0]\n        hide\n        delete this clone\n    end\n    if <(menú) = [1]> then\n        show\n        show variable [volumen v]\n    else\n        hide\n        hide variable [volumen v]\n    end\nend\n\nwhen this sprite clicked\nset [ghost v] effect to (0)\nif <(menú) = [0]> then\n    set [menú v] to [1]\n    play sound [click v] until done\nelse\n    set [menú v] to [0]\n    play sound [click v] until done\nend\n\nwhen I receive [go! v]\nset [menú v] to [0]\ncreate clone of (_myself_ v)\nwait (1) seconds\nshow\ngo to [front v] layer\nforever\n    if <(nivel \(oculto\)) = [0]> then\n        wait until <(empezar) = [1]>\n        hide\n    else\n        show\n    end\n    set volume to (volumen) %\n    switch costume to (menú logo v)\n    go to x: (0) y: (-140)\n    set [ghost v] effect to (50)\n    if <<(nivel) = [24]> or <[1] = (juego terminado \(game over\))>> then\n        set [menú v] to [0]\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\n@🢀\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nhide\nset [ghost v] effect to (25)\n\nwhen I receive [empezar v]\nhide\nforever\n    if <<(nivel \(oculto\)) = [1]> and <(modo tactil) = [1]>> then\n        show\n        go to x: (-130) y: (-140)\n    else\n        hide\n    end\n    if <<(nivel) = [24]> or <[1] = (juego terminado \(game over\))>> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen this sprite clicked\nset [ghost v] effect to (50)\nset [touchpad boton izquierdo v] to [1]\nwait until <not <<mouse down?> and <touching (mouse-pointer v)?>>>\nset [ghost v] effect to (25)\nset [touchpad boton izquierdo v] to [0]\n\n@🢂\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nset [ghost v] effect to (25)\nhide\n\nwhen I receive [empezar v]\nhide\nforever\n    if <<(nivel \(oculto\)) = [1]> and <(modo tactil) = [1]>> then\n        show\n        go to x: (-130) y: (-140)\n    else\n        hide\n    end\n    if <<(nivel) = [24]> or <[1] = (juego terminado \(game over\))>> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen this sprite clicked\nset [ghost v] effect to (50)\nset [touchpad boton derecho v] to [1]\nwait until <not <<mouse down?> and <touching (mouse-pointer v)?>>>\nset [ghost v] effect to (25)\nset [touchpad boton derecho v] to [0]\n\n@🢄\n\nwhen flag clicked\nforever\n    if <<mouse down?> and <<touching (mouse-pointer v)?> and <(modo tactil) = [1]>>> then\n        repeat until <<[0] = (cayendo?)> or <not <<mouse down?> and <touching (mouse-pointer v)?>>>>\n            set [touchpad boton de salto v] to [1]\n        end\n        set [touchpad boton de salto v] to [0]\n        wait (0) seconds\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            set [touchpad boton de salto v] to [1]\n        end\n    end\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [empezar v]\nset [touchpad boton de salto v] to [0]\nset [touchpad boton izquierdo v] to [0]\nset [touchpad boton derecho v] to [0]\nhide\nforever\n    if <<(nivel \(oculto\)) = [1]> and <(modo tactil) = [1]>> then\n        show\n        go to x: (100) y: (-120)\n    else\n        hide\n    end\n    if <<(nivel) = [24]> or <(juego terminado \(game over\)) = [1]>> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen this sprite clicked\nset [ghost v] effect to (50)\nset [touchpad boton izquierdo v] to [1]\nwait until <not <<mouse down?> and <touching (mouse-pointer v)?>>>\nset [ghost v] effect to (25)\nset [touchpad boton izquierdo v] to [0]\n\nwhen flag clicked\nset [ghost v] effect to (25)\nhide\n\n@🢁\n\nwhen flag clicked\nforever\n    if <<<<mouse down?> and <touching (mouse-pointer v)?>> and <(modo tactil) = [1]>> or <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <key (space v) pressed?>>>> then\n        repeat until <<[0] = (cayendo?)> or <not <<<mouse down?> and <touching (mouse-pointer v)?>> or <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <key (space v) pressed?>>>>>>\n            set [touchpad boton de salto v] to [1]\n        end\n        set [touchpad boton de salto v] to [0]\n        wait (0) seconds\n        if <<<mouse down?> and <touching (mouse-pointer v)?>> or <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <key (space v) pressed?>>>> then\n            set [touchpad boton de salto v] to [1]\n        end\n    end\nend\n\nwhen I receive [empezar v]\nset [touchpad boton de salto v] to [0]\nset [touchpad boton izquierdo v] to [0]\nset [touchpad boton derecho v] to [0]\nhide\nforever\n    if <<(nivel \(oculto\)) = [1]> and <(modo tactil) = [1]>> then\n        show\n        go to x: (125) y: (-140)\n    else\n        hide\n    end\n    if <<(nivel) = [24]> or <(juego terminado \(game over\)) = [1]>> then\n        hide\n    end\nend\n\nstop [this script v]\n\nwhen flag clicked\nset [ghost v] effect to (25)\nhide\n\nwhen this sprite clicked\nset [ghost v] effect to (50)\nwait until <not <<mouse down?> and <touching (mouse-pointer v)?>>>\nset [ghost v] effect to (25)\n\n@🢅\n\nwhen flag clicked\nforever\n    if <<<mouse down?> and <touching (mouse-pointer v)?>> and <(modo tactil) = [1]>> then\n        repeat until <<[0] = (cayendo?)> or <not <<mouse down?> and <touching (mouse-pointer v)?>>>>\n            set [touchpad boton de salto v] to [1]\n        end\n        set [touchpad boton de salto v] to [0]\n        wait (0) seconds\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            set [touchpad boton de salto v] to [1]\n        end\n    end\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nchange [color v] effect by (25)\nhide\n\nwhen I receive [empezar v]\nhide\nforever\n    if <<(nivel \(oculto\)) = [1]> and <(modo tactil) = [1]>> then\n        show\n        go to x: (150) y: (-120)\n    else\n        hide\n    end\n    if <<(nivel) = [24]> or <(juego terminado \(game over\)) = [1]>> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen this sprite clicked\nset [ghost v] effect to (50)\nset [touchpad boton derecho v] to [1]\nwait until <not <<mouse down?> and <touching (mouse-pointer v)?>>>\nset [ghost v] effect to (25)\nset [touchpad boton derecho v] to [0]\n\n@para celular\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nset size to (1500) %\nswitch costume to (tactil mode off v)\nhide\n\nwhen I receive [empezar v]\nswitch costume to (tactil mode off v)\nset [modo tactil v] to [0]\nwait (1) seconds\nforever\n    set volume to (volumen) %\n    go to [front v] layer\n    if <(menú) = [1]> then\n        show\n        if <(modo tactil) = [0]> then\n            switch costume to (tactil mode off v)\n        else\n            switch costume to (tactil mode on v)\n        end\n    end\n    if <<<(menú) = [0]> or <(juego terminado \(game over\)) = [1]>> or <(nivel) = (cantidad maxima de niveles)>> then\n        hide\n        switch costume to (xd v)\n    end\nend\n\nwhen this sprite clicked\nif <(modo tactil) = [0]> then\n    set [modo tactil v] to [1]\n    switch costume to (tactil mode on v)\n    play sound [click v] until done\nelse\n    set [modo tactil v] to [0]\n    switch costume to (tactil mode off v)\n    play sound [click v] until done\nend\n\n@botones\n\nwhen this sprite clicked\nhide\nset [empezar v] to [1]\nbroadcast (empezar v)\nplay sound [click v] until done\nstop all sounds\nstop [this script v]\n\nwhen I receive [go! v]\ngo to x: (0) y: (0)\nset size to (1000) %\nshow\nforever\n    set volume to (volumen) %\n    switch costume to (jugar v)\n    if <touching (mouse-pointer v)?> then\n        switch costume to (jugar2 v)\n    end\n    if <(menú) = [1]> then\n        go to [back v] layer\n    end\nend\n\nwhen I receive [go! v]\nrepeat until <(empezar) = [1]>\n    play sound [minecraft-sweden-16-bit2 v] until done\nend\n\nwhen flag clicked\nset [empezar v] to [0]\n\nwhen I receive [go! v]\nshow\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\n@apariencia\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nset [ghost v] effect to (0)\nhide\nset [menú v] to [0]\nforever\n    go to [front v] layer\n    set volume to (volumen) %\n    switch costume to (alex v)\n    go to x: (0) y: (30)\n    if <(apariencia del jugador) = [0]> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\n    if <(menú) = [0]> then\n        hide\n    else\n        show\n    end\n    if <<(cantidad maxima de niveles) = (nivel)> or <[1] = (juego terminado \(game over\))>> then\n        set [menú v] to [0]\n        hide\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nforever\n    go to [front v] layer\n    set volume to (volumen) %\n    if <(menú) = [1]> then\n        switch costume to (steve v)\n        hide\n    else\n        switch costume to (disfraz1 v)\n    end\n    go to x: (0) y: (30)\n    if <(apariencia del jugador) = [1]> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [ghost v] effect to (50)\n        set [apariencia del jugador v] to [1]\n        play sound [click v] until done\n        set [ghost v] effect to (0)\n    end\n    if <(menú) = [0]> then\n        switch costume to (disfraz1 v)\n        hide\n    else\n        show\n    end\n    if <<(cantidad maxima de niveles) = (nivel)> or <[0] < (juego terminado \(game over\))>> then\n        set [menú v] to [1]\n        hide\n    end\nend\n\nwhen this sprite clicked\nset [apariencia del jugador v] to [0]\nplay sound [click v] until done\n\n@pantalla principal\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [go! v]\nset [pixelate v] effect to (6)\nset [empezar v] to [0]\nshow\nforever\n    go to [back v] layer\n    go to x: (0) y: (0)\n    if <(apariencia del jugador) = [0]> then\n        switch costume to (steve tittle scree2 v)\n    else\n        switch costume to (steve tittle scree v)\n    end\n    if <(empezar) = [1]> then\n        hide\n    end\nend\n\nwhen flag clicked\nset [punch v] to [0]\n\n@texro de pantalla principal\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [empezar v]\nhide\ndelete this clone\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (2) to (7))\nset size to (1000) %\nforever\n    go to x: (140) y: (40)\n    repeat (20)\n        change size by (4)\n    end\n    repeat (20)\n        change size by (-4)\n    end\nend\n\nwhen I receive [go! v]\ngo to x: (0) y: (0)\ncreate clone of (_myself_ v)\nshow\nswitch costume to (letter logo v)\n\n@niveles\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [empezar v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nset [nivel v] to [1]\nforever\n    switch costume to ((nivel) + (4))\nend\n\nwhen I receive [next level v]\nset [nivel \(oculto\) v] to [0]\ngo to [front v] layer\nshow\nbroadcast (Reset Tiles v)\nbroadcast (Delete clones v)\n\nwhen I receive [hide v]\nset [nivel \(oculto\) v] to [1]\nhide\n\nwhen flag clicked\nforever\n    if <<<[0] < (nivel)> and <(nivel) < [13]>> or <(nivel) = [-3]>> then\n        set [theme v] to [0]\n    else\n        if <<<[12] < (nivel)> and <(nivel) < [17]>> or <(nivel) = [-2]>> then\n            set [theme v] to [1]\n        else\n            if <<<[16] < (nivel)> and <(nivel) < [21]>> or <(nivel) = [-1]>> then\n                set [theme v] to [2]\n            else\n                if <<<[20] < (nivel)> and <(nivel) < [24]>> or <(nivel) = [0]>> then\n                    set [theme v] to [3]\n                else\n                    if <(nivel) = [24]> then\n                        set [theme v] to [4]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [go! v]\nset [cantidad maxima de niveles v] to [25]\n\nswitch costume to (overworld-2 v)\n\n@bloques\n\nwhen I receive [empezar v]\nshow\nwait (0) seconds\nRender\nhide\n\nwhen I receive [next level v]\nbroadcast (Delete clones v)\nbroadcast (Reset Tiles v)\nbroadcast (Start Level v)\n\ndefine Render\ngo to x: (-220) y: (-160)\nshow\nrepeat (9)\n    repeat (12)\n        switch costume to (render v)\n        if <touching color (#af5900)?> then\n            switch costume to (dirt block v)\n            create clone of (_myself_ v)\n        else\n            if <touching color (#006622)?> then\n                switch costume to (grass block v)\n                create clone of (_myself_ v)\n            else\n                if <touching color (#001966)?> then\n                    switch costume to (pixel v)\n                    create clone of (_myself_ v)\n                    if <(nivel) = [21]> then\n                        switch costume to (cobble bricks2 v)\n                        stamp\n                        switch costume to (pixel v)\n                    end\n                    if <(THEME) = [1]> then\n                        switch costume to (disfraz9 v)\n                        stamp\n                        switch costume to (pixel v)\n                    end\n                else\n                    if <touching color (#660000)?> then\n                        switch costume to (bad block v)\n                        create clone of (_myself_ v)\n                    else\n                        if <touching color (#00ceff)?> then\n                            switch costume to (pixel2 v)\n                            create clone of (_myself_ v)\n                        else\n                            if <touching color (#1f5533)?> then\n                                switch costume to (netherrack green v)\n                                create clone of (_myself_ v)\n                            else\n                                if <touching color (#ff2e0a)?> then\n                                    switch costume to (netherrack red v)\n                                    create clone of (_myself_ v)\n                                else\n                                    if <touching color (#c70000)?> then\n                                        switch costume to (netherrack v)\n                                        create clone of (_myself_ v)\n                                    else\n                                        if <touching color (#9c9c9c)?> then\n                                            switch costume to (stone v)\n                                            create clone of (_myself_ v)\n                                        else\n                                            if <touching color (#14cc00)?> then\n                                                switch costume to (cesped v)\n                                                create clone of (_myself_ v)\n                                            else\n                                                if <touching color (#2f2f2f)?> then\n                                                    switch costume to (cobblestone v)\n                                                    create clone of (_myself_ v)\n                                                else\n                                                    if <touching color (#092200)?> then\n                                                        switch costume to (cobblestone moho v)\n                                                        create clone of (_myself_ v)\n                                                    else\n                                                        if <touching color (#000e32)?> then\n                                                            switch costume to (spawner v)\n                                                            create clone of (_myself_ v)\n                                                            if <(nivel) = [20]> then\n                                                                switch costume to (nether bricks2 v)\n                                                                stamp\n                                                            end\n                                                            switch costume to (spawner v)\n                                                        else\n                                                            if <touching color (#0f0f0f)?> then\n                                                                switch costume to (coal v)\n                                                                create clone of (_myself_ v)\n                                                            else\n                                                                if <touching color (#d8af93)?> then\n                                                                    switch costume to (iron v)\n                                                                    create clone of (_myself_ v)\n                                                                else\n                                                                    if <touching color (#fcee4b)?> then\n                                                                        switch costume to (oro v)\n                                                                        create clone of (_myself_ v)\n                                                                    else\n                                                                        if <touching color (#5decf5)?> then\n                                                                            switch costume to (diamond v)\n                                                                            create clone of (_myself_ v)\n                                                                        else\n                                                                            if <touching color (#504bff)?> then\n                                                                                switch costume to (water v)\n                                                                                stamp\n                                                                            else\n                                                                                if <touching color (#31254b)?> then\n                                                                                    switch costume to (obsidian v)\n                                                                                    stamp\n                                                                                else\n                                                                                    if <<touching color (#8527d9)?> and <<(nivel) = [16]> or <(nivel) = [20]>>> then\n                                                                                        switch costume to (portal v)\n                                                                                        create clone of (_myself_ v)\n                                                                                    else\n                                                                                        if <<touching color (#8527d9)?> and <not <<(nivel) = [16]> or <(nivel) = [20]>>>> then\n                                                                                            switch costume to (portal v)\n                                                                                            stamp\n                                                                                        else\n                                                                                            if <touching color (#ff8e0a)?> then\n                                                                                                switch costume to (nether cesped red v)\n                                                                                                stamp\n                                                                                            else\n                                                                                                if <touching color (#262126)?> then\n                                                                                                    switch costume to (blackstone bricks v)\n                                                                                                    create clone of (_myself_ v)\n                                                                                                else\n                                                                                                    if <touching color (#161316)?> then\n                                                                                                        switch costume to (blackstone bricks2 v)\n                                                                                                        stamp\n                                                                                                    else\n                                                                                                        if <touching color (#ff00ff)?> then\n                                                                                                            switch costume to (blacksotene stairs v)\n                                                                                                            create clone of (_myself_ v)\n                                                                                                            switch costume to (blackstone bricks2 v)\n                                                                                                            stamp\n                                                                                                            switch costume to (blacksotene stairs v)\n                                                                                                        else\n                                                                                                            if <touching color (#af00af)?> then\n                                                                                                                switch costume to (blacksotene stairs2 v)\n                                                                                                                create clone of (_myself_ v)\n                                                                                                                switch costume to (blackstone bricks2 v)\n                                                                                                                stamp\n                                                                                                                switch costume to (blacksotene stairs2 v)\n                                                                                                            else\n                                                                                                                if <touching color (#b98900)?> then\n                                                                                                                    switch costume to (blackstone bricks3 v)\n                                                                                                                    stamp\n                                                                                                                else\n                                                                                                                    if <touching color (#4a0515)?> then\n                                                                                                                        switch costume to (nether bricks v)\n                                                                                                                        create clone of (_myself_ v)\n                                                                                                                    else\n                                                                                                                        if <touching color (#1f0209)?> then\n                                                                                                                            switch costume to (nether bricks2 v)\n                                                                                                                            stamp\n                                                                                                                        else\n                                                                                                                            if <touching color (#545454)?> then\n                                                                                                                                switch costume to (cobble bricks  v)\n                                                                                                                                create clone of (_myself_ v)\n                                                                                                                            else\n                                                                                                                                if <touching color (#498945)?> then\n                                                                                                                                    switch costume to (disfraz2 v)\n                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                else\n                                                                                                                                    if <touching color (#6b7b83)?> then\n                                                                                                                                        switch costume to (cobble bricks2 v)\n                                                                                                                                        stamp\n                                                                                                                                    else\n                                                                                                                                        if <touching color (#39492e)?> then\n                                                                                                                                            switch costume to (moho coble bricks3 v)\n                                                                                                                                            stamp\n                                                                                                                                        else\n                                                                                                                                            if <touching color (#a47227)?> then\n                                                                                                                                                switch costume to (chest v)\n                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                            else\n                                                                                                                                                if <touching color (#003edb)?> then\n                                                                                                                                                    switch costume to (barrots v)\n                                                                                                                                                    stamp\n                                                                                                                                                else\n                                                                                                                                                    if <touching color (#5a7a7d)?> then\n                                                                                                                                                        switch costume to (cobble bricks2 v)\n                                                                                                                                                        stamp\n                                                                                                                                                        switch costume to (cobble stairs v)\n                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                    else\n                                                                                                                                                        if <touching color (#aeb26d)?> then\n                                                                                                                                                            switch costume to (cobble bricks2 v)\n                                                                                                                                                            stamp\n                                                                                                                                                            switch costume to (portal end v)\n                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                        else\n                                                                                                                                                            if <touching color (#cdd281)?> then\n                                                                                                                                                                switch costume to (end stone v)\n                                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                                            else\n                                                                                                                                                                if <touching color (#4b3856)?> then\n                                                                                                                                                                    switch costume to (bedrock v)\n                                                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                                                else\n                                                                                                                                                                    if <touching color (#da62ff)?> then\n                                                                                                                                                                        switch costume to (disfraz4 v)\n                                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                                    else\n                                                                                                                                                                        if <touching color (#ff7a00)?> then\n                                                                                                                                                                            switch costume to (oro2 v)\n                                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                                        else\n                                                                                                                                                                            if <touching color (#e4dcdb)?> then\n                                                                                                                                                                                switch costume to (cuarzo v)\n                                                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                                                            else\n                                                                                                                                                                                if <touching color (#346156)?> then\n                                                                                                                                                                                    switch costume to (final v)\n                                                                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                                                                else\n                                                                                                                                                                                    if <touching color (#b3008b)?> then\n                                                                                                                                                                                        switch costume to (dragon egg v)\n                                                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                                                    else\n                                                                                                                                                                                        if <touching color (#333333)?> then\n                                                                                                                                                                                            switch costume to (grimmstone v)\n                                                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                                                        else\n                                                                                                                                                                                            if <touching color (#ff0000)?> then\n                                                                                                                                                                                                switch costume to (redstone v)\n                                                                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                                                                            else\n                                                                                                                                                                                                if <touching color (#804849)?> then\n                                                                                                                                                                                                    switch costume to (dripstone v)\n                                                                                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                                                                                else\n                                                                                                                                                                                                    if <touching color (#b88764)?> then\n                                                                                                                                                                                                        switch costume to (disfraz9 v)\n                                                                                                                                                                                                        stamp\n                                                                                                                                                                                                        switch costume to (estalagmit v)\n                                                                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                                                                    else\n                                                                                                                                                                                                        if <touching color (#b86e63)?> then\n                                                                                                                                                                                                            switch costume to (disfraz9 v)\n                                                                                                                                                                                                            stamp\n                                                                                                                                                                                                            switch costume to (estalactict v)\n                                                                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                                                                        else\n                                                                                                                                                                                                            if <touching color (#505b29)?> then\n                                                                                                                                                                                                                switch costume to (musgo v)\n                                                                                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                                                                                            else\n                                                                                                                                                                                                                if <touching color (#5a7524)?> then\n                                                                                                                                                                                                                    switch costume to (musgo2 v)\n                                                                                                                                                                                                                    stamp\n                                                                                                                                                                                                                    switch costume to (nobaya v)\n                                                                                                                                                                                                                    stamp\n                                                                                                                                                                                                                else\n                                                                                                                                                                                                                    if <touching color (#ffd300)?> then\n                                                                                                                                                                                                                        switch costume to (musgo2 v)\n                                                                                                                                                                                                                        stamp\n                                                                                                                                                                                                                        switch costume to (sibaya v)\n                                                                                                                                                                                                                        stamp\n                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                        if <touching color (#afb8c8)?> then\n                                                                                                                                                                                                                            switch costume to (arcilla v)\n                                                                                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                            if <touching color (#96917e)?> then\n                                                                                                                                                                                                                                switch costume to (disfraz9 v)\n                                                                                                                                                                                                                                stamp\n                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                if <touching color (#5f8f00)?> then\n                                                                                                                                                                                                                                    switch costume to (musgo2 v)\n                                                                                                                                                                                                                                    stamp\n                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                    if <touching color (#b09786)?> then\n                                                                                                                                                                                                                                        switch costume to (estalactict2 v)\n                                                                                                                                                                                                                                        stamp\n                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                        if <touching color (#947878)?> then\n                                                                                                                                                                                                                                            switch costume to (estalagmit2 v)\n                                                                                                                                                                                                                                            stamp\n                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                            if <touching color (#664665)?> then\n                                                                                                                                                                                                                                                switch costume to (grimmstone2 v)\n                                                                                                                                                                                                                                                stamp\n                                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                                if <touching color (#4a6f6a)?> then\n                                                                                                                                                                                                                                                    switch costume to (disfraz10 v)\n                                                                                                                                                                                                                                                    stamp\n                                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                                    if <touching color (#64735c)?> then\n                                                                                                                                                                                                                                                        switch costume to (disfraz11 v)\n                                                                                                                                                                                                                                                        stamp\n                                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                                        if <touching color (#901414)?> then\n                                                                                                                                                                                                                                                            switch costume to (disfraz12 v)\n                                                                                                                                                                                                                                                            stamp\n                                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                                            if <touching color (#382100)?> then\n                                                                                                                                                                                                                                                                switch costume to (dirt block2 v)\n                                                                                                                                                                                                                                                                stamp\n                                                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                                                if <touching color (#174024)?> then\n                                                                                                                                                                                                                                                                    switch costume to (grass block2 v)\n                                                                                                                                                                                                                                                                    stamp\n                                                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                                                    if <touching color (#ff003e)?> then\n                                                                                                                                                                                                                                                                        switch costume to (flor v)\n                                                                                                                                                                                                                                                                        stamp\n                                                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                                                        if <touching color (#cc7d00)?> then\n                                                                                                                                                                                                                                                                            switch costume to (flor2 v)\n                                                                                                                                                                                                                                                                            stamp\n                                                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                                                            if <touching color (#1a2e30)?> then\n                                                                                                                                                                                                                                                                                switch costume to (sculk v)\n                                                                                                                                                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                                                                if <touching color (#0a2f38)?> then\n                                                                                                                                                                                                                                                                                    switch costume to (infected grimmstone v)\n                                                                                                                                                                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                                                                    if <touching color (#7cd3ff)?> then\n                                                                                                                                                                                                                                                                                        switch costume to (ice v)\n                                                                                                                                                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                                                                        if <touching color (#afafaf)?> then\n                                                                                                                                                                                                                                                                                            switch costume to (snowy grass v)\n                                                                                                                                                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                                                                            if <touching color (#cdcdcd)?> then\n                                                                                                                                                                                                                                                                                                switch costume to (snow v)\n                                                                                                                                                                                                                                                                                                stamp\n                                                                                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                                                                                if <touching color (#162416)?> then\n                                                                                                                                                                                                                                                                                                    switch costume to (disfraz13 v)\n                                                                                                                                                                                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                                                                                    if <touching color (#130803)?> then\n                                                                                                                                                                                                                                                                                                        switch costume to (disfraz14 v)\n                                                                                                                                                                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                                                                                        if <touching color (#634c00)?> then\n                                                                                                                                                                                                                                                                                                            switch costume to (podsol v)\n                                                                                                                                                                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                                                                                            if <touching color (#154b0f)?> then\n                                                                                                                                                                                                                                                                                                                switch costume to (taiga grass v)\n                                                                                                                                                                                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                                                                                                if <touching color (#596300)?> then\n                                                                                                                                                                                                                                                                                                                    switch costume to (savana grass v)\n                                                                                                                                                                                                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                                                                                                    if <touching color (#1d240a)?> then\n                                                                                                                                                                                                                                                                                                                        switch costume to (acacia leaves v)\n                                                                                                                                                                                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                                                                                                        if <touching color (#544e47)?> then\n                                                                                                                                                                                                                                                                                                                            switch costume to (acacia wood v)\n                                                                                                                                                                                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                                                                                                            if <touching color (#fff5a3)?> then\n                                                                                                                                                                                                                                                                                                                                switch costume to (sand v)\n                                                                                                                                                                                                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                                                                                                                if <touching color (#c6bd7f)?> then\n                                                                                                                                                                                                                                                                                                                                    switch costume to (sandstone v)\n                                                                                                                                                                                                                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                                                                                                                    if <touching color (#76926a)?> then\n                                                                                                                                                                                                                                                                                                                                        switch costume to (cactus v)\n                                                                                                                                                                                                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                                                                                                                        if <touching color (#7b4d2c)?> then\n                                                                                                                                                                                                                                                                                                                                            switch costume to (deadbush v)\n                                                                                                                                                                                                                                                                                                                                            stamp\n                                                                                                                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                                                                                                                            if <touching color (#635f40)?> then\n                                                                                                                                                                                                                                                                                                                                                switch costume to (sandstone2 v)\n                                                                                                                                                                                                                                                                                                                                                stamp\n                                                                                                                                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                                                                                                                                if <touching color (#7d8b00)?> then\n                                                                                                                                                                                                                                                                                                                                                    switch costume to (savana cesped v)\n                                                                                                                                                                                                                                                                                                                                                    stamp\n                                                                                                                                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                                                                                                                                    if <touching color (#203d1c)?> then\n                                                                                                                                                                                                                                                                                                                                                        switch costume to (taiga grass2 v)\n                                                                                                                                                                                                                                                                                                                                                        stamp\n                                                                                                                                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                                                                                                                                        if <touching color (#495100)?> then\n                                                                                                                                                                                                                                                                                                                                                            switch costume to (savana grass2 v)\n                                                                                                                                                                                                                                                                                                                                                            stamp\n                                                                                                                                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                                                                                                                                            if <touching color (#201325)?> then\n                                                                                                                                                                                                                                                                                                                                                                switch costume to (disfraz19 v)\n                                                                                                                                                                                                                                                                                                                                                                stamp\n                                                                                                                                                                                                                                                                                                                                                            else\n                                                                                                                                                                                                                                                                                                                                                                if <touching color (#1b5c56)?> then\n                                                                                                                                                                                                                                                                                                                                                                    switch costume to (disfraz18 v)\n                                                                                                                                                                                                                                                                                                                                                                    create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                                                                else\n                                                                                                                                                                                                                                                                                                                                                                    if <touching color (#254e48)?> then\n                                                                                                                                                                                                                                                                                                                                                                        switch costume to (invisible wall v)\n                                                                                                                                                                                                                                                                                                                                                                        create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                                                                    else\n                                                                                                                                                                                                                                                                                                                                                                        if <touching color (#006cc0)?> then\n                                                                                                                                                                                                                                                                                                                                                                            switch costume to (tutorial 1 v)\n                                                                                                                                                                                                                                                                                                                                                                            create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                                                                        else\n                                                                                                                                                                                                                                                                                                                                                                            if <touching color (#840906)?> then\n                                                                                                                                                                                                                                                                                                                                                                                switch costume to (casa v)\n                                                                                                                                                                                                                                                                                                                                                                                create clone of (_myself_ v)\n                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                end\n                                                                                                                                                                                                            end\n                                                                                                                                                                                                        end\n                                                                                                                                                                                                    end\n                                                                                                                                                                                                end\n                                                                                                                                                                                            end\n                                                                                                                                                                                        end\n                                                                                                                                                                                    end\n                                                                                                                                                                                end\n                                                                                                                                                                            end\n                                                                                                                                                                        end\n                                                                                                                                                                    end\n                                                                                                                                                                end\n                                                                                                                                                            end\n                                                                                                                                                        end\n                                                                                                                                                    end\n                                                                                                                                                end\n                                                                                                                                            end\n                                                                                                                                        end\n                                                                                                                                    end\n                                                                                                                                end\n                                                                                                                            end\n                                                                                                                        end\n                                                                                                                    end\n                                                                                                                end\n                                                                                                            end\n                                                                                                        end\n                                                                                                    end\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change x by (40)\n    end\n    set x to (-220)\n    change y by (40)\nend\nbroadcast (hide v)\nhide\n\nwhen I receive [delete clones v]\nerase all\ndelete this clone\n\nwhen I receive [reset tiles v]\nshow\nwait (0) seconds\nRender\nhide\n\nwhen I start as a clone\nif <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <<(costume [number v]) = [6]> or <<(costume [number v]) = [7]> or <<(costume [number v]) = [8]> or <<(costume [number v]) = [9]> or <<(costume [number v]) = [10]> or <<(costume [number v]) = [11]> or <<(costume [number v]) = [12]> or <(costume [number v]) = [13]>>>>>>>>>> then\n    forever\n        if <<(daño \(tiempo de tolerancia\)) = [0]> and <touching (lava hitbox v)?>> then\n            broadcast (hurt v) and wait\n        end\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) = [14]> or <(costume [number v]) = [42]>> then\n    wait until <touching (player  v)?>\n    broadcast (next level v)\n    change [nivel v] by (1)\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [4]> then\n    forever\n        switch costume to (bad block v)\n        repeat (9)\n            wait (0.1) seconds\n            next costume\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [24]> then\n    forever\n        set [spawn y v] to (y position)\n        set [spawn x v] to (x position)\n        switch costume to (spawner v)\n        wait (1) seconds\n        repeat (2)\n            next costume\n            wait (pick random (1) to (0.5)) seconds\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [14]> then\n    forever\n        switch costume to (pixel v)\n        repeat (3)\n            wait (0.2) seconds\n            next costume\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [27]> then\n    show\n    switch costume to (cesped v)\n    stamp\n    wait (0) seconds\n    hide\nend\n\nwhen flag clicked\nerase all\n\nwhen flag clicked\nset [nivel \(oculto\) v] to [0]\nforever\n    set volume to (volumen) %\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [55]> then\n    wait until <touching (lava hitbox v)?>\n    if <not <(ender eyes) = [0]>> then\n        change [ender eyes v] by (-1)\n        switch costume to (portal end 1 v)\n        start sound (pick random (1) to (2))\n    end\nend\nstop [this script v]\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [56]> then\n        wait until <(ender eyes) = [0]>\n        forever\n            switch costume to (portal2 v)\n            wait (0.2) seconds\n            switch costume to (portal3 v)\n            wait (0.2) seconds\n        end\n    end\nend\n\nwhen flag clicked\nset [ender eyes v] to [3]\n\nwhen I start as a clone\nif <<(costume [number v]) = [64]> and <(dragon \(curacion\)) = [0]>> then\n    wait until <<touching (flecha v)?> and <<(costume [number v]) = [64]> and <(dragon \(curacion\)) = [0]>>>\n    start sound [Explosion 8 Bit Sound Effect_128k v]\n    delete this clone\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [54]> then\n    forever\n        if <touching (player  v)?> then\n            set [cofre v] to [1]\n            switch costume to (disfraz6 v)\n            wait (0.1) seconds\n            switch costume to (disfraz7 v)\n            wait (0.1) seconds\n            switch costume to (disfraz8 v)\n            wait (0.1) seconds\n            wait until <not <touching (player  v)?>>\n            set [cofre v] to [0]\n            switch costume to (disfraz8 v)\n            wait (0.1) seconds\n            switch costume to (disfraz7 v)\n            wait (0.1) seconds\n            switch costume to (disfraz6 v)\n            wait (0.1) seconds\n            switch costume to (chest v)\n        end\n    end\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I start as a clone\nif <(costume [number v]) = [72]> then\n    forever\n        hide\n        go to x: (20) y: (0)\n        if <(end of the adventure) = [1]> then\n            show\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [70]> then\n    hide\n    go to x: (20) y: (-80)\n    wait until <(end of the adventure) = [1]>\n    show\n    repeat until <touching (player  v)?>\n        wait (0.3) seconds\n        switch costume to (final2 v)\n        wait (0.3) seconds\n        switch costume to (final v)\n    end\n    change [nivel v] by (1)\n    broadcast (next level v)\nend\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [63]> then\n        stamp\n        switch costume to (barrots3 v)\n        stamp\n        switch costume to (barrots4 v)\n        create clone of (_myself_ v)\n        change y by (20)\n        switch costume to (disfraz5 v)\n        create clone of (_myself_ v)\n        switch costume to (disfraz4 v)\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [64]> then\n    set rotation style [all around v]\n    forever\n        if <(dragon \(curacion\)) = [1]> then\n            switch costume to (cristal curation1 v)\n            point towards (jefe final v)\n        else\n            switch costume to (disfraz5 v)\n            point in direction (90)\n            repeat until <(dragon \(curacion\)) = [1]>\n                turn left (2) degrees\n            end\n        end\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\n\nwhen I start as a clone\nif <(costume [number v]) = [64]> then\n    forever\n        if <(dragon \(curacion\)) = [1]> then\n            change [dragon \(vida\) v] by (1)\n            wait until <(dragon \(curacion\)) = [0]>\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [64]> then\n    forever\n        if <(dragon \(curacion\)) = [0]> then\n            repeat (20)\n                change y by (1)\n            end\n            repeat (20)\n                change y by (-1)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) = [79]> or <(costume [number v]) = [80]>> then\n    forever\n        if <<(daño \(tiempo de tolerancia\)) = [0]> and <touching (player  v)?>> then\n            broadcast (hurt v) and wait\n        end\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) = [24]> and <(nivel) = [16]>> then\n    switch costume to (disfraz10 v)\n    stamp\n    switch costume to (spawner v)\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [115]> then\n    forever\n        if <<(daño \(tiempo de tolerancia\)) = [0]> and <touching (player  v)?>> then\n            broadcast (hurt v) and wait\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<(costume [number v]) = [109]> or <(costume [number v]) = [110]>> then\n        set rotation style [left-right v]\n        wait (0.1) seconds\n        point in direction (90)\n        wait (0.1) seconds\n        point in direction (-90)\n    end\nend\n\nwhen I start as a clone\nif <<(costume [number v]) = [109]> or <(costume [number v]) = [110]>> then\n    forever\n        wait until <touching (lava hitbox v)?>\n        wait (2) seconds\n        hide\n        wait (2) seconds\n        show\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [124]> then\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nwait until <(ender eyes) = [0]>\nwait (0.5) seconds\nplay sound [3 v] until done\nbroadcast (next level v)\nrepeat until <(nivel) = [23]>\n    change [nivel v] by (1)\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [125]> then\n    wait until <(nivel \(oculto\)) = [1]>\n    stamp\n    delete this clone\nend\n\n@animacion principal\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\ngo to x: (0) y: (0)\nstart sound [Jump v]\nshow\nswitch costume to (disfraz1 v)\nrepeat (9)\n    next costume\nend\nrepeat (2)\n    next costume\n    wait (0.2) seconds\nend\nrepeat (2)\n    next costume\n    wait (0.1) seconds\n    start sound [pasos v]\n    next costume\n    wait (0.1) seconds\nend\nbroadcast (GO! v)\nrepeat (10)\n    change [ghost v] effect by (1)\n    wait (0.01) seconds\nend\nhide\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\n    go to [front v] layer\nend\n\n@enemigos\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <touching (flecha v)?> then\n        repeat until <not <(nivel) = [16]>>\n            start sound [zombiedeath v]\n            repeat until <not <(nivel) = [16]>>\n                hide\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [_vida v] to [3]\nforever\n    if <(_vida) = [0]> then\n        play sound [zombiedeath v] until done\n        stop [this script v]\n    end\nend\n\ndefine _TOCANDO EL SUELO <_arriba?>\nchange [_cayendo? v] by (1)\nrepeat until <not <touching (bloques v)?>>\n    if <_arriba?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [_cayendo? v] to [1]\n    end\n    set [_velocidad y v] to [0]\nend\n\ndefine _caminar (direccion) (velocidad)\npoint in direction (direccion)\nchange x by (velocidad)\nset [_friccion v] to [0]\nrepeat until <<(_friccion) = [8]> or <not <touching (bloques v)?>>>\n    change y by (1)\n    change [_friccion v] by (1)\nend\nif <(_friccion) = [8]> then\n    change x by ((0) - (velocidad))\n    change y by ((0) - (_friccion))\n    if <not <<(_salto) = [1]> or <([abs v] of (velocidad) ) > [3]>>> then\n        set [_velocidad x v] to [0]\n    end\nend\nif <(velocidad) < [0]> then\n    change [_fotogramas v] by ((velocidad) / (-10))\nelse\n    change [_fotogramas v] by ((velocidad) / (10))\nend\n\ndefine DISFRAZ\nif <(_cayendo?) < [6]> then\n    if <(_fotogramas) = [0]> then\n        if <[16] = (nivel)> then\n            switch costume to (iddle zombie v)\n        else\n            switch costume to (piglin iddle v)\n        end\n    else\n        if <[16] = (nivel)> then\n            switch costume to ([floor v] of ((1) + ((_fotogramas) mod (4))) )\n        else\n            switch costume to ([floor v] of ((10) + ((_fotogramas) mod (4))) )\n        end\n    end\nelse\n    if <(_velocidad y) > [0]> then\n        if <[16] = (nivel)> then\n            switch costume to (jump zombie v)\n        else\n            switch costume to (piglin jump v)\n        end\n    else\n        if <[16] = (nivel)> then\n            switch costume to (fall zombie v)\n        else\n            switch costume to (piglin fall v)\n        end\n    end\nend\n\nwhen flag clicked\nset [_izquierda v] to [0]\nset [_derecha v] to [0]\nset [_salto v] to [0]\nset [_friccion v] to [0]\nforever\n    if <[19] > (nivel)> then\n        wait until <touching (player  v)?>\n        broadcast (hurt v) and wait\n        wait (1) seconds\n    end\nend\n\nwhen I receive [go! v]\nset [_vida v] to [3]\n\nwhen I receive [spawn v]\nset [esquivar v] to [0]\nforever\n    repeat until <<(distance to [player  v]) < [130]> or <(ESQUIVAR) = [1]>>\n        set [_derecha v] to (pick random (1) to (0))\n        wait (pick random (1) to (0.5)) seconds\n        set [_izquierda v] to (pick random (1) to (0))\n        wait (pick random (1) to (0.5)) seconds\n    end\nend\n\nwhen I receive [spawn v]\nforever\n    if <(distance to [player  v]) < [130]> then\n        point towards (player  v)\n        if <<[0] < (direction)> and <(direction) < [180]>> then\n            wait (0.2) seconds\n            set [_derecha v] to [1]\n            set [_izquierda v] to [0]\n        else\n            wait (0.2) seconds\n            set [_izquierda v] to [1]\n            set [_derecha v] to [0]\n        end\n        if <(y position) < ([y position v] of [player  v])> then\n            wait (0.1) seconds\n            set [_salto v] to [1]\n        end\n    end\nend\n\nwhen I receive [spawn v]\nforever\n    if <(distance to [player  v]) < [130]> then\n        repeat until <<not <(cayendo?) = [0]>> or <(distance to [player  v]) < [30]>>\n            if <(_friccion) = [8]> then\n                set [_salto v] to [1]\n            else\n                set [_salto v] to [0]\n            end\n        end\n    end\nend\n\nwhen I receive [spawn v]\nforever\n    if <(nivel) = [16]> then\n        wait (pick random (2) to (4)) seconds\n        play sound (pick random (3) to (4)) until done\n    else\n        if <(nivel) = [18]> then\n            wait (pick random (2) to (4)) seconds\n            play sound (pick random (7) to (8)) until done\n        end\n    end\nend\n\nwhen I receive [spawn v]\nforever\n    if <not <<([costume # v] of [niveles v]) = [1]> or <([costume # v] of [niveles v]) = [9]>>> then\n        set volume to (volumen) %\n        set [pan left/right v] effect to (x position)\n    else\n        set volume to (0) %\n    end\nend\n\nwhen I receive [spawn v]\nset size to (400) %\nset rotation style [left-right v]\nset [_velocidad y v] to [0]\nset [_cayendo? v] to [10]\nforever\n    switch costume to (mob hitbox v)\n    if <<(_velocidad y) < [4]> or <(_salto) = [1]>> then\n        change [_velocidad y v] by (-1)\n    else\n        change [_velocidad y v] by (-2)\n    end\n    change y by (_velocidad y)\n    _TOCANDO EL SUELO <(_velocidad y) > [0]>\n    set [_velocidad x v] to ((_velocidad x) * (0.7))\n    if <(_izquierda) = [1]> then\n        if <(distance to [player  v]) < [130]> then\n            change [_velocidad x v] by (-1)\n        else\n            change [_velocidad x v] by (-0.5)\n        end\n    end\n    if <(_derecha) = [1]> then\n        if <(distance to [player  v]) < [130]> then\n            change [_velocidad x v] by (1)\n        else\n            change [_velocidad x v] by (0.5)\n        end\n    end\n    if <(_velocidad x) < [-0.5]> then\n        _caminar [-90] (_velocidad x)\n    else\n        if <(_velocidad x) > [0.5]> then\n            _caminar [90] (_velocidad x)\n        else\n            set [_fotogramas v] to [0]\n        end\n    end\n    if <(_salto) = [1]> then\n        if <<(_saltando?) = [0]> and <(_cayendo?) < [3]>> then\n            set [_velocidad y v] to [15]\n            set [_cayendo? v] to [6]\n            set [_saltando? v] to [1]\n        end\n    else\n        set [_saltando? v] to [0]\n    end\n    if <(y position) < [-180]> then\n        hide\n        set [_vida v] to [3]\n    end\n    DISFRAZ\nend\n\nwhen I receive [spawn v]\nforever\n    if <touching (_edge_ v)?> then\n        set [esquivar v] to [0]\n    else\n        set [esquivar v] to [0]\n    end\nend\n\nwhen I receive [spawn v]\nforever\n    if <<<(costume [number v]) = [1]> or <(costume [number v]) = [3]>> or <<(costume [number v]) = [8]> or <(costume [number v]) = [10]>>> then\n        play sound [pasos v] until done\n    end\n    if <<(costume [number v]) = [14]> or <(costume [number v]) = [5]>> then\n        play sound [Jump v] until done\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [16]> then\n        go to x: (-100) y: (80)\n        set [_vida v] to [3]\n        broadcast (spawn v)\n        wait until <not <(nivel) = [16]>>\n        repeat until <(nivel) = [18]>\n            go to x: (20) y: (120)\n            set [_vida v] to [3]\n        end\n        wait until <not <(nivel) = [18]>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<(nivel) = [16]> or <(nivel) = [18]>>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [spawn v]\nforever\n    if <<(nivel) = [16]> and <<<[0] < (cayendo?)> and <<[0] = (tecla de salto)> and <(y position) < (([y position v] of [player  v]) + (20))>>> and <touching (player  v)?>>> then\n        start sound [zombiedeath v]\n        repeat (10)\n            switch costume to (disfraz2 v)\n        end\n        repeat until <not <(nivel) = [16]>>\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(nivel) > [18]> then\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [19]> then\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\n@enemigos2\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\nend\n\nwhen I receive [blaze v]\nforever\n    repeat (5)\n        change y by (2)\n        wait (0.1) seconds\n    end\n    repeat (5)\n        change y by (-2)\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [blaze v]\nforever\n    switch costume to (disfraz1 v)\n    wait (0.3) seconds\n    next costume\n    wait (0.3) seconds\nend\n\nwhen I receive [blaze v]\ngo to x: (20) y: (120)\n\nwhen flag clicked\nhide\nwait until <(nivel) = [20]>\nshow\nbroadcast (blaze v)\nwait until <(nivel) = [21]>\nhide\n\nwhen I receive [blaze v]\nforever\n    point towards (player  v)\nend\n\nwhen I receive [blaze v]\nforever\n    if <[130] > (distance to [player  v])> then\n        create clone of (_myself_ v)\n        wait (2) seconds\n    end\nend\n\nwhen I start as a clone\npoint towards (player  v)\nswitch costume to (disfraz4 v)\nrepeat until <<<touching (bloques v)?> or <touching (player  v)?>> or <touching (_edge_ v)?>>\n    move (10) steps\nend\ndelete this clone\n\nwhen I start as a clone\nwait until <touching (player  v)?>\nbroadcast (hurt v)\ndelete this clone\n\nwhen flag clicked\nforever\n    if <touching (flecha v)?> then\n        stop [other scripts in sprite v]\n        start sound [blaze hurt v]\n        switch costume to (disfraz5 v)\n        go to x: (20) y: (120)\n        broadcast (pick up blaze loot v)\n        repeat until <touching (player  v)?>\n            repeat (5)\n                change y by (1)\n                wait (0.1) seconds\n            end\n            repeat (5)\n                change y by (-1)\n                wait (0.1) seconds\n            end\n        end\n    end\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [blaze v]\nforever\n    wait (pick random (2) to (4)) seconds\n    start sound [blaze respiration v]\nend\n\nwhen flag clicked\nforever\n    if <(juego terminado \(game over\)) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [pick up blaze loot v]\nwait until <touching (player  v)?>\nbroadcast (blaze ded v)\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    if <(juego terminado \(game over\)) = [1]> then\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\n@jefe final\n\nwhen flag clicked\nforever\n    if <<(vidas) < [1]> or <(end of the adventure) = [1]>> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [final boss v]\nshow\nforever\n    wait (0.2) seconds\n    switch costume to (disfraz9 v)\n    wait (0.2) seconds\n    switch costume to (disfraz4 v)\n    wait (0.2) seconds\n    switch costume to (disfraz10 v)\n    wait (0.2) seconds\n    switch costume to (disfraz7 v)\nend\n\nwhen I receive [final boss v]\ngo to x: (0) y: (100)\nforever\n    repeat (5)\n        change y by (1)\n        wait (0.2) seconds\n    end\n    repeat (5)\n        change y by (-1)\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [final boss v]\nforever\n    if <(dragon \(ataque\)) = [0]> then\n        point in direction (-90)\n        glide (3) secs to x: (-180) y: (pick random (140) to (80))\n        point in direction (90)\n        glide (3) secs to x: (180) y: (pick random (140) to (80))\n    else\n        glide (3) secs to x: (20) y: (0)\n        create clone of (_myself_ v)\n        set [dragon \(curacion\) v] to [1]\n        start sound [roar v]\n        repeat (10)\n            switch costume to (roar v)\n            go to x: (20) y: (0)\n        end\n        wait (2) seconds\n        set [dragon \(ataque\) v] to [0]\n        set [dragon \(curacion\) v] to [0]\n    end\nend\n\nwhen I receive [final boss v]\nforever\n    wait (pick random (6) to (10)) seconds\n    set [dragon \(ataque\) v] to [1]\nend\n\nwhen flag clicked\nset [end of the adventure v] to [0]\nset [dragon \(ataque\) v] to [0]\nhide\nforever\n    if <<(nivel) = [24]> or <(nivel) < [0]>> then\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [final boss v]\nforever\n    if <(dragon \(ataque\)) = [1]> then\n        point towards (player  v)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (disfraz12 v)\nif <(costume [number v]) = [12]> then\n    set size to (800) %\n    set rotation style [all around v]\n    set [pixelate v] effect to (0)\n    set [ghost v] effect to (0)\n    if <<(direction) > [0]> and <[180] > (direction)>> then\n        go to x: (([x position v] of [jefe final v]) + (80)) y: (([y position v] of [jefe final v]) + (10))\n    else\n        go to x: (([x position v] of [jefe final v]) + (-80)) y: (([y position v] of [jefe final v]) + (10))\n    end\n    point towards (player  v)\n    repeat until <<touching (player  v)?> or <touching (bloques v)?>>\n        move (2) steps\n    end\n    point in direction (90)\n    repeat (10)\n        switch costume to (disfraz13 v)\n        wait (0.1) seconds\n        change [ghost v] effect by (5)\n        switch costume to (disfraz14 v)\n        wait (0.1) seconds\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nset [pixelate v] effect to (0)\nswitch costume to (disfraz9 v)\nforever\n    if <(costume [number v]) = [4]> then\n        play sound [fly v] until done\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (player  v)?> then\n        broadcast (hurt v)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nhide\n\nwhen I receive [final boss v]\nshow\n\nwhen flag clicked\nset [dragon \(curacion\) v] to [0]\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\nend\n\nwhen I receive [empezar v]\nswitch costume to (blank v)\nwait until <<(nivel) = [23]> and <(nivel \(oculto\)) = [1]>>\nshow\nbroadcast (final boss v)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <<(vidas) < [1]> or <(end of the adventure) = [1]>> then\n        delete this clone\n    end\nend\n\nwhen I receive [final boss v]\nwait (1) seconds\nwait until <(dragon \(vida\)) = [0]>\nstop [other scripts in sprite v]\nstart sound [ded v]\nswitch costume to (dead v)\nwait (1) seconds\nrepeat (7)\n    next costume\n    wait (1) seconds\nend\nhide\nset [end of the adventure v] to [1]\n\n@fisicas de la flecha\n\nwhen flag clicked\nforever\n    if <<<(dragon \(vida\)) = [0]> or <(juego terminado \(game over\)) = [1]>> or <(end of the adventure) = [1]>> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\nset [indicador de poder flecha v] to [1]\n\nwhen flag clicked\nforever\n    if <(indicador de poder flecha) = [12]> then\n        set [direccion de poder v] to [0]\n    end\n    if <(indicador de poder flecha) = [1]> then\n        set [direccion de poder v] to [1]\n    end\nend\n\nwhen I receive [bow and arrow v]\nset [direccion de poder v] to [1]\nforever\n    wait until <(disparo) = [1]>\n    if <<mouse down?> and <(disparo) = [1]>> then\n        set [indicador de poder flecha v] to [1]\n        set [direccion de poder v] to [1]\n        repeat until <not <mouse down?>>\n            if <(direccion de poder) = [1]> then\n                change [indicador de poder flecha v] by (1)\n                wait (0.05) seconds\n            end\n            if <(direccion de poder) = [0]> then\n                change [indicador de poder flecha v] by (-1)\n                wait (0.05) seconds\n            end\n        end\n        set [arco \(poder\) v] to (indicador de poder flecha)\n        set [indicador de poder flecha v] to [1]\n        set [direccion de poder v] to [1]\n        if <(disparo) = [1]> then\n            broadcast (shoot v)\n        end\n        wait until <(Fired?) = [0]>\n        set [flecha \(rotacion\) v] to (indicador de poder flecha)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(touchpad boton de salto) = [1]> and <(modo tactil) = [1]>> or <<(touchpad boton derecho) = [1]> or <(touchpad boton izquierdo) = [1]>>> then\n        set [disparo v] to [0]\n    else\n        set [disparo v] to [1]\n    end\nend\n\n@arco\n\nwhen flag clicked\nforever\n    if <<<(dragon \(vida\)) = [0]> or <(juego terminado \(game over\)) = [1]>> or <(end of the adventure) = [1]>> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [bow and arrow v]\nshow\nstop [this script v]\n\nwhen I receive [empezar v]\nforever\n    set [bow dir v] to []\n    go to x: ([x position v] of [player  v]) y: ([y position v] of [player  v])\n    point towards (mouse-pointer v)\n    switch costume to ((indicador de poder flecha) / (2))\n    go to [front v] layer\nend\n\n@flecha\n\nwhen flag clicked\nforever\n    if <<<(juego terminado \(game over\)) = [1]> or <(nivel) < [0]>> or <(end of the adventure) = [1]>> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(nivel) = [23]> and <(juego terminado \(game over\)) = [1]>> then\n        erase all\n    end\nend\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\nend\n\nwhen I receive [shoot v]\nif <<(juego terminado \(game over\)) = [0]> and <(disparo) = [1]>> then\n    start sound [1 v]\n    show\n    set [fired? v] to [1]\n    go to (player  v)\n    point towards (mouse-pointer v)\n    set [posicion x del mouse con respecto al arco y flecha v] to (mouse x)\n    repeat until <<touching (_edge_ v)?> or <touching (bloques v)?>>\n        if <(posicion x del mouse con respecto al arco y flecha) > (arquero X)> then\n            move (arco \(poder\)) steps\n            turn right (flecha \(rotacion\)) degrees\n            set [_direccion v] to [1]\n            if <(direction) < [90]> then\n                change [arco \(poder\) v] by (-0.05)\n            end\n            if <(direction) > [90]> then\n                change [arco \(poder\) v] by (0.05)\n            end\n        end\n        if <(posicion x del mouse con respecto al arco y flecha) < (arquero X)> then\n            move (arco \(poder\)) steps\n            turn left (flecha \(rotacion\)) degrees\n            set [_direccion v] to [0]\n            if <(direction) < [-90]> then\n                change [arco \(poder\) v] by (0.05)\n            end\n            if <(direction) > [-90]> then\n                change [arco \(poder\) v] by (-0.05)\n            end\n        end\n    end\n    if <<<touching color (#b3b3b3)?> or <touching color (#ffff00)?>> or <touching color (#995900)?>> then\n        repeat (10)\n            turn left (18) degrees\n        end\n        repeat until <touching color (#00cc44)?>\n            if <(_direccion) = [1]> then\n                turn left (5) degrees\n                move (arco \(poder\)) steps\n            end\n            if <(_direccion) = [0]> then\n                turn left (-5) degrees\n                move (arco \(poder\)) steps\n            end\n        end\n        stamp\n    else\n        if <touching (_edge_ v)?> then\n            if <(_direccion) = [1]> then\n                turn left (1) degrees\n                move (6) steps\n            end\n            if <(_direccion) = [0]> then\n                turn left (-1) degrees\n                move (6) steps\n            end\n            stamp\n        end\n        if <touching (bloques v)?> then\n            stamp\n        end\n    end\n    start sound [2 v]\n    set [fired? v] to [0]\nend\n\nwhen flag clicked\nset [fired? v] to [0]\nforever\n    if <(Fired?) = [0]> then\n        go to x: ([x position v] of [player  v]) y: ([y position v] of [player  v])\n        point in direction (Bow DIR)\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@dragon hitbox\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\nforever\n    if <<(dragon \(vida\)) = [0]> or <(juego terminado \(game over\)) = [1]>> then\n        switch costume to (disfraz2 v)\n        hide\n    end\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nforever\n    point in direction ([direction v] of [jefe final v])\n    go to x: ([x position v] of [jefe final v]) y: ([y position v] of [jefe final v])\n    set size to (400) %\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nforever\n    if <touching (flecha v)?> then\n        change [dragon \(vida\) v] by (-1)\n        play sound (pick random (1) to (3)) until done\n    end\n    if <(dragon \(vida\)) = [0]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nwait until <<(nivel) = [23]> and <(nivel \(oculto\)) = [1]>>\nshow\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\nend\n\n@inventario\n\nwhen I receive [inventory unlocked v]\nforever\n    show\n    repeat until <(nivel \(oculto\)) = [1]>\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (disfraz32 v)\n\nwhen I receive [blaze ded v]\nwait (0.3) seconds\nforever\n    if <(ender eyes) > [0]> then\n        switch costume to ((ender eyes) + (3))\n    else\n        switch costume to (disfraz32 v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (-140)\nend\n\nwhen I receive [empezar v]\nwait until <<(cofre) = [1]> and <(nivel) = [18]>>\nbroadcast (inventory unlocked v)\nwait until <<(cofre) = [1]> and <(nivel) = [20]>>\nbroadcast (bow and arrow v)\n\nwhen I receive [inventory unlocked v]\nswitch costume to (disfraz32 v)\nwait until <(daño de enderman \(1\)) = [0]>\nswitch costume to (disfraz13 v)\nwait until <(daño de enderman \(2\)) = [0]>\nswitch costume to (disfraz6 v)\n\nwhen I receive [inventory unlocked v]\nforever\n    if <<(nivel \(oculto\)) = [0]> or <<(end of the adventure) = [1]> or <<(dragon \(vida\)) = [0]> or <(nivel) < [0]>>>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nset [cofre v] to [0]\n\nwhen flag clicked\nset [end of the adventure v] to [0]\n\n@inventario2\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [inventory unlocked v]\nforever\n    if <<(nivel \(oculto\)) = [0]> or <<(end of the adventure) = [1]> or <<(dragon \(vida\)) = [0]> or <(nivel) < [0]>>>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\nhide\nforever\n    go to x: (0) y: (-140)\nend\n\nwhen I receive [bow and arrow v]\nforever\n    switch costume to (magic bow v)\n    wait (0.2) seconds\n    switch costume to (magic bow2 v)\n    wait (0.1) seconds\n    switch costume to (magic bow3 v)\n    wait (0.1) seconds\n    switch costume to (magic bow4 v)\n    wait (0.1) seconds\nend\n\nwhen I receive [inventory unlocked v]\nrepeat until <(daño de enderman \(2\)) = [0]>\n    switch costume to (sword1 v)\n    wait (0.2) seconds\n    switch costume to (sword2 v)\n    wait (0.1) seconds\n    switch costume to (sword3 v)\n    wait (0.1) seconds\n    switch costume to (sword4 v)\n    wait (0.1) seconds\nend\nswitch costume to (disfraz1 v)\nplay sound [break v] until done\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\nend\n\n@vida del dragon\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nhide\nset [dragon \(vida\) v] to [20]\nforever\n    switch costume to ((0) - (dragon \(vida\)))\n    go to x: (0) y: (140)\nend\n\nwhen I receive [final boss v]\nshow\n\nwhen flag clicked\nforever\n    if <<(dragon \(vida\)) = [0]> or <(juego terminado \(game over\)) = [1]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\nset [dragon \(vida\) v] to [20]\nforever\n    if <(dragon \(vida\)) > [20]> then\n        set [dragon \(vida\) v] to [20]\n    end\nend\n\n@creditos\n\nwhen I receive [credits v]\nerase all\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (disfraz1 v)\nhide\nset [ghost v] effect to (0)\ngo to [front v] layer\nrepeat (50)\n    change [ghost v] effect by (2)\n    wait (0) seconds\nend\nshow\nswitch costume to (disfraz1 v)\nrepeat (50)\n    change [ghost v] effect by (-2)\n    wait (0) seconds\nend\nrepeat (12)\n    repeat (50)\n        change [ghost v] effect by (2)\n        wait (0) seconds\n    end\n    next costume\n    repeat (50)\n        change [ghost v] effect by (-2)\n        wait (0) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I start as a clone\nforever\n    go to x: (0) y: (-140)\nend\n\nwhen flag clicked\nwait until <(nivel) = [24]>\ncreate clone of (_myself_ v)\n\n@WARDEN\n\nwhen flag clicked\ngo to x: (-20) y: (-30)\n\nwhen flag clicked\nhide\nwait until <<(nivel) = [15]> and <(nivel \(oculto\)) = [1]>>\nbroadcast (warden v)\nwait until <<(nivel) = [16]> or <(juego terminado \(game over\)) = [1]>>\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [warden v]\nforever\n    if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n        if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n            switch costume to (run v)\n            wait (0.1) seconds\n        end\n        if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n            switch costume to (run2 v)\n            wait (0.1) seconds\n        end\n        if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n            switch costume to (run3 v)\n            wait (0.1) seconds\n        end\n        if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n            switch costume to (run4 v)\n            wait (0.1) seconds\n        end\n        if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n            switch costume to (run5 v)\n            wait (0.1) seconds\n        end\n        if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n            switch costume to (run6 v)\n            wait (0.1) seconds\n        end\n        if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n            switch costume to (run7 v)\n            wait (0.1) seconds\n        end\n        if <not <<(warden \(correr\)) = [0]> and <(punch) = [1]>>> then\n            switch costume to (run8 v)\n            wait (0.1) seconds\n        end\n    end\nend\n\nwhen I receive [warden v]\nforever\n    if <<(distance to [player  v]) < [200]> and <(punch) = [0]>> then\n        point towards (player  v)\n        if <<[0] < (direction)> and <(direction) < [180]>> then\n            wait (0.1) seconds\n            set [warden \(correr\) v] to [1]\n        else\n            wait (0.1) seconds\n            set [warden \(correr\) v] to [-1]\n        end\n    else\n        set [warden \(correr\) v] to [0]\n        switch costume to (run v)\n    end\nend\n\nwhen I receive [warden v]\nforever\n    if <<(costume [number v]) = [2]> or <(costume [number v]) = [6]>> then\n        play sound [pasos warden  v] until done\n    else\n        wait until <<(costume [number v]) = [2]> or <(costume [number v]) = [6]>>\n    end\nend\n\nwhen I receive [warden v]\nshow\nforever\n    play sound [iddle v] until done\n    wait (pick random (1) to (4)) seconds\nend\n\nwhen I receive [warden v]\nforever\n    if <not <(warden \(correr\)) = [0]>> then\n        move (2) steps\n        set y to (-30)\n    else\n        move (0) steps\n        switch costume to (iddle v)\n    end\nend\n\nwhen I receive [warden v]\nforever\n    wait until <(distance to [player  v]) < [200]>\n    play sound [player detected v] until done\n    wait until <not <(distance to [player  v]) < [200]>>\nend\n\nwhen I receive [warden v]\nforever\n    if <(punch) = [1]> then\n        start sound [Low Whoosh v]\n        switch costume to (punch v)\n        wait (0) seconds\n        switch costume to (punch2 v)\n        wait (0) seconds\n        switch costume to (punch3 v)\n        wait (0) seconds\n        switch costume to (punch4 v)\n        wait (0) seconds\n        broadcast (hurt v)\n        change [vidas v] by (-1)\n        repeat (10)\n            switch costume to (punch4 v)\n        end\n        repeat (2)\n            switch costume to (punch3 v)\n        end\n        repeat (2)\n            switch costume to (punch2 v)\n        end\n        repeat (2)\n            switch costume to (punch v)\n        end\n        repeat (2)\n            switch costume to (disfraz21 v)\n        end\n        wait (1) seconds\n        set [punch v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\nend\n\n@warden hitbox\n\nwhen flag clicked\nhide\nforever\n    set [ghost v] effect to (100)\n    go to (warden v)\n    if <touching (player  v)?> then\n        set [punch v] to [1]\n    end\nend\n\nwhen I receive [warden v]\nshow\nwait until <<(nivel) = [16]> or <(juego terminado \(game over\)) = [1]>>\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@enderman\n\nwhen flag clicked\nhide\nforever\n    if <(nivel) > [19]> then\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\n    if <<(nivel) = [19]> and <(daño de enderman \(1\)) > [0]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [daño de enderman \(1\) v] to [3]\nset [daño de enderman \(2\) v] to [3]\nwait until <(nivel) = [19]>\nbroadcast (spawnenderman v)\n\nwhen I receive [spawnenderman v]\nswitch costume to (iddle v)\nrepeat until <(daño de enderman \(1\)) = [0]>\n    go to x: (-60) y: (-80)\n    if <<(daño \(tiempo de tolerancia\)) = [0]> and <<touching (player  v)?> and <not <<([costume # v] of [player  v]) = [19]> or <([costume # v] of [player  v]) = [20]>>>>> then\n        broadcast (hurt v)\n    end\nend\n\nwhen I receive [hurt sword v]\nif <not <(daño de enderman \(1\)) = [0]>> then\n    change [daño de enderman \(1\) v] by (-1)\n    switch costume to (hurt v)\n    play sound [hurt3 v] until done\n    switch costume to (iddle v)\nend\n\nwhen I receive [spawnenderman v]\nrepeat until <(daño de enderman \(1\)) = [0]>\n    wait (pick random (1) to (4)) seconds\n    play sound [iddle v] until done\nend\n\nwhen I receive [spawnenderman v]\nforever\n    if <<<mouse down?> and <touching (mouse-pointer v)?>> and <<touching (player  v)?> and <<([costume # v] of [player  v]) = [19]> or <([costume # v] of [player  v]) = [20]>>>> then\n        broadcast (hurt sword v)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [spawnenderman v]\nwait until <(daño de enderman \(1\)) = [0]>\nhide\nstop [other scripts in sprite v]\nplay sound [ded v] until done\nplay sound [ded revenge v] until done\n\n@enderman2\n\nwhen I receive [spawnenderman v]\nwait until <(daño de enderman \(2\)) = [0]>\nhide\nstop [other scripts in sprite v]\nplay sound [ded v] until done\nplay sound [ded revenge v] until done\n\nwhen I receive [spawnenderman v]\nforever\n    if <<<mouse down?> and <touching (mouse-pointer v)?>> and <<touching (player  v)?> and <<([costume # v] of [player  v]) = [19]> or <([costume # v] of [player  v]) = [20]>>>> then\n        broadcast (hurt sword2 v)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(nivel) > [19]> then\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\n    if <<(nivel) = [19]> and <(daño de enderman \(2\)) > [0]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [daño de enderman \(1\) v] to [3]\nset [daño de enderman \(2\) v] to [3]\nwait until <(nivel) = [19]>\nbroadcast (spawnenderman v)\n\nwhen I receive [spawnenderman v]\nswitch costume to (iddle v)\nrepeat until <(daño de enderman \(2\)) = [0]>\n    go to x: (100) y: (-80)\n    if <<(daño \(tiempo de tolerancia\)) = [0]> and <<touching (player  v)?> and <not <<([costume # v] of [player  v]) = [19]> or <([costume # v] of [player  v]) = [20]>>>>> then\n        broadcast (hurt v)\n    end\nend\n\nwhen I receive [hurt sword2 v]\nif <not <(daño de enderman \(2\)) = [0]>> then\n    change [daño de enderman \(2\) v] by (-1)\n    switch costume to (hurt v)\n    play sound [hurt3 v] until done\n    switch costume to (iddle v)\nend\n\nwhen I receive [spawnenderman v]\nrepeat until <(daño de enderman \(2\)) = [0]>\n    wait (pick random (1) to (4)) seconds\n    play sound [iddle v] until done\nend\n\nwhen I receive [spawnenderman v]\nwait until <(daño de enderman \(2\)) = [0]>\nforever\n    switch costume to (disfraz1 v)\nend\n\n@lava hitbox\n\nwhen flag clicked\nforever\n    go to (player  v)\n    set [ghost v] effect to (100)\n    go to [back v] layer\nend\n\n@niebla\n\nwhen flag clicked\nhide\nwait until <(nivel) = [24]>\nforever\n    if <(nivel \(oculto\)) = [0]> then\n        hide\n    else\n        show\n    end\nend\n\n@tutorial\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\nend\n\nwhen I receive [go! v]\ngo to x: (0) y: (0)\nset size to (800) %\nshow\nforever\n    if <(TUTORIAL \(X\)) = [0]> then\n        set volume to (volumen) %\n        switch costume to (disfraz1 v)\n        if <touching (mouse-pointer v)?> then\n            switch costume to (disfraz2 v)\n        end\n    end\nend\n\nwhen flag clicked\nhide\nset [tutorial \(x\) v] to [0]\n\nwhen this sprite clicked\nset [tutorial \(x\) v] to [1]\nif <(TUTORIAL \(X\)) = [1]> then\n    switch costume to (disfraz5 v)\n    wait (3) seconds\nend\nrepeat (2)\n    next costume\n    wait (3) seconds\nend\nset [tutorial \(x\) v] to [0]\n\nwhen I receive [go! v]\nwait (1) seconds\nforever\n    if <(menú) = [0]> then\n        go to [front v] layer\n    else\n        go to [back v] layer\n    end\nend\n\nwhen I receive [empezar v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen flag clicked\nset [juego terminado \(game over\) v] to [0]\nforever\n    if <(vidas) < [1]> then\n        set [juego terminado \(game over\) v] to [1]\n    end\nend\n\n@FUEGOS ARTIFICIALES\n\nwhen I receive [empezar v]\nhide\nset [fuegos artificiales v] to [1]\nforever\n    if <(fuegos artificiales) = [7]> then\n        set [fuegos artificiales v] to [1]\n    end\nend\n\nwhen I receive [empezar v]\nwait until <<(nivel) = [24]> and <(nivel \(oculto\)) = [1]>>\nset [vidas v] to [6]\nforever\n    set [ghost v] effect to (1)\n    go to x: (pick random (-125) to (155)) y: (-75)\n    broadcast (fuego artificial v)\n    wait (4) seconds\nend\n\nwhen I receive [fuego artificial v]\nshow\nset [ghost v] effect to (1)\nswitch costume to (disfraz19 v)\nstart sound [y2mate3 v]\nrepeat (7)\n    change y by (25)\nend\nstart sound [y2mate2 v]\nif <(fuegos artificiales) = [1]> then\n    broadcast (fuego desvanecer v)\n    switch costume to (disfraz1 v)\n    wait (1) seconds\n    repeat (2)\n        next costume\n        wait (1) seconds\n    end\n    change [fuegos artificiales v] by (1)\n    stop [this script v]\nelse\n    if <(fuegos artificiales) = [2]> then\n        broadcast (fuego desvanecer v)\n        switch costume to (disfraz2 v)\n        wait (1) seconds\n        repeat (2)\n            next costume\n            wait (1) seconds\n        end\n        change [fuegos artificiales v] by (1)\n        stop [this script v]\n    else\n        if <(fuegos artificiales) = [3]> then\n            broadcast (fuego desvanecer v)\n            switch costume to (disfraz5 v)\n            wait (1) seconds\n            repeat (2)\n                next costume\n                wait (1) seconds\n            end\n            change [fuegos artificiales v] by (1)\n            stop [this script v]\n        else\n            if <(fuegos artificiales) = [4]> then\n                broadcast (fuego desvanecer v)\n                switch costume to (disfraz10 v)\n                wait (1) seconds\n                repeat (2)\n                    next costume\n                    wait (1) seconds\n                end\n                change [fuegos artificiales v] by (1)\n                stop [this script v]\n            else\n                if <(fuegos artificiales) = [5]> then\n                    broadcast (fuego desvanecer v)\n                    switch costume to (disfraz15 v)\n                    wait (1) seconds\n                    repeat (2)\n                        next costume\n                        wait (1) seconds\n                    end\n                    change [fuegos artificiales v] by (1)\n                    stop [this script v]\n                else\n                    if <(fuegos artificiales) = [6]> then\n                        broadcast (fuego desvanecer v)\n                        switch costume to (disfraz14 v)\n                        wait (1) seconds\n                        repeat (2)\n                            next costume\n                            wait (1) seconds\n                        end\n                        change [fuegos artificiales v] by (1)\n                        stop [this script v]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [fuego desvanecer v]\nrepeat (33)\n    change [ghost v] effect by (6)\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    set volume to (volumen) %\nend\n\nwhen flag clicked\nhide\n\n@game over\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen flag clicked\nhide\n\nwhen I receive [empezar v]\nset size to (1500) %\nhide\nwait (1) seconds\nforever\n    if <(gueim ouber) = [1]> then\n        wait (0.1) seconds\n        wait until <(hide level) = [1]>\n        show\n        switch costume to (bad ending v)\n    end\n    if <<(nivel) = (max levels)> and <(gueim ouber) = [0]>> then\n        wait (0.1) seconds\n        go to [front v] layer\n        show\n        switch costume to (good ending v)\n        wait (0.1) seconds\n        set [touchpad boton de salto v] to [1]\n        wait (0.1) seconds\n        set [touchpad boton de salto v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(nivel) = [24]> then\n        broadcast (YOU WIN v) and wait\n        stop [this script v]\n    end\nend\n\n
SPACE    W,A,S,D    ←↑↓→(ARROWS) and TACTIL MODE in configuration.\n\nNOTES:i work in this project 1.5 years XD i spek spanish ok (but it doesn't matter because I use Google translate :D ).\nYOU CAN BEAT THE DRAGON?