Minecraft a dangerous platformer 23 lvl

Instructions:                                      Hey ! \n        A new minecraft platformer with a contest !\n\nArrows keys to move, clik on the ↓ to open and close the shop. Buy a new skin to do the best time and tell me it !\nHave a good game !\n\nUn nouveau Platformer Minecraft avec un concours !\nFlèches ←↑→ pour bouger et click sur la ↓ pour ouvrir et fermer le magasin. Achète de nouveau costume pour faire le meilleure temps et dis moi ton temps ! =D\nAmuse toi bien !

@Stage\n\nwhen I receive [play v]\nwait (2.5) seconds\nforever\n    play sound [Murad - Run \(Inspired By Alan Walker\) NCN Release.mp3 v] until done\nend\n\nwhen flag clicked\nforever\n    if <(niveau) > [12]> then\n        switch backdrop to (arrière plan2 v)\n    else\n        switch backdrop to (arrière plan1 v)\n    end\nend\n\n@terrain\n\nwhen flag clicked\ngo to x: (0) y: (0)\nwait (2.5) seconds\nforever\n    if <(niveau) = [3]> then\n        broadcast (pièce 1 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (2.5) seconds\nshow\nset [niveau v] to [1]\ngo to [back v] layer\nforever\n    switch costume to (niveau)\nend\n\nwhen flag clicked\nwait (2.5) seconds\nforever\n    if <(niveau) = [4]> then\n        broadcast (pièce 2 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [25]> then\n        if <(Your time :) < (☁ World best Time)> then\n            set [☁ world best time v] to (Your time :)\n        end\n    end\nend\n\nwhen [a v] key pressed\ndelete all of [squelette v]\nadd [1] to [squelette v]\n\nwhen flag clicked\nforever\n    if <not <(Magasin ouvert ?) = [1]>> then\n        if <(niveau) = [25]> then\n            show variable [☁ world best time v]\n        else\n            if <(niveau) = [1]> then\n                show variable [☁ world best time v]\n            else\n                hide variable [☁ world best time v]\n            end\n        end\n    else\n        hide variable [☁ world best time v]\n    end\nend\n\nset [niveau v] to [23]\n\nwhen flag clicked\nchange [☁ nombre de parties v] by (1)\n\nwhen [a v] key pressed\nchange [☁ nombre de parties v] by (1)\n\n@danger\n\nwhen flag clicked\nshow\nforever\n    switch costume to (niveau)\n    go to [back v] layer\nend\n\nwhen flag clicked\nshow\ngo to [back v] layer\nforever\n    set [ghost v] effect to (0)\n    set size to (100) %\n    go to x: (0) y: (0)\n    repeat (40)\n        change x by (0.5)\n    end\n    repeat (40)\n        change x by (-0.5)\n    end\nend\n\nset [niveau v] to [16]\n\nset [pixelate v] effect to (20)\n\n@skip\n\nwhen flag clicked\nset [niveau v] to [1]\nforever\n    go to [front v] layer\n    set size to (100) %\n    if <touching (mouse-pointer v)?> then\n        change size by (10)\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            change [effacer v] by (1)\n            wait (0.3) seconds\n            set [effacer v] to [0]\n        end\n    end\nend\n\nwhen I receive [respawn v]\nif <(niveau) = [8]> then\n    stop [other scripts in sprite v]\n    forever\n        go to [front v] layer\n        point in direction (90)\n        switch costume to (costume1 v)\n        repeat (10)\n            turn right (0.5) degrees\n        end\n        repeat (20)\n            turn left (0.5) degrees\n        end\n        repeat (10)\n            turn right (0.5) degrees\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait (1) seconds\nshow\nforever\n    go [forward v] (50) layers\n    go to [front v] layer\nend\n\nwhen flag clicked\nwait (2.5) seconds\nshow\ngo to x: (-193) y: (156)\npoint in direction (90)\ngo to [front v] layer\nforever\n    repeat (20)\n        turn right (0.5) degrees\n    end\n    repeat (40)\n        turn left (0.5) degrees\n    end\n    repeat (20)\n        turn right (0.5) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <[1] = (Magasin ouvert ?)> then\n        hide\n        hide variable [niveau v]\n    else\n        show\n        show variable [niveau v]\n    end\nend\n\n@wather\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (25)\nforever\n    set [fisheye v] effect to (([sin v] of ((timer) * (100)) ) * (30))\n    set [whirl v] effect to (([sin v] of ((timer) * (75)) ) * (30))\nend\n\nwhen flag clicked\nset [niveau v] to [1]\ngo to [front v] layer\nforever\n    switch costume to (niveau)\nend\n\nwhen flag clicked\nforever\n    if <[7] = (niveau)> then\n        show\n        go to x: (0) y: (-350)\n        repeat until <not <(niveau) = [7]>>\n            change y by (0.3)\n        end\n        hide\n    end\n    if <[10] = (niveau)> then\n        show\n        go to x: (0) y: (-350)\n        repeat until <not <(niveau) = [10]>>\n            change y by (0.3)\n        end\n        hide\n    end\n    if <[17] = (niveau)> then\n        show\n        go to x: (0) y: (-350)\n        repeat until <not <(niveau) = [17]>>\n            change y by (0.3)\n        end\n        hide\n    end\n    if <[19] = (niveau)> then\n        show\n        go to x: (0) y: (-350)\n        repeat until <not <(niveau) = [19]>>\n            change y by (0.3)\n        end\n        hide\n    end\nend\n\nwhen I receive [recommence v]\ngo to x: (0) y: (-350)\n\n@player\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (25)\n    change size by (-6)\n    switch costume to (costume2 v)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [recommence v]\ngo to x: (-207) y: (-50)\nset [x v] to [0]\nset [y v] to [0]\n\ndefine spécial détéction\nif <touching (trampoline v)?> then\n    change [y v] by (pick random (10) to (15))\nend\n\nwhen flag clicked\nforever\n    spécial détéction\nend\n\nwhen flag clicked\nforever\n    spécial death\nend\n\ndefine spécial death\nif <touching (laser2 v)?> then\n    repeat (10)\n        change [ghost v] effect by (8)\n    end\n    go to x: (-207) y: (-39)\n    broadcast (Recommence v)\n    repeat (10)\n        change [ghost v] effect by (-8)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait (2.5) seconds\nset size to (75) %\nswitch costume to (normal v)\ngo to [back v] layer\npoint in direction (90)\nset [yy v] to [15]\nset [xx -90 v] to [-1]\nset [xx 90 v] to [1]\ngo to [front v] layer\nshow\ngo to x: (-207) y: (-50)\nforever\n    go to [front v] layer\n    set [x v] to [0]\n    set [y v] to [0]\n    forever\n        change [y v] by (-1)\n        set [x v] to ((x) * (0.9))\n        if <key (right arrow v) pressed?> then\n            set [direction flèche v] to [1]\n            set [orientation  de player v] to [a droite]\n            change [x v] by (Xx 90)\n        end\n        if <key (left arrow v) pressed?> then\n            set [direction flèche v] to [0]\n            set [orientation  de player v] to [a gauche]\n            change [x v] by (Xx -90)\n        end\n        change x by (x)\n        if <<touching (terrain v)?> or <touching (bloc minecraft v)?>> then\n            change y by (1)\n        end\n        if <<touching (terrain v)?> or <touching (bloc minecraft v)?>> then\n            change y by (1)\n        end\n        if <<touching (terrain v)?> or <touching (bloc minecraft v)?>> then\n            change y by (1)\n        end\n        if <<touching (terrain v)?> or <touching (bloc minecraft v)?>> then\n            change y by (1)\n        end\n        if <<touching (terrain v)?> or <touching (bloc minecraft v)?>> then\n            change y by (-4)\n            change x by ((x) * (-1))\n            if <key (up arrow v) pressed?> then\n                set [y v] to [10]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-4]\n                else\n                    set [x v] to [4]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n        change y by (y)\n        if <<touching (terrain v)?> or <touching (bloc minecraft v)?>> then\n            change y by ((y) - ((y) * (2)))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <<key (up arrow v) pressed?> and <<touching (terrain v)?> or <touching (bloc minecraft v)?>>> then\n            change [y v] by (Yy)\n        end\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        repeat (10)\n            turn right (6) degrees\n        end\n        repeat (10)\n            turn right (3) degrees\n        end\n    end\nend\n\nwhen flag clicked\nset [magasin ouvert ? v] to [0]\ndelete all of [squelette v]\nadd [1] to [squelette v]\nforever\n    if <[200] < (x position)> then\n        change [niveau v] by (1)\n        go to x: (-207) y: (-39)\n        broadcast (Recommence v)\n        wait (1) seconds\n        add (niveau) to [squelette v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (n v) pressed?> and <[personnages v] contains [N]?>> then\n        switch costume to (normal v)\n    end\n    if <<key (p v) pressed?> and <[personnages v] contains [P]?>> then\n        switch costume to (perceval v)\n    end\n    if <<key (l v) pressed?> and <[personnages v] contains [L]?>> then\n        switch costume to (lily v)\n    end\n    if <<key (w v) pressed?> and <[personnages v] contains [W]?>> then\n        switch costume to (who v)\n    end\n    if <<key (r v) pressed?> and <[personnages v] contains [R]?>> then\n        switch costume to (robin v)\n    end\n    if <<key (z v) pressed?> and <[personnages v] contains [Z]?>> then\n        switch costume to (zeus v)\n    end\n    if <<key (g v) pressed?> and <[personnages v] contains [G]?>> then\n        switch costume to (gaïa v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<([costume name v] of [player v]) = [Who]> or <([costume name v] of [player v]) = [Lily]>> then\n        set [xx -90 v] to [-1.5]\n        set [xx 90 v] to [1.5]\n    else\n        if <<([costume name v] of [player v]) = [Robin]> or <([costume name v] of [player v]) = [Zeus]>> then\n            set [xx -90 v] to [-1.7]\n            set [xx 90 v] to [1.7]\n        else\n            if <([costume name v] of [player v]) = [Gaïa]> then\n                set [xx -90 v] to [-2.2]\n                set [xx 90 v] to [2.2]\n            else\n                set [xx -90 v] to [-1]\n                set [xx 90 v] to [1]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume name v] of [player v]) = [Perceval]> then\n        set [yy v] to [16]\n    else\n        if <([costume name v] of [player v]) = [Zeus]> then\n            set [yy v] to [18]\n        else\n            if <([costume name v] of [player v]) = [Gaïa]> then\n                set [yy v] to [19]\n            else\n                set [yy v] to [15]\n            end\n        end\n    end\nend\n\nwhen I receive [recommence v]\nif <<([costume name v] of [player v]) = [Robin]> or <([costume name v] of [player v]) = [Who]>> then\n    set [vies ? v] to [1]\nelse\n    if <([costume name v] of [player v]) = [Zeus]> then\n        set [vies ? v] to [2]\n    else\n        if <([costume name v] of [player v]) = [Gaïa]> then\n            set [vies ? v] to [100000000]\n        else\n            set [vies ? v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Vies ?) < [0]> then\n        repeat (10)\n            change [ghost v] effect by (8)\n        end\n        go to x: (-207) y: (-39)\n        broadcast (Recommence v)\n        repeat (10)\n            change [ghost v] effect by (-8)\n        end\n    end\nend\n\nwhen I receive [pause v]\nset [pause v] to [1]\nrepeat (7)\n    set [ghost v] effect to (70)\n    wait (0.5) seconds\n    set [ghost v] effect to (10)\nend\nrepeat (5)\n    set [ghost v] effect to (70)\n    wait (0.1) seconds\n    set [ghost v] effect to (10)\nend\nset [ghost v] effect to (0)\nset [pause v] to [0]\n\nwhen flag clicked\nforever\n    if <not <(Pause) = [1]>> then\n        if <<<touching (danger v)?> or <<touching (squelette v)?> or <<touching (piques v)?> or <touching (wather v)?>>>> or <touching (lave v)?>> then\n            change [vies ? v] by (-1)\n            if <not <[1] > (Vies ?)>> then\n                broadcast (Pause v)\n            end\n            wait (1) seconds\n        end\n    end\nend\n\n@Bloc minecraft\n\nwhen flag clicked\nhide\nset size to (17) %\nforever\n    go to x: (mouse x) y: (mouse y)\n    if <mouse down?> then\n        create clone of (_myself_ v)\n        change [score v] by (1)\n        change [nb de blocs v] by (1)\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen I start as a clone\nshow\nset [niveau bloc v] to (niveau)\nrepeat until <<(Effacer) = [1]> or <<<not <(Niveau bloc) = (niveau)>> or <touching (danger v)?>> or <touching (piques v)?>>>\ndelete this clone\n\n@texte\n\nwhen flag clicked\nset [score v] to [0]\ngo to x: (36) y: (28)\ngo to [back v] layer\nforever\n    switch costume to (niveau)\nend\n\nwhen flag clicked\nset [your time : v] to [0]\nset [pièces v] to [0]\nforever\n    if <(niveau) = [1]> then\n        repeat until <(niveau) = [25]>\n            wait (1) seconds\n            change [your time : v] by (1)\n        end\n    end\nend\n\nwhen flag clicked\nhide variable [your time : v]\nforever\n    if <not <(Magasin ouvert ?) = [1]>> then\n        if <(niveau) = [25]> then\n            show variable [your time : v]\n        end\n    else\n        hide variable [your time : v]\n    end\nend\n\n@pointeur\n\nwhen flag clicked\nset size to (17) %\nforever\n    go to x: (mouse x) y: (mouse y)\nend\n\n@lave\n\nwhen flag clicked\nhide\nset size to (75) %\nforever\n    wait (2) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (pick random (-240) to (240)) y: (170)\nrepeat until <<touching (terrain v)?> or <touching (bloc minecraft v)?>>\n    change y by (-3)\nend\ngo to [back v] layer\nrepeat (100)\n    change [ghost v] effect by (1)\n    change y by (-0.5)\nend\ndelete this clone\n\nwhen I receive [recommence v]\nset [effacer lave v] to [1]\nwait (0.2) seconds\nset [effacer lave v] to [0]\n\nwhen I start as a clone\nforever\n    if <(effacer lave) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(niveau) = [21]> then\n        show\n    else\n        if <(niveau) = [23]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\n@Sprite1\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\n@Squelette\n\nwhen flag clicked\nset [squelette v] to [0]\nshow\nset size to (100) %\ngo to x: (0) y: (0)\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <[1] = (Squelette)> then\n        clear graphic effects\n        repeat (20)\n            change [pixelate v] effect by (5)\n            change [ghost v] effect by (5)\n        end\n        hide\n        wait until <not <[1] = (Squelette)>>\n    else\n        clear graphic effects\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <[squelette v] contains (niveau)?>> then\n        set [squelette v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (20)\n        change y by (0.4)\n    end\n    repeat (4)\n        switch costume to (2 v)\n        wait (1) seconds\n        switch costume to (1 v)\n        wait (1) seconds\n        switch costume to (3 v)\n        wait (1) seconds\n        switch costume to (1 v)\n    end\n    repeat (20)\n        change y by (-0.4)\n    end\n    repeat (4)\n        switch costume to (2 v)\n        wait (1) seconds\n        switch costume to (1 v)\n        wait (1) seconds\n        switch costume to (3 v)\n        wait (1) seconds\n        switch costume to (1 v)\n    end\nend\n\nwhen flag clicked\nwait (2.5) seconds\nforever\n    if <(niveau) = [1]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [2]> then\n        show\n        go to x: (0) y: (0)\n        wait until <not <(niveau) = [2]>>\n    end\n    if <(niveau) = [3]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [4]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [5]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [6]> then\n        show\n        go to x: (0) y: (0)\n        wait until <not <(niveau) = [6]>>\n    end\n    if <(niveau) = [7]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [8]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [9]> then\n        show\n        go to x: (0) y: (0)\n        wait until <not <(niveau) = [9]>>\n    end\n    if <(niveau) = [10]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [11]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [12]> then\n        show\n        go to x: (0) y: (-10)\n        wait until <not <(niveau) = [12]>>\n    end\n    if <(niveau) = [13]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [14]> then\n        show\n        go to x: (60) y: (-10)\n        wait until <not <(niveau) = [14]>>\n    end\n    if <(niveau) = [15]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [16]> then\n        show\n        go to x: (95) y: (25)\n        wait until <not <(niveau) = [16]>>\n    end\n    if <(niveau) = [17]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [18]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [20]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [21]> then\n        show\n        go to x: (20) y: (0)\n        wait until <not <(niveau) = [21]>>\n    end\n    if <(niveau) = [22]> then\n        show\n        go to x: (-10) y: (150)\n        wait until <not <(niveau) = [22]>>\n    end\n    if <(niveau) = [23]> then\n        hide\n        go to x: (0) y: (0)\n    end\n    if <(niveau) = [24]> then\n        show\n        go to x: (0) y: (100)\n        wait until <not <(niveau) = [24]>>\n    end\n    if <(niveau) = [25]> then\n        hide\n        go to x: (0) y: (0)\n    end\nend\n\n@Flèche\n\nwhen flag clicked\nhide\nforever\n    if <key (space v) pressed?> then\n        repeat until <<(Distance flèche) < [1]> or <not <key (space v) pressed?>>>\n            change [distance flèche v] by (-0.2)\n        end\n        create clone of (_myself_ v)\n        if <<([costume name v] of [player v]) = [Gaïa]> or <<([costume name v] of [player v]) = [Perceval]> or <([costume name v] of [player v]) = [Lily]>>> then\n            wait (0.3) seconds\n        else\n            wait (1) seconds\n        end\n        set [distance flèche v] to [8]\n    end\nend\n\nwhen I start as a clone\nif <(Direction flèche) = [1]> then\n    set [flèche v] to [45]\nelse\n    set [flèche v] to [-45]\n    set [distance flèche v] to (join [-] (Distance flèche))\nend\nshow\ngo to (player v)\nrepeat (100)\n    point in direction (Flèche)\n    move (10) steps\n    change [flèche v] by (Distance flèche)\n    if <[179] < (Flèche)> then\n        repeat until <<<touching (squelette v)?> or <touching (_edge_ v)?>> or <touching (terrain v)?>>\n            move (10) steps\n        end\n        if <touching (_edge_ v)?> then\n            delete this clone\n        end\n        if <touching (terrain v)?> then\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n        end\n        if <touching (squelette v)?> then\n            set [squelette v] to [1]\n            delete this clone\n        end\n    end\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\n    if <touching (terrain v)?> then\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        delete this clone\n    end\n    if <touching (squelette v)?> then\n        set [squelette v] to [1]\n        delete this clone\n    end\nend\n\n@Piques\n\nwhen flag clicked\nshow\nforever\n    go to x: (0) y: (0)\n    set [pixelate v] effect to (50)\n    go to [back v] layer\n    switch costume to (niveau)\nend\n\nwhen flag clicked\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    hide\n    if <<key (a v) pressed?> and <(Magasin ouvert ?) = [0]>> then\n        go to x: (0) y: (0)\n        show variable [your time : v]\n        wait (1) seconds\n        set [niveau v] to [1]\n        set [your time : v] to [0]\n        wait (1) seconds\n        hide variable [your time : v]\n    end\nend\n\n@Pièce\n\nwhen flag clicked\nforever\n    next costume\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    repeat (20)\n        change y by (0.2)\n    end\n    repeat (20)\n        change y by (-0.2)\n    end\nend\n\ndefine Montrer ? (x) (y)\nshow\ngo to x: (x) y: (y)\n\nwhen flag clicked\nforever\n    if <(niveau) = [1]> then\n        Montrer ? [0] [-60]\n        wait until <not <(niveau) = [1]>>\n    end\n    if <(niveau) = [2]> then\n        Montrer ? [30] [130]\n        wait until <not <(niveau) = [2]>>\n    end\n    if <(niveau) = [3]> then\n        Montrer ? [-200] [110]\n        wait until <not <(niveau) = [3]>>\n    end\n    if <(niveau) = [4]> then\n        Montrer ? [-70] [20]\n        wait until <not <(niveau) = [4]>>\n    end\n    if <(niveau) = [5]> then\n        Montrer ? [-50] [130]\n        wait until <not <(niveau) = [5]>>\n    end\n    if <(niveau) = [7]> then\n        Montrer ? [57] [-50]\n        wait until <not <(niveau) = [7]>>\n    end\n    if <(niveau) = [8]> then\n        Montrer ? [180] [125]\n        wait until <not <(niveau) = [8]>>\n    end\n    if <(niveau) = [9]> then\n        Montrer ? [15] [-60]\n        wait until <not <(niveau) = [9]>>\n    end\n    if <(niveau) = [10]> then\n        Montrer ? [100] [110]\n        wait until <not <(niveau) = [10]>>\n    end\n    if <(niveau) = [11]> then\n        Montrer ? [-47] [-40]\n        wait until <not <(niveau) = [11]>>\n    end\n    if <(niveau) = [12]> then\n        Montrer ? [200] [-90]\n        wait until <not <(niveau) = [12]>>\n    end\n    if <(niveau) = [13]> then\n        Montrer ? [150] [80]\n        wait until <not <(niveau) = [13]>>\n    end\n    if <(niveau) = [14]> then\n        Montrer ? [83] [-60]\n        wait until <not <(niveau) = [14]>>\n    end\n    if <(niveau) = [16]> then\n        Montrer ? [116] [-60]\n        wait until <not <(niveau) = [16]>>\n    end\n    if <(niveau) = [17]> then\n        Montrer ? [0] [60]\n        wait until <not <(niveau) = [17]>>\n    end\n    if <(niveau) = [20]> then\n        Montrer ? [20] [80]\n        wait until <not <(niveau) = [20]>>\n    end\n    if <(niveau) = [22]> then\n        Montrer ? [10] [80]\n        wait until <not <(niveau) = [22]>>\n    end\n    if <(niveau) = [24]> then\n        Montrer ? [20] [40]\n        wait until <not <(niveau) = [24]>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        hide\n        play sound [Coin v] until done\n        change [pièces v] by (10)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nset [niveau v] to [22]\n\n@Magasin minecraft\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [ghost v] effect to (100)\nforever\n    if <key (down arrow v) pressed?> then\n        show\n        wait until <not <key (down arrow v) pressed?>>\n        set [magasin ouvert ? v] to [1]\n        repeat (25)\n            change [ghost v] effect by (-4)\n        end\n        wait until <key (down arrow v) pressed?>\n        repeat (25)\n            change [ghost v] effect by (4)\n        end\n        set [magasin ouvert ? v] to [0]\n        set [ghost v] effect to (100)\n        hide\n    end\nend\n\nwhen flag clicked\nwait (3) seconds\ngo to [front v] layer\n\nwhen flag clicked\ndelete all of [personnages v]\nadd [N] to [personnages v]\nforever\n    if <(Magasin ouvert ?) = [1]> then\n        if <<<key (p v) pressed?> and <<[50] < (Pièces)> or <(Pièces) = [50]>>> and <not <[personnages v] contains [P]?>>> then\n            broadcast (P v)\n            add [P] to [personnages v]\n            wait until <not <key (p v) pressed?>>\n            change [pièces v] by (-50)\n            change [☁ dépenses totales v] by (50)\n        end\n        if <<<key (l v) pressed?> and <<[100] < (Pièces)> or <(Pièces) = [100]>>> and <not <[personnages v] contains [L]?>>> then\n            broadcast (L v)\n            add [L] to [personnages v]\n            wait until <not <key (l v) pressed?>>\n            change [pièces v] by (-100)\n            change [☁ dépenses totales v] by (100)\n        end\n        if <<<key (w v) pressed?> and <<[150] < (Pièces)> or <(Pièces) = [150]>>> and <not <[personnages v] contains [W]?>>> then\n            broadcast (W v)\n            add [W] to [personnages v]\n            wait until <not <key (w v) pressed?>>\n            change [pièces v] by (-150)\n            change [☁ dépenses totales v] by (150)\n        end\n        if <<<key (r v) pressed?> and <<[200] < (Pièces)> or <(Pièces) = [200]>>> and <not <[personnages v] contains [R]?>>> then\n            broadcast (R v)\n            add [R] to [personnages v]\n            wait until <not <key (r v) pressed?>>\n            change [pièces v] by (-200)\n            change [☁ dépenses totales v] by (200)\n        end\n        if <<<key (z v) pressed?> and <<[350] < (Pièces)> or <(Pièces) = [350]>>> and <not <[personnages v] contains [Z]?>>> then\n            broadcast (Z v)\n            add [Z] to [personnages v]\n            wait until <not <key (z v) pressed?>>\n            change [pièces v] by (-350)\n            change [☁ dépenses totales v] by (350)\n        end\n        if <<<key (g v) pressed?> and <<[600] < (Pièces)> or <(Pièces) = [600]>>> and <not <[personnages v] contains [G]?>>> then\n            broadcast (G v)\n            add [G] to [personnages v]\n            wait until <not <key (g v) pressed?>>\n            change [pièces v] by (-600)\n            change [☁ dépenses totales v] by (600)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Magasin ouvert ?) = [1]> then\n        if <<key (p v) pressed?> and <(Pièces) < [50]>> then\n            broadcast (Manque de sous v)\n        end\n        if <<key (l v) pressed?> and <(Pièces) < [100]>> then\n            broadcast (Manque de sous v)\n        end\n        if <<key (w v) pressed?> and <(Pièces) < [150]>> then\n            broadcast (Manque de sous v)\n        end\n        if <<key (r v) pressed?> and <(Pièces) < [200]>> then\n            broadcast (Manque de sous v)\n        end\n        if <<key (z v) pressed?> and <(Pièces) < [350]>> then\n            broadcast (Manque de sous v)\n        end\n        if <<key (g v) pressed?> and <(Pièces) < [600]>> then\n            broadcast (Manque de sous v)\n        end\n    end\nend\n\nwhen [b v] key pressed\nshow variable [☁ nombre de parties v]\nshow variable [☁ dépenses totales v]\nwait until <not <key (b v) pressed?>>\nhide variable [☁ nombre de parties v]\nhide variable [☁ dépenses totales v]\n\n@Achté objet\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [p v]\ngo to x: (0) y: (0)\nswitch costume to (perceval acheté v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3) seconds\nrepeat (50)\n    change y by (1)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen I receive [l v]\ngo to x: (0) y: (0)\nswitch costume to (lily acheté v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3) seconds\nrepeat (50)\n    change y by (1)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen I receive [w v]\ngo to x: (0) y: (0)\nswitch costume to (who acheté v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3) seconds\nrepeat (50)\n    change y by (1)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen I receive [z v]\ngo to x: (0) y: (0)\nswitch costume to (zeus acheté v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3) seconds\nrepeat (50)\n    change y by (1)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen I receive [g v]\ngo to x: (0) y: (0)\nswitch costume to (gaïa acheté v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3) seconds\nrepeat (50)\n    change y by (1)\n    change [ghost v] effect by (2)\nend\nhide\n\nset [pièces v] to [1300]\n\nwhen I receive [r v]\ngo to x: (0) y: (0)\nswitch costume to (robin acheté v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3) seconds\nrepeat (50)\n    change y by (1)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen I receive [manque de sous v]\ngo to x: (0) y: (0)\nswitch costume to (manque d'argent v)\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3) seconds\nrepeat (50)\n    change y by (1)\n    change [ghost v] effect by (2)\nend\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    if <<(Magasin ouvert ?) = [1]> and <<<(mouse x) < [-105]> and <(mouse x) > [-190]>> and <<(mouse y) < [120]> and <(mouse y) > [15]>>>> then\n        switch costume to (perceval v)\n        show\n        go to [front v] layer\n    else\n        if <<(Magasin ouvert ?) = [1]> and <<<(mouse x) < [20]> and <(mouse x) > [-30]>> and <<(mouse y) < [120]> and <(mouse y) > [15]>>>> then\n            switch costume to (lily v)\n            show\n            go to [front v] layer\n        else\n            if <<(Magasin ouvert ?) = [1]> and <<<(mouse x) < [163]> and <(mouse x) > [115]>> and <<(mouse y) < [120]> and <(mouse y) > [15]>>>> then\n                switch costume to (who v)\n                show\n                go to [front v] layer\n            else\n                if <<(Magasin ouvert ?) = [1]> and <<<(mouse x) < [-105]> and <(mouse x) > [-190]>> and <<(mouse y) < [-15]> and <(mouse y) > [-130]>>>> then\n                    switch costume to (robin v)\n                    show\n                    go to [front v] layer\n                else\n                    if <<(Magasin ouvert ?) = [1]> and <<<(mouse x) < [20]> and <(mouse x) > [-30]>> and <<(mouse y) < [-15]> and <(mouse y) > [-130]>>>> then\n                        switch costume to (zeus v)\n                        show\n                        go to [front v] layer\n                    else\n                        if <<(Magasin ouvert ?) = [1]> and <<<(mouse x) < [163]> and <(mouse x) > [115]>> and <<(mouse y) < [-15]> and <(mouse y) > [-130]>>>> then\n                            switch costume to (gaïa v)\n                            show\n                            go to [front v] layer\n                        else\n                            go to [front v] layer\n                            hide\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [souris x v] to (mouse x)\n    set [souris y v] to (mouse y)\n    go to (mouse-pointer v)\nend\n\nwhen flag clicked\nforever\n    play sound [alan-walker-remix-edm-gaming-mix-minecraft-animation-music-video3 v] until done\nend\n\nset [niveau v] to [25]\n\n