Horizon - A Long Platformer (v1.22.1) #Games
@Stage\n\nwhen I receive [message 1 v]\nforever\n    play sound [17 - Rilgar - Blackwater City v] until done\nend\n\nwhen I receive [message 1 v]\nset [temps restant v] to [a]\nset volume to (0) %\nrepeat (50)\n    wait (0.05) seconds\n    change volume by (2)\nend\n\nwhen flag clicked\nhide variable [temps restant v]\nset volume to (0) %\n\nwhen I receive [go v]\nset [temps restant v] to [650]\nif <(ContreLaMontre?) = [1]> then\n    show variable [temps restant v]\n    forever\n        wait (0.05) seconds\n        change [temps restant v] by (-0.1)\n        if <(Temps restant) < [0.1]> then\n            set [jeu? v] to [0]\n            if <not <(Niveau) = [fin]>> then\n                broadcast (message 1 v)\n                hide variable [temps restant v]\n                set [temps restant v] to [650]\n                stop [this script v]\n            end\n            hide variable [temps restant v]\n            set [temps restant v] to [a]\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[10.1] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[8.1] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[6.1] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[4.1] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[2.6] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[2.1] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[1.1] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[0.9] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[0.7] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[0.5] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[0.3] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[0.2] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[1.6] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <[3.1] > (Temps restant)> then\n        start sound [BIP v]\n        stop [this script v]\n    end\n    if <(Niveau) = [fin]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [message 1 v]\nhide variable [temps restant v]\n\nwhen I receive [go v]\nset [jeu? v] to [1]\nforever\n    if <<(Niveau) = [fin]> or <(Jeu?) = [0]>> then\n        set [jeu? v] to [0]\n        hide variable [niveau v]\n        stop [this script v]\n    else\n        if <(Niveau affiché ?) = [1]> then\n            show variable [niveau v]\n        else\n            hide variable [niveau v]\n        end\n    end\nend\n\nwhen flag clicked\nset [niveau affiché ? v] to [0]\nhide variable [niveau v]\n\nwhen [w v] key pressed\nif <(Niveau affiché ?) = [1]> then\n    set [niveau affiché ? v] to [0]\n    wait (0.1) seconds\nelse\n    set [niveau affiché ? v] to [1]\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nset [jeu? v] to [0]\n\nwhen I receive [message 1 v]\nset [niveau affiché ? v] to [0]\n\nwhen flag clicked\nforever\n    if <(Niveau) = [50]> then\n        show variable [vies boss v]\n    else\n        hide variable [vies boss v]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <(Niveau) = [50]> then\n        set volume to (0) %\n    else\n        if <(Niveau) > [45]> then\n            set volume to (100) %\n        end\n    end\nend\n\nwhen [r v] key pressed\nbroadcast (MORT v)\nchange [morts v] by (1)\n\n@Cube\n\nwhen I receive [go v]\nset size to (100) %\ngo to [front v] layer\ngo to x: (-195) y: (10)\nforever\n    if <key (right arrow v) pressed?> then\n        change [pour aller de gauche à droite v] by (1)\n    else\n        if <key (left arrow v) pressed?> then\n            change [pour aller de gauche à droite v] by (-1)\n        end\n    end\n    set [pour aller de gauche à droite v] to ((Pour aller de gauche à droite) * (0.9))\n    change x by (Pour aller de gauche à droite)\n    if <<touching color (#170000)?> or <<touching color (#171717)?> or <<touching color (#517831)?> or <<touching color (#8a8a8a)?> or >>>> then\n        change y by (1)\n        if <<touching color (#170000)?> or <<touching color (#171717)?> or <<touching color (#517831)?> or <<touching color (#8a8a8a)?> or >>>> then\n            change y by (1)\n            if <<touching color (#170000)?> or <<touching color (#171717)?> or <<touching color (#517831)?> or <<touching color (#8a8a8a)?> or >>>> then\n                change y by (1)\n                if <<touching color (#170000)?> or <<touching color (#171717)?> or <<touching color (#517831)?> or <<touching color (#8a8a8a)?> or >>>> then\n                    change y by (1)\n                end\n                if <<touching color (#170000)?> or <<touching color (#171717)?> or <<touching color (#517831)?> or <<touching color (#8a8a8a)?> or >>>> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <<touching color (#170000)?> or <<touching color (#171717)?> or <<touching color (#517831)?> or <<touching color (#8a8a8a)?> or >>>> then\n        if <not <touching (aspiration v)?>> then\n            change y by (-5)\n        end\n        change x by ((Pour aller de gauche à droite) * (-1))\n        if <key (up arrow v) pressed?> then\n            if <(Pour aller de gauche à droite) > [0]> then\n                set [pour aller de gauche à droite v] to [-5]\n            else\n                set [pour aller de gauche à droite v] to [5]\n            end\n            set [pour aller de haut en bas v] to [10]\n        else\n            set [pour aller de haut en bas v] to [0]\n        end\n    end\n    if <touching (gravité + v)?> then\n        if <key (down arrow v) pressed?> then\n            change [pour aller de haut en bas v] by (-1)\n        else\n            change [pour aller de haut en bas v] by (-2)\n        end\n    else\n        if <touching (gravité - v)?> then\n            if <key (down arrow v) pressed?> then\n                change [pour aller de haut en bas v] by (-2)\n            else\n                change [pour aller de haut en bas v] by (-0.5)\n            end\n        else\n            if <<key (down arrow v) pressed?> and <not <touching (aspiration v)?>>> then\n                change [pour aller de haut en bas v] by (-5)\n            else\n                change [pour aller de haut en bas v] by (-1)\n            end\n        end\n    end\n    change y by (Pour aller de haut en bas)\n    if <<touching color (#170000)?> or <<touching color (#171717)?> or <<touching color (#517831)?> or <<touching color (#8a8a8a)?> or >>>> then\n        change y by ((Pour aller de haut en bas) * (-1))\n        set [pour aller de haut en bas v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#170000)?> or <<touching color (#171717)?> or <<touching color (#517831)?> or <<touching color (#8a8a8a)?> or >>>> then\n        if <key (up arrow v) pressed?> then\n            set [pour aller de haut en bas v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [240]> then\n        if <(Possibilité de gagner ?) = [1]> then\n            broadcast (WIN v)\n        end\n    end\n    if <<<<touching color (#ba0000)?> or <touching color (#ba1515)?>> or <touching color (#960000)?>> and <not <touching color (#d090b8)?>>> then\n        go to x: (-215) y: (-115)\n        change [morts v] by (1)\n        broadcast (MORT v)\n    end\n    if <touching color (#694900)?> then\n        broadcast (Fortniute v)\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-152) y: (-115)\n\nwhen I receive [go v]\nswitch costume to (costume1 v)\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [go v]\nset [téléportation ok v] to [1]\nforever\n    if <touching color (#00d71c)?> then\n        if <[1] = (Téléportation OK)> then\n            go to x: (join (letter (1) of (item (Niveau) of [tel 2 v])) (join (letter (2) of (item (Niveau) of [tel 2 v])) (join (letter (3) of (item (Niveau) of [tel 2 v])) (letter (4) of (item (Niveau) of [tel 2 v]))))) y: (join (letter (5) of (item (Niveau) of [tel 2 v])) (join (letter (6) of (item (Niveau) of [tel 2 v])) (join (letter (7) of (item (Niveau) of [tel 2 v])) (letter (8) of (item (Niveau) of [tel 2 v])))))\n            set [téléportation ok v] to <[0] = (Téléportation OK)>\n        end\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <touching color (#a0b900)?> then\n        if <[1] = (Téléportation OK)> then\n            go to x: (join (letter (1) of (item (Niveau) of [tel 1 v])) (join (letter (2) of (item (Niveau) of [tel 1 v])) (join (letter (3) of (item (Niveau) of [tel 1 v])) (letter (4) of (item (Niveau) of [tel 1 v]))))) y: (join (letter (5) of (item (Niveau) of [tel 1 v])) (join (letter (6) of (item (Niveau) of [tel 1 v])) (join (letter (7) of (item (Niveau) of [tel 1 v])) (letter (8) of (item (Niveau) of [tel 1 v])))))\n            set [téléportation ok v] to [0]\n        end\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <<not <touching color (#a0b900)?>> and <not <touching color (#00d71c)?>>> then\n        set [téléportation ok v] to [1]\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <<touching color (#ffd800)?> or <touching color (#d19600)?>> then\n        if <key (up arrow v) pressed?> then\n            set [pour aller de haut en bas v] to [25]\n        else\n            set [pour aller de haut en bas v] to [15]\n        end\n    end\nend\n\nwhen I receive [message 1 v]\nswitch costume to (costume1 v)\ngo to x: (-152) y: (-115)\nstop [other scripts in sprite v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [go v]\nset [niveau affiché ? v] to [1]\n\nwhen I receive [win v]\nif <(Niveau) = [72]> then\n    go to x: (-125) y: (170)\nelse\n    if <(Niveau) = [81]> then\n        go to x: (-145) y: (170)\n    else\n        go to x: (-215) y: (-115)\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <key (down arrow v) pressed?> then\n        if <not <touching (aspiration v)?>> then\n            set [pour aller de haut en bas v] to [-10]\n            wait (0.2) seconds\n        end\n    end\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    if <(Possibilité de gagner ?) = [0]> then\n        if <(x position) > [240]> then\n            go to x: (-238) y: (y position)\n        end\n        if <[-240] > (x position)> then\n            go to x: (238) y: (y position)\n        end\n    end\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    if <(Niveau) = [50]> then\n        if <(Vies BOSS) = [0]> then\n            set [possibilité de gagner ? v] to [1]\n        else\n            set [possibilité de gagner ? v] to [0]\n        end\n    else\n        set [possibilité de gagner ? v] to [1]\n    end\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    if <touching color (#d090b8)?> then\n        wait (0.2) seconds\n        go to x: (-215) y: (-115)\n    end\nend\n\nwhen I receive [go v]\nset [morts v] to [0]\nwait until <(Niveau) = [50]>\nwait (0.2) seconds\nbroadcast (MORT v)\nchange [morts v] by (-1)\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (5) layers\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [go v]\nforever\n    if <touching (aspiration v)?> then\n        if <(Niveau) = [72]> then\n            change [pour aller de haut en bas v] by (8)\n        else\n            change x by (30)\n        end\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <<(Niveau) = [72]> and <(y position) > [180]>> then\n        go to x: (-215) y: (-115)\n        broadcast (MORT v)\n        change [morts v] by (1)\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <<<(Niveau) = [72]> or <(Niveau) = [81]>> and <[-180] > (y position)>> then\n        broadcast (WIN v)\n    end\nend\n\nwhen I receive [mort v]\nif <(Niveau) = [73]> then\n    go to x: (-125) y: (170)\nelse\n    if <(Niveau) = [82]> then\n        go to x: (-145) y: (170)\n    else\n        go to x: (-215) y: (-115)\n    end\nend\n\n@Bouton Jouer\n\nwhen I receive [message 1 v]\nshow\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        if <not <touching (mouse-pointer v)?>> then\n            set size to (100) %\n        end\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nbroadcast (GO v)\nset [contrelamontre? v] to [0]\nhide\nset [ghost v] effect to (100)\n\nwhen flag clicked\nshow\n\nwhen I receive [go v]\nhide\nset [ghost v] effect to (100)\n\nwhen [m v] key pressed\nif <not <(Temps restant) = [a]>> then\n    broadcast (message 1 v)\nend\n\n@Titre\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [message 1 v]\nshow\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [go v]\nset [ghost v] effect to (100)\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (10) layers\nend\n\n@Intro\n\nwhen I receive [flash v]\nset [brightness v] effect to (-200)\nwait (0.3) seconds\nset [brightness v] effect to (0)\n\nwhen I receive [intro v]\npoint in direction (90)\ngo to [front v] layer\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [message 1 v]\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nbroadcast (intro v)\nshow\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (2 v)\npoint in direction (90)\nshow\ngo to x: (0) y: (0)\nset size to (5) %\nrepeat (45)\n    change size by (4)\nend\nrepeat (20)\n    change size by (-3)\nend\nwait (1) seconds\nrepeat (60)\n    turn right (27) degrees\n    change size by (2)\n    change [ghost v] effect by (2)\nend\nwait (0.3) seconds\nhide\nbroadcast (message 1 v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Miniature\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nhide\n\n@Plateformes\n\nwhen I receive [message 1 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\n\nwhen I receive [win v]\nnext costume\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <(costume [number v]) = [83]> then\n        set [niveau v] to [fin]\n    else\n        set [niveau v] to (costume [number v])\n    end\nend\n\nwhen [s v] key pressed\nif <<(Jeu?) = [1]> and <(ContreLaMontre?) = [0]>> then\n    broadcast (WIN v)\nend\n\n@Tél 1\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    switch costume to (Niveau)\n    go to x: (join (letter (1) of (item (Niveau) of [tel 1 v])) (join (letter (2) of (item (Niveau) of [tel 1 v])) (join (letter (3) of (item (Niveau) of [tel 1 v])) (letter (4) of (item (Niveau) of [tel 1 v]))))) y: (join (letter (5) of (item (Niveau) of [tel 1 v])) (join (letter (6) of (item (Niveau) of [tel 1 v])) (join (letter (7) of (item (Niveau) of [tel 1 v])) (letter (8) of (item (Niveau) of [tel 1 v])))))\nend\n\nwhen flag clicked\ndelete all of [tel 1 v]\nrepeat (100)\n    add [] to [tel 1 v]\nend\nreplace item (14) of [tel 1 v] with [-030-100]\nreplace item (15) of [tel 1 v] with [-159-011]\nreplace item (24) of [tel 1 v] with [-0900007]\nreplace item (31) of [tel 1 v] with [-090-080]\nreplace item (34) of [tel 1 v] with [-1690149]\nreplace item (51) of [tel 1 v] with [-1880038]\n\nwhen flag clicked\nforever\n    if <(item (Niveau) of [tel 1 v]) = []> then\n        hide\n    else\n        show\n    end\nend\n\n@Tél 2\n\nwhen flag clicked\ndelete all of [tel 2 v]\nrepeat (100)\n    add [] to [tel 2 v]\nend\nreplace item (14) of [tel 2 v] with [0070-100]\nreplace item (15) of [tel 2 v] with [01850135]\nreplace item (24) of [tel 2 v] with [01390004]\nreplace item (31) of [tel 2 v] with [00820007]\nreplace item (34) of [tel 2 v] with [02110120]\nreplace item (51) of [tel 2 v] with [01680147]\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    switch costume to (Niveau)\n    go to x: (join (letter (1) of (item (Niveau) of [tel 2 v])) (join (letter (2) of (item (Niveau) of [tel 2 v])) (join (letter (3) of (item (Niveau) of [tel 2 v])) (letter (4) of (item (Niveau) of [tel 2 v]))))) y: (join (letter (5) of (item (Niveau) of [tel 2 v])) (join (letter (6) of (item (Niveau) of [tel 2 v])) (join (letter (7) of (item (Niveau) of [tel 2 v])) (letter (8) of (item (Niveau) of [tel 2 v])))))\nend\n\nwhen flag clicked\nforever\n    if <(item (Niveau) of [tel 2 v]) = []> then\n        hide\n    else\n        show\n    end\nend\n\n@Contre la montre\n\nwhen I receive [message 1 v]\nshow\ngo to x: (0) y: (-80)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (82) %\n    else\n        if <not <touching (mouse-pointer v)?>> then\n            set size to (75) %\n        end\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nbroadcast (GO v)\nset [contrelamontre? v] to [1]\nhide\nset [ghost v] effect to (100)\n\nwhen flag clicked\nshow\n\nwhen I receive [go v]\nhide\nset [ghost v] effect to (100)\n\n@Menu\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    if <(Niveau) = [fin]> then\n        set [jeu? v] to [0]\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (message 1 v)\n\n@Bouton ?\n\nwhen I receive [message 1 v]\nshow\ngo to x: (210) y: (-102)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (costume2 v)\nelse\n    go to x: (210) y: (-102)\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [go v]\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [message 1 v]\nforever\n    go to [front v] layer\n    go [backward v] (4) layers\n    if <(costume [number v]) = [2]> then\n        set size to (100) %\n    else\n        if <touching (mouse-pointer v)?> then\n            set size to (110) %\n        else\n            if <not <touching (mouse-pointer v)?>> then\n                set size to (100) %\n            end\n        end\n    end\nend\n\n@Mouvement\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go v]\nbroadcast (Go pour mouvements v)\n\nwhen I receive [go pour mouvements v]\nforever\n    if <(Niveau) = [38]> then\n        switch costume to (costume1 v)\n        go to x: (0) y: (0)\n        show\n        repeat until <not <(Niveau) = [38]>>\n            repeat (20)\n                change y by (3)\n            end\n            repeat (20)\n                change y by (-3)\n            end\n        end\n    else\n        if <(Niveau) = [39]> then\n            switch costume to (costume1 v)\n            go to x: (-10) y: (0)\n            show\n            repeat until <not <(Niveau) = [39]>>\n                repeat (30)\n                    change y by (3)\n                end\n                repeat (30)\n                    change y by (-3)\n                end\n            end\n        else\n            if <(Niveau) = [53]> then\n                switch costume to (costume2 v)\n                go to x: (80) y: (-50)\n                show\n                repeat until <not <(Niveau) = [53]>>\n                    repeat (30)\n                        change y by (3)\n                    end\n                    repeat (30)\n                        change y by (-3)\n                    end\n                end\n            else\n                if <(Niveau) = [54]> then\n                    go to [back v] layer\n                    switch costume to (costume3 v)\n                    go to x: (20) y: (-200)\n                    show\n                    repeat until <not <(Niveau) = [54]>>\n                        repeat (7)\n                            change y by (15)\n                        end\n                        wait (0.5) seconds\n                        repeat (7)\n                            change y by (-15)\n                        end\n                        wait (0.5) seconds\n                    end\n                else\n                    if <(Niveau) = [55]> then\n                        go to [back v] layer\n                        switch costume to (costume4 v)\n                        go to x: (20) y: (-200)\n                        show\n                        repeat until <not <(Niveau) = [55]>>\n                            repeat (7)\n                                change y by (15)\n                            end\n                            wait (0.5) seconds\n                            repeat (7)\n                                change y by (-15)\n                            end\n                            wait (0.5) seconds\n                        end\n                    else\n                        if <(Niveau) = [69]> then\n                            go to [back v] layer\n                            switch costume to (costume5 v)\n                            go to x: (115) y: (50)\n                            show\n                            repeat until <not <(Niveau) = [69]>>\n                                repeat (50)\n                                    change y by (3)\n                                end\n                                repeat (50)\n                                    change y by (-3)\n                                end\n                            end\n                        else\n                            hide\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    if <<not <(Niveau) = [38]>> and <<not <(Niveau) = [39]>> and <<not <(Niveau) = [53]>> and <<not <(Niveau) = [54]>> and <<not <(Niveau) = [55]>> and <not <(Niveau) = [69]>>>>>>> then\n        hide\n    end\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    set [changement niveau v] to (Niveau)\n    wait until <not <(Changement niveau) = (Niveau)>>\n    stop [other scripts in sprite v]\n    broadcast (Go pour mouvements v)\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Mouv. 2\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go pour mouvements v]\nforever\n    if <(Niveau) = [39]> then\n        switch costume to (costume1 v)\n        go to x: (9) y: (90)\n        show\n        repeat until <not <(Niveau) = [39]>>\n            repeat (30)\n                change y by (-3)\n            end\n            repeat (30)\n                change y by (3)\n            end\n        end\n    else\n        if <(Niveau) = [69]> then\n            switch costume to (costume2 v)\n            go to x: (6) y: (85)\n            show\n            repeat until <not <(Niveau) = [69]>>\n                repeat (50)\n                    change y by (-3)\n                end\n                repeat (50)\n                    change y by (3)\n                end\n            end\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    go to [back v] layer\n    go [forward v] (6) layers\n    if <<not <(Niveau) = [39]>> and <not <(Niveau) = [69]>>> then\n        hide\n    end\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    set [changement niveau v] to (Niveau)\n    wait until <not <(Changement niveau) = (Niveau)>>\n    stop [other scripts in sprite v]\n    broadcast (Go pour mouvements v)\nend\n\n@Projectile\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go v]\nforever\n    if <<(Niveau) = [41]> or <<(Niveau) = [42]> or <<(Niveau) = [43]> or <<(Niveau) = [57]> or <<(Niveau) = [63]> or <(Niveau) = [70]>>>>>> then\n        wait (1.5) seconds\n        create clone of (_myself_ v)\n    else\n        if <<(Niveau) = [44]> or <<(Niveau) = [47]> or <(Niveau) = [53]>>> then\n            wait (0.75) seconds\n            create clone of (_myself_ v)\n        else\n            if <<(Niveau) = [45]> or <(Niveau) = [46]>> then\n                wait (0.05) seconds\n                create clone of (_myself_ v)\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nif <(Niveau) = [41]> then\n    go to x: (20) y: (110)\n    point towards (cube v)\n    forever\n        move (5) steps\n        if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n            delete this clone\n        end\n    end\nelse\n    if <(Niveau) = [42]> then\n        go to x: (120) y: (105)\n        point towards (cube v)\n        forever\n            move (5) steps\n            if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                delete this clone\n            end\n        end\n    else\n        if <(Niveau) = [43]> then\n            go to x: (190) y: (105)\n            point towards (cube v)\n            forever\n                move (5) steps\n                if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                    delete this clone\n                end\n            end\n        else\n            if <(Niveau) = [44]> then\n                go to x: (20) y: (105)\n                point towards (cube v)\n                forever\n                    move (8) steps\n                    if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                        delete this clone\n                    end\n                end\n            else\n                if <(Niveau) = [45]> then\n                    go to x: (20) y: (105)\n                    point towards (cube v)\n                    forever\n                        move (12) steps\n                        if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                            delete this clone\n                        end\n                    end\n                else\n                    if <(Niveau) = [46]> then\n                        go to x: (-225) y: (110)\n                        point towards (cube v)\n                        forever\n                            move (12) steps\n                            if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                                delete this clone\n                            end\n                        end\n                    else\n                        if <(Niveau) = [47]> then\n                            go to x: (-210) y: (135)\n                            point towards (cube v)\n                            forever\n                                move (8) steps\n                                if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                                    delete this clone\n                                end\n                            end\n                        else\n                            if <(Niveau) = [50]> then\n                                go to (boss v)\n                                point towards (cube v)\n                                forever\n                                    move (8) steps\n                                    if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                                        delete this clone\n                                    end\n                                end\n                            else\n                                if <(Niveau) = [53]> then\n                                    go to x: (-210) y: (130)\n                                    point towards (cube v)\n                                    forever\n                                        move (8) steps\n                                        if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                                            delete this clone\n                                        end\n                                    end\n                                else\n                                    if <(Niveau) = [57]> then\n                                        go to x: (140) y: (65)\n                                        point towards (cube v)\n                                        forever\n                                            move (5) steps\n                                            if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                                                delete this clone\n                                            end\n                                        end\n                                    else\n                                        if <(Niveau) = [63]> then\n                                            go to x: (5) y: (110)\n                                            point towards (cube v)\n                                            forever\n                                                move (5) steps\n                                                if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                                                    delete this clone\n                                                end\n                                            end\n                                        else\n                                            if <(Niveau) = [70]> then\n                                                go to x: (220) y: (-115)\n                                                point towards (cube v)\n                                                forever\n                                                    move (5) steps\n                                                    if <<touching (_edge_ v)?> or <<touching color (#170000)?> or <<touching color (#6a6a6a)?> or >>> then\n                                                        delete this clone\n                                                    end\n                                                end\n                                            else\n                                                delete this clone\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [go pour mouvements v]\ndelete this clone\n\nwhen I receive [mort v]\ndelete this clone\n\nwhen I receive [go pour mouvements v]\nif <<(Niveau) = [50]> and <not <(Vies BOSS) = [0]>>> then\n    forever\n        wait (pick random (0.9) to (8)) seconds\n        if <(Vies BOSS) = [0]> then\n            stop [this script v]\n        end\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nif <(Niveau) = [50]> then\n    set size to (pick random (100) to (300)) %\nelse\n    set size to (100) %\nend\n\n@Projectile 2\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go v]\nforever\n    if <<(Niveau) = [45]> or <(Niveau) = [46]>> then\n        wait (0.05) seconds\n        create clone of (_myself_ v)\n    else\n        if <<(Niveau) = [47]> or <(Niveau) = [53]>> then\n            wait (0.75) seconds\n            create clone of (_myself_ v)\n        else\n            hide\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nif <(Niveau) = [45]> then\n    go to x: (185) y: (110)\n    point towards (cube v)\n    forever\n        move (12) steps\n        if <<touching (_edge_ v)?> or <touching color (#170000)?>> then\n            delete this clone\n        end\n    end\nelse\n    if <(Niveau) = [46]> then\n        go to x: (225) y: (110)\n        point towards (cube v)\n        forever\n            move (12) steps\n            if <<touching (_edge_ v)?> or <touching color (#170000)?>> then\n                delete this clone\n            end\n        end\n    else\n        if <(Niveau) = [47]> then\n            go to x: (215) y: (140)\n            point towards (cube v)\n            forever\n                move (8) steps\n                if <<touching (_edge_ v)?> or <touching color (#170000)?>> then\n                    delete this clone\n                end\n            end\n        else\n            if <(Niveau) = [53]> then\n                go to x: (-55) y: (20)\n                point towards (cube v)\n                forever\n                    move (8) steps\n                    if <<touching (_edge_ v)?> or <touching color (#170000)?>> then\n                        delete this clone\n                    end\n                end\n            else\n                delete this clone\n            end\n        end\n    end\nend\n\nwhen I receive [go pour mouvements v]\ndelete this clone\n\nwhen I receive [mort v]\ndelete this clone\n\n@Projectile 3\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go v]\nforever\n    if <<(Niveau) = [47]> or <(Niveau) = [47]>> then\n        wait (0.75) seconds\n        create clone of (_myself_ v)\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nshow\nif <(Niveau) = [47]> then\n    go to x: (0) y: (160)\n    point towards (cube v)\n    forever\n        move (8) steps\n        if <<touching (_edge_ v)?> or <touching color (#170000)?>> then\n            delete this clone\n        end\n    end\nelse\n    delete this clone\nend\n\nwhen I receive [go pour mouvements v]\ndelete this clone\n\nwhen I receive [mort v]\ndelete this clone\n\n@Gravité -\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\n\nwhen I receive [message 1 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <(Niveau) = [48]> then\n        switch costume to (costume1 v)\n        show\n        go to x: (9) y: (31)\n    else\n        hide\n    end\nend\n\n@Gravité +\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\n\nwhen I receive [message 1 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <<(Niveau) = [49]> or <(Niveau) = [49]>> then\n        switch costume to (costume1 v)\n        show\n        go to x: (9) y: (31)\n    else\n        if <<(Niveau) = [51]> or <(Niveau) = [51]>> then\n            switch costume to (costume2 v)\n            show\n            go to x: (9) y: (31)\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Boss\n\nwhen flag clicked\nhide\n\nwhen I receive [go pour mouvements v]\ngo to x: (0) y: (40)\nif <(Niveau) = [50]> then\n    show\n    forever\n        if <(BOSS GD) = [1]> then\n            change [pour aller de gàd boss v] by (1)\n        else\n            change [pour aller de gàd boss v] by (-1)\n        end\n        set [pour aller de gàd boss v] to ((Pour aller de GàD BOSS) * (0.9))\n        change x by (Pour aller de GàD BOSS)\n        if <<touching color (#170000)?> or <touching color (#171717)?>> then\n            change y by (1)\n            if <<touching color (#170000)?> or <touching color (#171717)?>> then\n                change y by (1)\n                if <<touching color (#170000)?> or <touching color (#171717)?>> then\n                    change y by (1)\n                    if <<touching color (#170000)?> or <touching color (#171717)?>> then\n                        change y by (1)\n                    end\n                    if <<touching color (#170000)?> or <touching color (#171717)?>> then\n                        change y by (1)\n                    end\n                end\n            end\n        end\n        if <<touching color (#170000)?> or <touching color (#171717)?>> then\n            change y by (-5)\n            change x by ((Pour aller de GàD BOSS) * (-1))\n            if <(Saut BOSS) = [1]> then\n                if <(Pour aller de GàD BOSS) > [0]> then\n                    set [pour aller de gàd boss v] to [-5]\n                else\n                    set [pour aller de gàd boss v] to [5]\n                end\n                set [pour aller de henb boss v] to [10]\n            else\n                set [pour aller de henb boss v] to [0]\n            end\n        end\n        change [pour aller de henb boss v] by (-1)\n        change y by (Pour aller de HenB BOSS)\n        if <<touching color (#170000)?> or <touching color (#171717)?>> then\n            change y by ((Pour aller de HenB BOSS) * (-1))\n            set [pour aller de henb boss v] to [0]\n        end\n        change y by (-1)\n        if <<touching color (#170000)?> or <touching color (#171717)?>> then\n            if <(Saut BOSS) = [1]> then\n                set [pour aller de henb boss v] to [15]\n            end\n        end\n        change y by (1)\n    end\nend\n\nwhen I receive [go pour mouvements v]\nif <(Niveau) = [50]> then\n    forever\n        set [boss gd v] to (pick random (0) to (1))\n        wait (pick random (0.5) to (5)) seconds\n    end\nend\n\nwhen I receive [go pour mouvements v]\nif <(Niveau) = [50]> then\n    forever\n        set [saut boss v] to [1]\n        wait (0.02) seconds\n        set [saut boss v] to [0]\n        wait (pick random (0.0) to (5)) seconds\n    end\nend\n\nwhen I receive [mort v]\ngo to x: (0) y: (40)\n\nwhen flag clicked\nforever\n    if <(BOSS GD) = [0]> then\n        point in direction (-90)\n    else\n        point in direction (90)\n    end\nend\n\nwhen I receive [go pour mouvements v]\nif <(Niveau) = [50]> then\n    forever\n        if <(x position) > [220]> then\n            set [boss gd v] to [0]\n        end\n        if <[-220] > (x position)> then\n            set [boss gd v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [boss x v] to (x position)\n    set [boss y v] to (y position)\nend\n\nwhen flag clicked\nforever\n    if <<(Niveau) = [50]> and <not <(Vies BOSS) = [0]>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [mort v]\nset [vies boss v] to [3]\n\nwhen I receive [win v]\nset [vies boss v] to [3]\n\nwhen I receive [go v]\nwait until <(Niveau) = [50]>\nif <(Niveau) = [50]> then\n    set volume to (100) %\n    forever\n        play sound [10 - Aridia - Traversing The Fortress v] until done\n    end\nend\n\nwhen I receive [go v]\nforever\n    if <not <(Niveau) = [50]>> then\n        set volume to (0) %\n    end\nend\n\n@Point faible BOSS\n\nwhen flag clicked\nforever\n    if <(Niveau) = [50]> then\n        if <<(Vies BOSS) = [3]> or <(Vies BOSS) = [1]>> then\n            if <(y position) > [138]> then\n                hide\n            else\n                show\n            end\n        else\n            show\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <(Niveau) = [50]> then\n        if <touching (cube v)?> then\n            change [vies boss v] by (-1)\n            broadcast (Go pour mouvements v)\n            change [morts v] by (-1)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Vies BOSS) = [3]> then\n        switch costume to (costume1 v)\n    else\n        if <(Vies BOSS) = [2]> then\n            switch costume to (costume2 v)\n        else\n            if <(Vies BOSS) = [1]> then\n                switch costume to (costume3 v)\n            else\n                switch costume to (costume4 v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\ngo to (boss v)\nforever\n    go to x: (BOSS X) y: (BOSS Y)\n    go to (boss v)\nend\n\nwhen flag clicked\nwait until <(Niveau) = [50]>\nwait (0.2) seconds\ngo to (boss v)\nforever\n    go to (boss v)\nend\n\nwhen flag clicked\nwait until <(Niveau) = [50]>\nwait (0.8) seconds\ngo to (boss v)\nforever\n    go to (boss v)\nend\n\nwhen I receive [go v]\nwait until <(Niveau) = [50]>\ngo to (boss v)\n\nwhen I receive [mort v]\nforever\n    go to (boss v)\nend\n\nwhen flag clicked\nforever\n    if <not <touching (boss v)?>> then\n        go to (boss v)\n    end\nend\n\nwhen I receive [win v]\nforever\n    go to (boss v)\nend\n\n@Mouv. si...\n\nwhen flag clicked\nhide\n\nwhen I receive [mort v]\nbroadcast (Go pour mouvements v)\n\nwhen I receive [go pour mouvements v]\ngo to [back v] layer\nif <(Niveau) = [56]> then\n    switch costume to (costume1 v)\n    go to x: (57) y: (9)\n    show\nelse\n    if <(Niveau) = [64]> then\n        switch costume to (costume2 v)\n        go to x: (0) y: (248)\n        hide\n    else\n        hide\n    end\nend\n\nwhen I receive [go pour mouvements v]\nset [tomber ? v] to [0]\nwait (0.2) seconds\nwait until <touching (cube v)?>\nshow\nrepeat until <[-145] > (y position)>\n    change y by (-14)\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    go to [back v] layer\nend\n\nwhen I receive [tomber ! v]\nif <(TOMBER ?) = [1]> then\n    show\n    repeat until <<[-180] > (y position)> or <<(TOMBER ?) = [0]> or <touching (cube v)?>>>\n        change y by (-30)\n    end\n    if <not <<(TOMBER ?) = [0]> or <touching (cube v)?>>> then\n        broadcast (Sproutch ! v)\n    end\n    set [tomber ? v] to [0]\n    if <touching (cube v)?> then\n        go to x: (0) y: (248)\n        broadcast (MORT v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@Ennemi\n\nwhen flag clicked\nhide\n\nwhen I receive [go pour mouvements v]\ngo to x: (0) y: (-110)\nforever\n    if <(Ennemi GD) = [1]> then\n        change [pour aller de gàd ennemi v] by (1)\n    else\n        change [pour aller de gàd ennemi v] by (-1)\n    end\n    set [pour aller de gàd ennemi v] to ((Pour aller de GàD ennemi) * (0.9))\n    change x by (Pour aller de GàD ennemi)\n    if <<<touching color (#170000)?> or <touching color (#171717)?>> or <<touching color (#6a6a6a)?> or <touching color (#8a8a8a)?>>> then\n        change y by (1)\n        if <<<touching color (#170000)?> or <touching color (#171717)?>> or <<touching color (#6a6a6a)?> or <touching color (#8a8a8a)?>>> then\n            change y by (1)\n            if <<<touching color (#170000)?> or <touching color (#171717)?>> or <<touching color (#6a6a6a)?> or <touching color (#8a8a8a)?>>> then\n                change y by (1)\n                if <<<touching color (#170000)?> or <touching color (#171717)?>> or <<touching color (#6a6a6a)?> or <touching color (#8a8a8a)?>>> then\n                    change y by (1)\n                end\n                if <<<touching color (#170000)?> or <touching color (#171717)?>> or <<touching color (#6a6a6a)?> or <touching color (#8a8a8a)?>>> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <<<touching color (#170000)?> or <touching color (#171717)?>> or <<touching color (#6a6a6a)?> or <touching color (#8a8a8a)?>>> then\n        change y by (-5)\n        change x by ((Pour aller de GàD ennemi) * (-1))\n        if <(Saut Ennemi) = [1]> then\n            if <(Pour aller de GàD ennemi) > [0]> then\n                set [pour aller de gàd ennemi v] to [-5]\n            else\n                set [pour aller de gàd ennemi v] to [5]\n            end\n            set [pour aller de henb ennemi v] to [10]\n        else\n            set [pour aller de henb ennemi v] to [0]\n        end\n    end\n    change [pour aller de henb ennemi v] by (-1)\n    change y by (Pour aller de HenB ennemi)\n    if <<<touching color (#170000)?> or <touching color (#171717)?>> or <<touching color (#6a6a6a)?> or <touching color (#8a8a8a)?>>> then\n        change y by ((Pour aller de HenB ennemi) * (-1))\n        set [pour aller de henb ennemi v] to [0]\n    end\n    change y by (-1)\n    if <<<touching color (#170000)?> or <touching color (#171717)?>> or <<touching color (#6a6a6a)?> or <touching color (#8a8a8a)?>>> then\n        if <(Saut Ennemi) = [1]> then\n            set [pour aller de henb ennemi v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    set [ennemi gd v] to (pick random (0) to (1))\n    wait (pick random (0.5) to (5)) seconds\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    set [saut ennemi v] to [1]\n    wait (0.02) seconds\n    set [saut ennemi v] to [0]\n    wait (pick random (0.0) to (5)) seconds\nend\n\nwhen I receive [mort v]\ngo to x: (0) y: (-110)\n\nwhen flag clicked\nforever\n    if <(Ennemi GD) = [0]> then\n        point in direction (-90)\n    else\n        point in direction (90)\n    end\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    if <(x position) > [235]> then\n        set [ennemi gd v] to [0]\n    end\n    if <[-235] > (x position)> then\n        set [ennemi gd v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(Niveau) = [61]> or <(Niveau) = [62]>> or <<(Niveau) = [63]> or <<(Niveau) = [75]> or <(Niveau) = [80]>>>> then\n        show\n    else\n        hide\n    end\nend\n\n@Annotations\n\nwhen flag clicked\nforever\n    if <(Niveau) > [55]> then\n        switch costume to (a v)\n    else\n        switch costume to (Niveau)\n    end\nend\n\nwhen I receive [go v]\n\nwhen flag clicked\nhide\n\nwhen I receive [message 1 v]\nhide\n\nwhen [a v] key pressed\nif <(Annotations?) = [0]> then\n    set [annotations? v] to [1]\nelse\n    set [annotations? v] to [0]\nend\n\nforever\n    if <(Annotations?) = [0]> then\n        hide\n    else\n        if <(language::translate) = [Français]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\n@Détecteur\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go pour mouvements v]\nset [tomber ? v] to [0]\nif <(Niveau) = [64]> then\n    show\n    go to x: (0) y: (0)\nelse\n    hide\nend\nwait until <touching (cube v)?>\nhide\nset [tomber ? v] to [1]\nbroadcast (TOMBER ! v)\n\n@Déco\n\nwhen flag clicked\nhide\n\nwhen I receive [sproutch ! v]\nshow\n\nwhen I receive [go pour mouvements v]\nhide\n\n@Aspiration\n\nwhen flag clicked\nhide\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go v]\nset [ghost v] effect to (100)\nforever\n    if <<(Niveau) = [72]> and <(Aspiration ?) = [1]>> then\n        switch costume to (costume1 v)\n        point in direction (90)\n        go to x: (36) y: (28)\n        show\n    else\n        if <<(Niveau) = [79]> and <(Aspiration ?) = [1]>> then\n            switch costume to (costume2 v)\n            point in direction (0)\n            go to x: (-105) y: (-15)\n            show\n        else\n            hide\n        end\n    end\nend\n\n@Bouton\n\nwhen flag clicked\nhide\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go v]\nhide\nforever\n    if <(Niveau) = [72]> then\n        go to x: (-115) y: (134)\n        show\n        point in direction (90)\n    else\n        if <(Niveau) = [76]> then\n            go to x: (56) y: (-113)\n            show\n            point in direction (0)\n        else\n            if <(Niveau) = [79]> then\n                go to x: (125) y: (-53)\n                show\n                point in direction (180)\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [go pour mouvements v]\nset [ouvert ? v] to [0]\nif <(Niveau) = [72]> then\n    set [aspiration ? v] to [1]\nelse\n    set [aspiration ? v] to [0]\nend\n\nwhen I receive [go pour mouvements v]\nforever\n    switch costume to (costume1 v)\n    if <touching (cube v)?> then\n        switch costume to (costume2 v)\n        if <(Niveau) = [72]> then\n            if <(Aspiration ?) = [1]> then\n                set [aspiration ? v] to [0]\n            else\n                set [aspiration ? v] to [1]\n            end\n        else\n            if <(Niveau) = [76]> then\n                if <(Ouvert ?) = [1]> then\n                    set [ouvert ? v] to [0]\n                else\n                    set [ouvert ? v] to [1]\n                end\n            else\n                if <(Niveau) = [79]> then\n                    if <(Aspiration ?) = [1]> then\n                        set [aspiration ? v] to [0]\n                    else\n                        set [aspiration ? v] to [1]\n                    end\n                else\n                    hide\n                end\n            end\n        end\n        wait until <not <touching (cube v)?>>\n        wait (0.1) seconds\n    end\nend\n\n@Bulles\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Aspiration ?) = [1]> then\n        if <(Niveau) > [68]> then\n            create clone of (_myself_ v)\n            wait (0.02) seconds\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Niveau) = [72]> then\n        show\n    else\n        if <(Niveau) = [79]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Niveau) = [72]> then\n    set [brightness v] effect to (pick random (-20) to (30))\n    go to x: (pick random (-15) to (10)) y: (-110)\n    set size to (pick random (50) to (120)) %\n    repeat until <touching (_edge_ v)?>\n        change y by (8)\n    end\n    delete this clone\nelse\n    set [brightness v] effect to (pick random (-20) to (30))\n    go to x: (-220) y: (pick random (-48) to (-70))\n    set size to (pick random (50) to (120)) %\n    repeat until <(x position) > [50]>\n        change x by (8)\n    end\n    delete this clone\nend\n\n@Bulles 2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Aspiration ?) = [1]> then\n        if <(Niveau) > [68]> then\n            create clone of (_myself_ v)\n            wait (0.02) seconds\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Niveau) = [72]> then\n        show\n    else\n        if <(Niveau) = [79]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Niveau) = [72]> then\n    set [brightness v] effect to (pick random (-20) to (30))\n    go to x: (pick random (-15) to (10)) y: (-110)\n    set size to (pick random (50) to (120)) %\n    repeat until <touching (_edge_ v)?>\n        change y by (8)\n    end\n    delete this clone\nelse\n    set [brightness v] effect to (pick random (-20) to (30))\n    go to x: (-220) y: (pick random (-48) to (-70))\n    set size to (pick random (50) to (120)) %\n    repeat until <(x position) > [50]>\n        change x by (8)\n    end\n    delete this clone\nend\n\n@Porte\n\nwhen flag clicked\ngo to x: (36) y: (28)\nhide\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go pour mouvements v]\nforever\n    if <(Niveau) = [76]> then\n        if <(Ouvert ?) = [1]> then\n            hide\n        else\n            show\n        end\n    else\n        hide\n    end\nend\n\n@Bouton 2\n\nwhen flag clicked\nhide\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go v]\nhide\nforever\n    if <(Niveau) = [76]> then\n        go to x: (185) y: (-113)\n        show\n        point in direction (-90)\n    else\n        if <(Niveau) = [81]> then\n            go to x: (-20) y: (44)\n            show\n            point in direction (180)\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [go pour mouvements v]\nset [ouvert ? 2 v] to [0]\nforever\n    switch costume to (costume1 v)\n    if <touching (cube v)?> then\n        switch costume to (costume2 v)\n        if <(Niveau) = [76]> then\n            if <(Ouvert ? 2) = [1]> then\n                set [ouvert ? 2 v] to [0]\n            else\n                set [ouvert ? 2 v] to [1]\n            end\n        else\n            if <(Niveau) = [81]> then\n                if <(Ouvert ? 2) = [1]> then\n                    set [ouvert ? 2 v] to [0]\n                else\n                    set [ouvert ? 2 v] to [1]\n                end\n            else\n                hide\n            end\n        end\n        wait until <not <touching (cube v)?>>\n        wait (0.1) seconds\n    end\nend\n\n@Porte 2\n\nwhen flag clicked\nhide\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go pour mouvements v]\nforever\n    if <(Niveau) = [76]> then\n        switch costume to (costume1 v)\n        go to x: (40) y: (22)\n        point in direction (90)\n        if <(Ouvert ? 2) = [1]> then\n            hide\n        else\n            show\n        end\n    else\n        if <(Niveau) = [79]> then\n            switch costume to (costume2 v)\n            go to x: (155) y: (-111)\n            point in direction (0)\n            if <(Ouvert ? 3) = [1]> then\n                hide\n            else\n                show\n            end\n        else\n            if <(Niveau) = [81]> then\n                switch costume to (costume1 v)\n                go to x: (-72) y: (-148)\n                point in direction (90)\n                if <(Ouvert ? 2) = [1]> then\n                    hide\n                else\n                    show\n                end\n            else\n                hide\n            end\n        end\n    end\nend\n\n@Bouton 3\n\nwhen flag clicked\nhide\n\nwhen I receive [message 1 v]\nhide\n\nwhen I receive [go v]\nhide\nforever\n    if <(Niveau) = [79]> then\n        go to x: (-165) y: (-113)\n        show\n        point in direction (0)\n    else\n        hide\n    end\nend\n\nwhen I receive [go pour mouvements v]\nset [ouvert ? 3 v] to [0]\nforever\n    switch costume to (costume1 v)\n    if <touching (cube v)?> then\n        switch costume to (costume2 v)\n        if <(Niveau) = [79]> then\n            set [ouvert ? 3 v] to [1]\n        else\n            hide\n        end\n        wait until <not <touching (cube v)?>>\n        wait (0.8) seconds\n        set [ouvert ? 3 v] to [0]\n    end\nend\n\n
To play without lags : https://turbowarp.org/382352663/\n7th in the french trending (popular games) ! (Record)\n-------------------------------------------------------------------------\nEN : Use the directional arrows.\n        W to show/hide the level number\n        M to return to the main menu\n        S to skip the actual level (but it's not funny)\n=========================================\nFR : Utilise les flèches directionnelles\n        W pour montrer/cacher le numéro de niveau\n        M pour retourner au menu\n        S pour passer le niveau (mais c'est moins drôle)\n        A pour monter/cacher les annotations\n\n                  -- - Pour les unilingues : ---\n        "Play", c'est pour jouer et "Against the watch" \n        c'est contre la montre (il faut aller le plus vite \n        possible).\n\nSorry for the bugs at the level 50...\nDésolé pour les bugs au niveau 50...\n\nJeu original de @LeGnocchi (en cas de remix) : https://scratch.mit.edu/projects/382352663\n\n© 06 avril 2020