Falling - A scrolling Platformer 

Instructions: ------------------------------Instruction-----------------------------\nFrancais/english\n\nFrancais:\nma chaine youtube:https://www.youtube.com/channel/UCMZiOWuAG3q7nvwWJJusufg\n\nAttention c'est très difficile!                                   utilisez les flèches pour vous déplacer.\nVous devez récupérer le maximum de pièce tout en allant au bout du parcour.\n\nMerci à:\nMerci à @Mathias1706 pour les boutons;Play,shop des cadenas et les plateformes!Merci!\nMerci à @haniamatuzsky pour l'idée des slimes!\nMerci à @-dove- pour les nuages et les effets!\n\nLes musiques:Vexento Never give up\nLe game over est de kirby \n\nN'hésitez pas à likez et à vous abonnez!\n\nEnglish:\nMy youtube channel:youtube:https://www.youtube.com/channel/UCMZiOWuAG3q7nvwWJJusufg\n\nWarning!It's extremely difficult!\n\nuse the arrows to move.\nYou must recover the maximum amount of money while going to the end of the journey.\n\nThanks to:\nThanks to @ Mathias1706 for the buttons; Play, padlock and the platform!thanks!\nThanks to @haniamatuzsky for the idea of ​​slimes!\nThanks to @ -dove- for the clouds and the effects!\n\nThe music: Vexento Never give up\nThe game over is kirby\n\nFeel free to like and subscribe!\nfollow me,@cassandraflo,@petitemesange,@aigledor,@LeGnocchi,@jujulescratcheur,@lestrucsrandomdejuju

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    set [brightness v] effect to (10)\nend\n\nwhen I receive [game over v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nforever\n    if <(life) = [0]> then\n        broadcast (GAME OVER v)\n        wait (6) seconds\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen I receive [menu v]\nswitch backdrop to (backdrop1 v)\nwait (0.6) seconds\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [shop v]\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nset [life v] to [3]\n\n@Sprite2\n\nwhen flag clicked\nshow\nwait (0.5) seconds\nforever\n    set size to (100) %\n    point in direction ((90) + (([cos v] of ((timer) * (130)) ) * (2)))\nend\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (36) y: (131)\nglide (0.5) secs to x: (36) y: (31)\n\nwhen flag clicked\nforever\n    if <(life) = [0]> then\n        set volume to (0) %\n        wait (6) seconds\n        set volume to (100) %\n    end\nend\n\nwhen I receive [start v]\nhide\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [choix du chop:power ups,skin v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [menu v]\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nshow\npoint in direction (90)\ngo to x: (36) y: (131)\nglide (0.5) secs to x: (36) y: (31)\nwait (3) seconds\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [Vexento - Never Give Up v] until done\nend\n\nset [money v] to [1000]\n\nwhen flag clicked\n\n@slime_boutique rouge\n\nwhen I receive [shop v]\nset [ghost v] effect to (0)\nshow\nset size to (300) %\ngo to x: (189) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Clouds\n\nwhen I start as a clone\nshow\nset [yv2 v] to [0]\nshow\nset size to (100) %\nset [ghost v] effect to (pick random (30) to (70))\nswitch costume to (pick random (1) to (3))\nshow\nshow\ngo to x: (-150) y: (pick random (100) to (175))\nchange [clones v] by (1)\nset [x v] to ((x position) + (SCROLL X))\nset [y v] to ((y position) + (SCROLL Y))\nset [bg effects: xv v] to (pick random (1) to (2))\nset [yv2 v] to [0]\nrepeat until <(x) > [1999]>\n    go to x: ((x) + ((0) - (SCROLL X))) y: ((y) + ((0) - (SCROLL Y)))\n    change [x v] by (BG Effects: Xv)\n    change [y v] by (Yv2)\n    if <<(x position) > [290]> or <(x position) < [-290]>> then\n        hide\n    else\n        show\n    end\nend\nchange [clones v] by (-1)\ndelete this clone\n\ndefine Clone (#)\nrepeat (#)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nset [clones v] to [0]\nClone [1]\nforever\n    wait (pick random (7) to (10)) seconds\n    Clone [1]\nend\n\n@particle\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (50)\nswitch costume to (pick random (1) to (3))\ngo to x: (pick random (-260) to (260)) y: (100000)\nshow\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    turn right (5) degrees\n    change y by (-1)\n    if <(y position) < [-150]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\nhide\nset size to (150) %\nforever\n    wait (0.4) seconds\n    create clone of (_myself_ v)\nend\n\n@Sprite3\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\ngo to x: (-113) y: (-75)\nset size to (90) %\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (Start v)\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            hide\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [choix du chop:power ups,skin v]\nhide\ngo to x: (-113) y: (400)\nrepeat (20)\n    change [ghost v] effect by (6)\nend\n\nwhen I receive [start v]\nhide\ngo to x: (-113) y: (400)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [menu v]\nshow\ngo to x: (-113) y: (-75)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\n@Sprite4\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to x: (108) y: (-75)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (choix du chop:power ups,skin v)\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            hide\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [start v]\nhide\ngo to x: (-209) y: (400)\nrepeat (20)\n    change [ghost v] effect by (6)\nend\n\nwhen I receive [shop v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [menu v]\nshow\ngo to x: (108) y: (-75)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [choix du chop:power ups,skin v]\nhide\ngo to x: (-209) y: (400)\nrepeat (20)\n    change [ghost v] effect by (6)\nend\n\nset [money v] to [50]\n\n@slime_boutique violet\n\nwhen flag clicked\nhide\n\nwhen I receive [shop v]\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\ngo to x: (-65) y: (0)\nset size to (300) %\n\nwhen I receive [menu v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@slime boutique rose\n\nwhen flag clicked\nhide\n\nwhen I receive [shop v]\nset [ghost v] effect to (0)\ngo to x: (64) y: (0)\nshow\nset size to (300) %\n\nwhen I receive [menu v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@slime boutique blanc\n\nwhen I receive [shop v]\nset [ghost v] effect to (0)\ngo to x: (-190) y: (0)\nset size to (300) %\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [shop v]\nshow\ngo to x: (-203) y: (153)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (choix du chop:power ups,skin v)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [menu v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nshow\n\nwhen I receive [start v]\ngo to x: (-209) y: (-141)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (MENU v)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (999) layers\nend\n\nwhen I receive [choix du chop:power ups,skin v]\n\nshow\ngo to x: (-203) y: (153)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (MENU v)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [power-ups v]\nshow\ngo to x: (-203) y: (153)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (choix du chop:power ups,skin v)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [choix du chop:power ups,skin v]\ngo to x: (400) y: (400)\nhide\n\n@Sprite7\n\nwhen flag clicked\ngo to x: (-185) y: (-54)\nhide\n\nwhen I receive [shop v]\nwait (0.2) seconds\ngo to x: (-185) y: (-54)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [menu v]\ngo to x: (190) y: (400)\nhide\n\nwhen I receive [shop v]\nwait (0.2) seconds\ngo to x: (-185) y: (-54)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [shop v]\ngo to x: (-185) y: (-54)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [costume v] to [1]\n        play sound [pop v] until done\n        wait (5) seconds\n    end\nend\n\n@Sprite8\n\nwhen flag clicked\ngo to x: (-62) y: (3)\nhide\n\nwhen I receive [shop v]\nif <not <(SLIME VIOLET) = [1]>> then\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    forever\n        if <(SLIME VIOLET) = [1]> then\n            hide\n        else\n            show\n        end\n    end\nend\n\nwhen I receive [menu v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [achat slime violet v]\nhide\ngo to x: (500) y: (500)\nstop [other scripts in sprite v]\nstop [this script v]\n\nset [money v] to [1000]\n\n@Sprite9\n\nwhen I receive [achat slime violet v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            set [costume v] to [2]\n        else\n            set [costume v] to (costume)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\ngo to x: (-57) y: (-54)\nhide\n\nwhen I receive [shop v]\nwait (0.2) seconds\ngo to x: (-57) y: (-54)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [shop v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            if <(costume [number v]) = [1]> then\n                if <(Money) > [49]> then\n                    broadcast (achat slime violet v)\n                    set [slime violet v] to [1]\n                    switch costume to (choose buton2 v)\n                    start sound [pop v]\n                    set [costume v] to [2]\n                    wait (2) seconds\n                else\n                    broadcast (pas assez d'argent v)\n                end\n            end\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [menu v]\ngo to x: (-57) y: (400)\nhide\n\nwhen flag clicked\nswitch costume to (choose buton v)\nset [money v] to [0]\n\nwhen I receive [achat slime violet v]\nset [money v] to ((Money) - (50))\n\nwhen I receive [shop v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        play sound [pop v] until done\n        wait (5) seconds\n    end\nend\n\nset [money v] to [10000]\n\n@Sprite11\n\nwhen flag clicked\nset [slime violet v] to [0]\nset [slime rose v] to [0]\ngo to x: (68) y: (2)\nhide\n\nwhen I receive [shop v]\nif <not <(Achat slime rose) = [1]>> then\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    forever\n        if <(SLIME ROSE) = [1]> then\n            hide\n            stop [other scripts in sprite v]\n            stop [this script v]\n        else\n            show\n        end\n    end\nend\n\nwhen I receive [menu v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen flag clicked\nset [achat slime rose v] to [0]\n\n@Sprite12\n\nwhen I receive [pas assez d'argent v]\nrepeat (3)\n    show\n    wait (0.5) seconds\n    hide\n    wait (0.5) seconds\nend\n\nwhen I receive [shop v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite13\n\nwhen flag clicked\nset [slime violet v] to [0]\nset [slime rose v] to [0]\nset [slime rouge v] to [0]\ngo to x: (194) y: (1)\nhide\n\nwhen I receive [shop v]\nif <not <(Achat slime rouge) = [1]>> then\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    set [ghost v] effect to (0)\n    forever\n        if <(SLIME ROUGE) = [1]> then\n            hide\n        else\n            show\n        end\n    end\nend\n\nwhen I receive [menu v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen flag clicked\nset [slime rouge v] to [0]\nset [achat slime rouge v] to [0]\n\nset [money v] to [1000]\n\n@slime principal \n\ndefine Platformer\nif <(START) = [1]> then\n    switch costume to (hitbox v)\n    change [player sy v] by (-1)\n    change [falling v] by (1)\n    change y by (Player sy)\n    Go up\n    controls <key (right arrow v) pressed?> <key (left arrow v) pressed?> <key (up arrow v) pressed?>\n    Move\n    switch costume to (player v)\n    change [cam x v] by (round (x position))\n    change [cam y v] by (round (y position))\n    go to x: (0) y: (0)\nend\n\ndefine controls <right> <left> <jump>\nif <(START) = [1]> then\n    if <not <(life) = [0]>> then\n        if <not <(Vitesse boost) = [1]>> then\n            if <right> then\n                change [player sx v] by (3)\n            end\n            if <left> then\n                change [player sx v] by (-3)\n            end\n        else\n            if <right> then\n                change [player sx v] by (4)\n            end\n            if <left> then\n                change [player sx v] by (-4)\n            end\n        end\n        if <not <(JUMP boost) = [1]>> then\n            if <<jump> and <(falling) = [0]>> then\n                change [player sy v] by (13)\n            end\n        else\n            if <<jump> and <(falling) = [0]>> then\n                change [player sy v] by (14)\n            end\n        end\n    end\nend\n\ndefine Move\nif <(START) = [1]> then\n    if <not <(life) = [0]>> then\n        set [player sx v] to ((Player sx) * (0.8))\n        change x by (Player sx)\n        set [i v] to [0]\n        repeat until <<not <<touching color (#33b633)?> or <touching color (#d68e3c)?>>> or <(i) = [8]>>\n            change y by (1)\n            change [i v] by (1)\n        end\n        if <(i) = [8]> then\n            change x by ((0) - (Player sx))\n            change y by (-8)\n            set [player sx v] to [0]\n        end\n    end\nend\n\ndefine Go up\nif <(START) = [1]> then\n    set [i v] to [0]\n    repeat until <<not <<touching color (#33b633)?> or <touching color (#d68e3c)?>>> or <(i) = [8]>>\n        change [i v] by (1)\n        if <<(Player sy) > [-1]> and <(falling) > [0]>> then\n            change y by (-1)\n        else\n            change y by (1)\n            set [falling v] to [0]\n        end\n        set [player sy v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(START) = [1]> then\n        if <touching (stars v)?> then\n            broadcast (Par v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(START) = [1]> then\n        if <touching (trampoline v)?> then\n            change [player sy v] by (5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(START) = [1]> then\n        if <touching (spawnpoint v)?> then\n            set [spawnpoint v] to [2]\n        end\n    end\nend\n\nwhen I receive [start v]\nset [cam y v] to [-100]\nset [cam x v] to [-240]\nset [x v] to [0]\nset [y v] to [0]\nset [player sx v] to [0]\nset [player sy v] to [0]\nset [falling v] to [0]\nbroadcast (Tick v) and wait\nset [spawnpoint v] to [1]\nforever\n    Platformer\n    broadcast (Tick v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [start v]\nset size to (110) %\nshow\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nset size to (100) %\nshow variable [money v]\nforever\n    switch costume to (costume)\nend\n\nwhen I receive [start v]\nset [spawnpoint v] to [1]\nforever\n    if <(START) = [1]> then\n        if <touching color (#f34444)?> then\n            if <(Spawnpoint) = [1]> then\n                set [cam y v] to [-100]\n                set [cam x v] to [-240]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide variable [money v]\n\nwhen I receive [menu v]\nhide variable [money v]\n\nwhen I receive [shop v]\nrepeat (10)\n    show variable [money v]\nend\n\nwhen I receive [start v]\nset [spawnpoint v] to [1]\nforever\n    if <touching color (#f34444)?> then\n        if <(START) = [1]> then\n            set [life v] to ((life) - (1))\n            wait until <not <touching color (#f34444)?>>\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(START) = [1]> then\n        if <[-999] > (cam y)> then\n            set [cam y v] to [-100]\n            set [cam x v] to [-240]\n            set [life v] to ((life) - (1))\n            wait until <not <[-999] > (cam y)>>\n        end\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [start v]\nset [start v] to [1]\n\nwhen flag clicked\nset [costume v] to [1]\n\nwhen flag clicked\nset [vitesse boost v] to [0]\n\n@Ground\n\nwhen I receive [tick v]\nswitch costume to (costume1 v)\ngo to x: ((0) - (cam x)) y: ((0) - (cam y))\n\nwhen flag clicked\nforever\n    broadcast (Tick v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [game over v]\nhide\n\n@Lives2\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\nrepeat until <(START) = [1]>\n    stop [other scripts in sprite v]\n    wait until <(START) = [1]>\n    repeat (10)\n        show\n    end\n    go to x: (-156) y: (140)\n    forever\n        if <(life) > [1]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nrepeat (10)\n    show\nend\ngo to x: (-156) y: (140)\nforever\n    if <(life) > [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [menu v]\nset [start v] to [0]\n\nwhen I receive [shop v]\nset [start v] to [0]\n\nwhen I receive [start v]\nset [start v] to [1]\n\nwhen I receive [menu v]\nhide\nrepeat until <(START) = [1]>\n    hide\nend\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Lives4\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\nrepeat until <(START) = [1]>\n    stop [other scripts in sprite v]\n    wait until <(START) = [1]>\n    set [life v] to [3]\n    show\n    repeat (10)\n        show\n    end\n    go to x: (-201) y: (139)\n    forever\n        if <(life) > [0]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nset [life v] to [3]\nshow\nrepeat (10)\n    show\nend\ngo to x: (-201) y: (139)\nforever\n    if <(life) > [0]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [achat slime rose v]\n\nwhen I receive [menu v]\nset [start v] to [0]\n\nwhen I receive [shop v]\nset [start v] to [0]\n\nwhen I receive [start v]\nset [start v] to [1]\n\nwhen I receive [menu v]\nrepeat until <(START) = [1]>\n    hide\nend\nshow\n\n@Border\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [game over v]\nhide\n\nwhen flag clicked\nforever\nend\n\n@Game-Over\n\nwhen flag clicked\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [start v]\nforever\n    if <(life) = [0]> then\n        go to x: (0) y: (400)\n        show\n        start sound [Game Over - Kirby s Return to Dream Land2 v]\n        glide (1) secs to x: (0) y: (0)\n        repeat (110)\n            go to x: (0) y: (0)\n        end\n        set [life v] to [3]\n        hide\n        wait until <(START) = [1]>\n    end\nend\n\n@Lives3\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\nrepeat until <(START) = [1]>\n    hide\n    stop [other scripts in sprite v]\n    wait until <(START) = [1]>\n    set [life v] to [3]\n    repeat (10)\n        show\n    end\n    go to x: (-111) y: (139)\n    forever\n        if <(life) > [2]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nset [life v] to [3]\nrepeat (10)\n    show\nend\ngo to x: (-111) y: (139)\nforever\n    if <(life) > [2]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [menu v]\nrepeat until <(START) = [1]>\n    hide\nend\nshow\n\nwhen I receive [game over v]\nwait (3) seconds\nbroadcast (MENU v)\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [game over v]\nset [start v] to [0]\n\n@50€ slime violet\n\nwhen flag clicked\ngo to x: (190) y: (-54)\nhide\n\nwhen I receive [shop v]\nif <not <(SLIME VIOLET) = [1]>> then\n    go to x: (-58) y: (65)\n    wait (0.2) seconds\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\nend\n\nwhen I receive [menu v]\ngo to x: (190) y: (400)\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [achat slime violet v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [start v]\nhide\n\n@100€ slime rose\n\nwhen flag clicked\ngo to x: (190) y: (-54)\nhide\n\nwhen I receive [shop v]\nset [ghost v] effect to (0)\ngo to x: (73) y: (65)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        point in direction ((90) + (([cos v] of ((timer) * (130)) ) * (4)))\n    end\nend\n\nwhen I receive [menu v]\ngo to x: (190) y: (400)\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nforever\n    if <not <(MENU) = [1]>> then\n        if <not <(SLIME ROSE) = [1]>> then\n            go to x: (73) y: (65)\n            wait (0.2) seconds\n            show\n            repeat (20)\n                change [ghost v] effect by (-5)\n            end\n        else\n            hide\n        end\n    end\nend\n\nif  then\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\n\nset [money v] to [10000]\n\nwhen flag clicked\nset [achat slime rose v] to [0]\n\nwhen I receive [achat slime rose v]\nset [achat slime rose v] to [1]\n\nwhen I receive [start v]\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nset [menu v] to [0]\n\nwhen I receive [start v]\nset [menu v] to [1]\n\nwhen I receive [menu v]\nset [menu v] to [1]\n\nwhen flag clicked\nforever\n    repeat until <not <(MENU) = [1]>>\n        hide\n    end\nend\n\n@200 € slime rouge\n\nwhen flag clicked\ngo to x: (198) y: (65)\nhide\n\nwhen I receive [shop v]\nwait (0.2) seconds\ngo to x: (198) y: (65)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        point in direction ((90) + (([cos v] of ((timer) * (130)) ) * (4)))\n    end\nend\n\nwhen I receive [menu v]\nhide\ngo to x: (500) y: (400)\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nif <not <(SLIME ROUGE) = [1]>> then\n    go to x: (198) y: (65)\n    wait (0.2) seconds\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\nend\n\nset [money v] to [1000]\n\nwhen I receive [shop v]\nforever\n    if <not <(MENU) = [1]>> then\n        if <not <(SLIME ROUGE) = [1]>> then\n            go to x: (198) y: (65)\n            wait (0.2) seconds\n            show\n            repeat (20)\n                change [ghost v] effect by (-5)\n            end\n        else\n            hide\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [achat slime rouge v]\nset [slime rouge v] to [1]\n\nwhen I receive [achat slime rose v]\nset [slime rose v] to [1]\n\n@Coin\n\nwhen I receive [tick v]\ngo to x: ((-170) - (cam x)) y: ((-126) - (cam y))\n\nwhen flag clicked\nhide\nforever\n    next costume\n    wait (0.09) seconds\nend\n\nwhen I receive [start v]\nif <(START) = [1]> then\n    show\n    wait until <not <(START) = [1]>>\n    hide\nend\n\nwhen I receive [game over v]\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nforever\n    if <(START) = [1]> then\n        if <touching (slime principal  v)?> then\n            set [la premiere piece touche v] to [1]\n            start sound [dink v]\n            set [money v] to ((Money) + (10))\n            repeat (20)\n                change [ghost v] effect by (5)\n                hide\n            end\n        end\n    end\nend\n\nforever\nend\n\nset [money v] to [50]\n\nwhen flag clicked\nset [la premiere piece touche v] to [0]\n\nwhen I receive [game over v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [shop v]\nshow\ngo to x: (171) y: (162)\n\nwhen flag clicked\nforever\n    go to x: (171) y: (162)\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\ngo to x: (-209) y: (400)\n\nrepeat (20)\n    change [ghost v] effect by (6)\nend\n\nwhen I receive [shop v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [menu v]\ngo to x: (400) y: (400)\nhide\n\nwhen I receive [shop v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [choix du chop:power ups,skin v]\nwait (0.1) seconds\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\ngo to x: (-110) y: (-77)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (shop v)\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            hide\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [power-ups v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\n@Sprite15\n\nwhen I receive [achat slime rose v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            set [costume v] to [3]\n        else\n            set [costume v] to (costume)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\ngo to x: (-57) y: (-54)\nhide\n\nwhen I receive [shop v]\nwait (0.2) seconds\ngo to x: (70) y: (-54)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [shop v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            if <(costume [number v]) = [1]> then\n                if <(Money) > [99]> then\n                    broadcast (achat slime rose v)\n                    set [achat slime rose v] to [1]\n                    set [slime rose v] to [1]\n                    switch costume to (choose buton2 v)\n                    start sound [pop v]\n                    wait (2) seconds\n                else\n                    broadcast (pas assez d'argent v)\n                end\n            end\n        end\n    else\n        set size to (100) %\n    end\nend\n\nbroadcast (achat slime violet v)\n\nwhen I receive [menu v]\ngo to x: (-57) y: (400)\nhide\n\nwhen flag clicked\nswitch costume to (choose buton v)\nset [money v] to [0]\n\nwhen I receive [achat slime rose v]\nset [money v] to ((Money) - (100))\n\nwhen I receive [shop v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        play sound [pop v] until done\n        wait (5) seconds\n    end\nend\n\nwhen flag clicked\nset [slime rose v] to [0]\n\nset [money v] to [20000]\n\nwhen I receive [achat slime rose v]\nset [costume v] to [3]\n\nset [money v] to [1000]\n\n@Sprite10\n\nwhen flag clicked\ngo to x: (190) y: (-54)\nhide\n\nwhen I receive [shop v]\nwait (0.2) seconds\ngo to x: (190) y: (-54)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [shop v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            if <(costume [number v]) = [1]> then\n                if <(Money) > [199]> then\n                    broadcast (ACHAT SLIME ROUGE v)\n                    set [achat slime rouge v] to [1]\n                    set [slime rouge v] to [1]\n                    switch costume to (choose buton2 v)\n                    start sound [pop v]\n                    wait (2) seconds\n                else\n                    broadcast (pas assez d'argent v)\n                end\n            end\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [menu v]\ngo to x: (-57) y: (400)\nhide\n\nwhen flag clicked\nswitch costume to (choose buton v)\nset [money v] to [0]\n\nwhen I receive [achat slime rouge v]\nset [money v] to ((Money) - (200))\n\nwhen I receive [shop v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        play sound [pop v] until done\n        wait (5) seconds\n    end\nend\n\nset [money v] to [1000]\n\nset [money v] to [1000]\n\nwhen I receive [achat slime rouge v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            set [costume v] to [4]\n        else\n            set [costume v] to (costume)\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@Sprite14\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\ngo to x: (-209) y: (400)\n\nrepeat (20)\n    change [ghost v] effect by (6)\nend\n\nwhen I receive [shop v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [menu v]\ngo to x: (400) y: (400)\nhide\n\nwhen I receive [shop v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [choix du chop:power ups,skin v]\nwait (0.1) seconds\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\ngo to x: (120) y: (-77)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (Power-ups v)\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            hide\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [start v]\nhide\n\nset [money v] to [200]\n\n@Ground2\n\nwhen I receive [tick v]\nswitch costume to (costume1 v)\ngo to x: ((500) - (cam x)) y: ((-2) - (cam y))\n\nwhen flag clicked\nforever\n    broadcast (Tick v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [game over v]\nhide\n\n@Ground3\n\nwhen I receive [tick v]\nswitch costume to (costume1 v)\ngo to x: ((1000) - (cam x)) y: ((-10) - (cam y))\n\nwhen flag clicked\nforever\n    broadcast (Tick v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [game over v]\nhide\n\n@Ground4\n\nwhen I receive [tick v]\nswitch costume to (costume1 v)\ngo to x: ((1500) - (cam x)) y: ((-10) - (cam y))\n\nwhen flag clicked\nforever\n    broadcast (Tick v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [game over v]\nhide\n\n@Ground5\n\nwhen I receive [tick v]\nswitch costume to (costume1 v)\ngo to x: ((2010) - (cam x)) y: ((-23) - (cam y))\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [game over v]\nhide\n\n@Sprite16\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [choix du chop:power ups,skin v]\nhide\n\nwhen I receive [power-ups v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set size to (60) %\n    set [brightness v] effect to (10)\n    go to x: (-159) y: (-90)\nend\n\n@Sprite17\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [choix du chop:power ups,skin v]\nhide\n\nwhen I receive [power-ups v]\nshow\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set size to (60) %\n    set [brightness v] effect to (10)\n    go to x: (0) y: (-90)\nend\n\n@Sprite18\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nshow\n\nwhen I receive [game over v]\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (999) layers\nend\n\nwhen I receive [choix du chop:power ups,skin v]\nshow\ngo to x: (-203) y: (153)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            broadcast (MENU v)\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@Sprite19\n\nwhen flag clicked\ngo to x: (190) y: (-54)\nhide\n\nwhen I receive [power-ups v]\nwait (0.2) seconds\ngo to x: (-155) y: (-162)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [power-ups v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            if <(costume [number v]) = [1]> then\n                if <(Money) > [299]> then\n                    broadcast (achat jump boost v)\n                    switch costume to (choose buton2 v)\n                    set [jump boost v] to [1]\n                    start sound [pop v]\n                    wait (2) seconds\n                else\n                    broadcast (pas assez d'argent #2 v)\n                end\n            end\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [menu v]\ngo to x: (-57) y: (400)\nhide\n\nwhen flag clicked\nswitch costume to (choose buton v)\nset [money v] to [0]\n\nwhen I receive [achat jump boost v]\nset [money v] to ((Money) - (300))\n\nwhen I receive [shop v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        play sound [pop v] until done\n        wait (5) seconds\n    end\nend\n\nset [money v] to [1000]\n\nset [money v] to [1000]\n\nwhen I receive [achat slime rouge v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            set [costume v] to [4]\n        else\n            set [costume v] to (costume)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nset [jump boost v] to [0]\n\n@Sprite20\n\nwhen I receive [pas assez d'argent #2 v]\nrepeat (3)\n    show\n    wait (0.5) seconds\n    hide\n    wait (0.5) seconds\nend\n\nwhen I receive [shop v]\nhide\n\nwhen flag clicked\nhide\n\n@Sprite21\n\nwhen flag clicked\ngo to x: (190) y: (-54)\nhide\n\nwhen I receive [power-ups v]\nwait (0.2) seconds\ngo to x: (5) y: (-162)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [power-ups v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            if <(costume [number v]) = [1]> then\n                if <(Money) > [199]> then\n                    broadcast (achat vitesse boost v)\n                    switch costume to (choose buton2 v)\n                    set [vitesse boost v] to [1]\n                    start sound [pop v]\n                    wait (2) seconds\n                else\n                    broadcast (pas assez d'argent #2 v)\n                end\n            end\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [menu v]\ngo to x: (-57) y: (400)\nhide\n\nwhen flag clicked\nswitch costume to (choose buton v)\nset [money v] to [0]\n\nwhen I receive [achat vitesse boost v]\nset [money v] to ((Money) - (200))\n\nwhen I receive [shop v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        play sound [pop v] until done\n        wait (5) seconds\n    end\nend\n\nset [money v] to [1000]\n\nset [money v] to [1000]\n\nwhen I receive [achat slime rouge v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            set [costume v] to [4]\n        else\n            set [costume v] to (costume)\n        end\n    else\n        show variable [achat slime rose v]\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\nset [vitesse boost v] to [0]\n\nwhen I receive [power-ups v]\nshow variable [money v]\n\n@Lives5\n\nwhen flag clicked\nhide\n\nwhen I receive [power-ups v]\nshow\n\nwhen I receive [menu v]\nrepeat until <(START) = [1]>\n    hide\nend\n\nwhen I receive [game over v]\nwait (3) seconds\nbroadcast (MENU v)\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [game over v]\nset [start v] to [0]\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [choix du chop:power ups,skin v]\ngo to x: (158) y: (-102)\nhide\n\n@Sprite22\n\nwhen flag clicked\ngo to x: (190) y: (-54)\nhide\n\nwhen I receive [power-ups v]\nwait (0.2) seconds\ngo to x: (154) y: (-162)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [power-ups v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            if <(costume [number v]) = [1]> then\n                if <(Money) > [499]> then\n                    broadcast (ACHat +1 life v)\n                    switch costume to (choose buton2 v)\n                    set [+1 life v] to [1]\n                    start sound [pop v]\n                    wait (2) seconds\n                else\n                    broadcast (pas assez d'argent #2 v)\n                end\n            end\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [menu v]\ngo to x: (-57) y: (400)\nhide\n\nwhen flag clicked\nswitch costume to (choose buton v)\nset [money v] to [0]\n\nwhen I receive [achat vitesse boost v]\nset [money v] to ((Money) - (500))\n\nwhen I receive [shop v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        play sound [pop v] until done\n        wait (5) seconds\n    end\nend\n\nset [money v] to [1000]\n\nset [money v] to [1000]\n\nwhen flag clicked\nset [vitesse boost v] to [0]\n\nwhen I receive [power-ups v]\nshow variable [money v]\n\n@Coin2\n\nwhen I receive [tick v]\ngo to x: ((360) - (cam x)) y: ((-126) - (cam y))\n\nwhen flag clicked\nhide\nforever\n    next costume\n    wait (0.09) seconds\nend\n\nwhen I receive [start v]\nif <(START) = [1]> then\n    show\n    wait until <not <(START) = [1]>>\n    hide\nend\n\nwhen I receive [game over v]\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nforever\n    if <(START) = [1]> then\n        if <touching (slime principal  v)?> then\n            set [la premiere piece touche v] to [1]\n            start sound [dink v]\n            set [money v] to ((Money) + (10))\n            repeat (20)\n                change [ghost v] effect by (5)\n                hide\n            end\n        end\n    end\nend\n\nforever\nend\n\nset [money v] to [50]\n\nwhen flag clicked\nset [la premiere piece touche v] to [0]\n\nwhen I receive [game over v]\nhide\n\n@Coin3\n\nwhen I receive [tick v]\ngo to x: ((1300) - (cam x)) y: ((-126) - (cam y))\n\nwhen flag clicked\nhide\nforever\n    next costume\n    wait (0.09) seconds\nend\n\nwhen I receive [start v]\nif <(START) = [1]> then\n    show\n    wait until <not <(START) = [1]>>\n    hide\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nforever\n    if <(START) = [1]> then\n        if <touching (slime principal  v)?> then\n            set [la premiere piece touche v] to [1]\n            start sound [dink v]\n            set [money v] to ((Money) + (10))\n            repeat (20)\n                change [ghost v] effect by (5)\n                hide\n            end\n        end\n    end\nend\n\nforever\n\nset [money v] to [50]\n\nwhen flag clicked\nset [la premiere piece touche v] to [0]\n\n@Coin4\n\nwhen I receive [tick v]\ngo to x: ((2170) - (cam x)) y: ((52) - (cam y))\n\nwhen flag clicked\nhide\nforever\n    next costume\n    wait (0.09) seconds\nend\n\nwhen I receive [start v]\nif <(START) = [1]> then\n    show\n    wait until <not <(START) = [1]>>\n    hide\nend\n\nwhen I receive [game over v]\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nforever\n    if <(START) = [1]> then\n        if <touching (slime principal  v)?> then\n            set [la premiere piece touche v] to [1]\n            start sound [dink v]\n            set [money v] to ((Money) + (10))\n            repeat (20)\n                change [ghost v] effect by (5)\n                hide\n            end\n        end\n    end\nend\n\nforever\n\nset [money v] to [50]\n\nwhen flag clicked\nset [la premiere piece touche v] to [0]\n\nwhen I receive [game over v]\nhide\n\n