Biome: A Mobile Friendly Platformer

Instructions: English:\n*READ ALL INSTRUCTIONS*\n*NEW EASTER EGG*\n(Try scrolling down all the way)\nPLEASE PROPOSE THIS TO BE FEATURED! :)\n------------------------------------------------------------------------\nThis is my best platformer yet!!\n40 LEVELS\nSequel to Zone: A Platformer\nhttps://scratch.mit.edu/projects/458639180/\n-------------------------------------------------------------------------\nWASD\nArrow keys\nOr Mobile Controls\nQ to skip and R to restart\n-------------------------------------------------------------------------\nDifficulty:\nGrassland = Easy\nDesert = Medium\nIce Realm = More Difficult\nCave = Hard\nClouds = Very Hard\n-------------------------------------------------------------------------\nLevel Descriptions:\nGrassland: Spikes, Saws, Voids, and Lava\nDesert: Moving Sand Saws, Sand Spikes, Acid, Voids, and Cacti\nIce Realm: Ice Water, Icicles, Voids, Trampolines, and Ice Saws\nCave: Lava Droplets, Spikes, Lava, Trampolines, and Voids\nClouds: Sky Chutes, Space, Voids, Trampolines, and Cloud Spikes\n-----------------------------------------------------------------------\nTips:\n\nIn the cave you can stick to the ceiling on the metal bars.\n\nIn the clouds you cannot touch the sky (the top of the screen).\n\nIn the clouds there are invisible chutes that will put you into space.\n\nYou lose your platformer trail once you get to the caves.\n\nYour skips, time, and deaths are counted.\n\n-------------------------------------------------------------------------\nGood luck!\n\n\nFrançais:\n*LISEZ TOUTES LES INSTRUCTIONS*\n* NOUVEL OEUF DE PÂQUES *\n(Essayez de faire défiler vers le bas)\nVEUILLEZ PROPOSER CECI POUR ÊTRE EN VEDETTE! :)\n------------------------------------------------------------------------\nC'est mon meilleur jeu de plateforme à ce jour !!\n40 NIVEAUX\nSuite de Zone: A Platformer\nhttps://scratch.mit.edu/projects/458639180/\n-----------------------------------------------------------------------\nWASD\nTouches directionnelles\nOu commandes mobiles\nQ pour sauter et R pour redémarrer\n-------------------------------------------------- -----------------------\nDifficulté:\nPrairie = facile\nDésert = Moyen\nRoyaume de glace = plus difficile\nCave = dur\nNuages ​​= très durs\n-------------------------------------------------- -----------------------\nDescriptions de niveau:\nPrairies: pointes, scies, vides et lave\nDésert: scies à sable mobiles, pointes de sable, acide, vides et cactus\nRoyaume de glace: eau glacée, glaçons, vides, trampolines et scies à glace\nGrotte: gouttelettes de lave, pointes, lave, trampolines et vides\nNuages: Chutes du ciel, espace, vides, trampolines et pics de nuages\n-------------------------------------------------- ---------------------\nDes astuces:\n\nDans la grotte, vous pouvez coller au plafond sur les barres métalliques.\n\nDans les nuages, vous ne pouvez pas toucher le ciel (le haut de l'écran).\n\nDans les nuages, il y a des chutes invisibles qui vous mettront dans l'espace.\n\nVous perdez votre sentier de plateforme une fois que vous arrivez aux grottes.\n\nVos sauts, votre temps et vos morts sont comptés.\n\n------------------------------------------------------------------------\nBonne chance!\n\n\n中国人:\n*阅读所有说明*\n*新复活节彩蛋*\n（尝试一直向下滚动）\n请提出此功能！ :)\n------------------------------------------------------------------------\n这是我最好的平台游戏！！\n40级\n续集：平台游戏\nhttps://scratch.mit.edu/projects/458639180/\n------------------------------------------------------------------------\n水务署\n方向键\n或移动控件\nQ跳过，R重启\n------------------------------------------------------------------------\n困难：\n草原=容易\n沙漠=中\n冰域=更难\n洞穴=坚硬\n云=非常难\n------------------------------------------------------------------------\n级别说明：\n草原：尖刺，锯，空洞和熔岩\n沙漠：移动的沙锯，沙钉，酸，空隙和仙人掌\n冰域：冰水，冰柱，空隙，蹦床和冰锯\n洞穴：熔岩滴，尖刺，熔岩，蹦床和空隙\n云：滑道，空间，空隙，蹦床和云刺\n-----------------------------------------------------------------------\n尖端：\n\n在山洞中，您可以贴在金属棒的天花板上。\n\n在云端，您无法触摸天空（屏幕顶部）。\n\n在云层中有看不见的溜槽，这些溜槽会将您带入太空。\n\n一旦到达山洞，您将失去平台游戏的踪迹。\n\n您的跳过次数，时间和死亡都将计算在内。\n\n-------------------------------------------------------------------------\n祝你好运！\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nFollow @Bennyfred for more awesome games!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nHint: Press space to toggle jump boost

@Stage\n\nwhen flag clicked\nswitch backdrop to (land v)\nset [ghost v] effect to (1000)\n\nwhen I receive [play v]\nwait (1) seconds\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <(level) > [8]> then\n        switch backdrop to (desert v)\n    end\n    if <(level) > [16]> then\n        switch backdrop to (ice v)\n    end\n    if <(level) > [24]> then\n        switch backdrop to (cave v)\n    end\n    if <(level) > [32]> then\n        switch backdrop to (clouds v)\n    end\nend\n\n@Intro\n\nwhen I start as a clone\nif <(clonenumber) = [2]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    set [brightness v] effect to (value)\n    go to x: (240) y: (-180)\n    point in direction (-135)\n    switch costume to (screen v)\n    repeat until <(round (direction)) = [90]>\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    point in direction (90)\n    wait until <(waiting) = [1]>\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [4]> then\n    Reset\n    clear graphic effects\n    show\n    go to [front v] layer\n    go [forward v] (999) layers\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [3]> then\n    Reset\n    show\n    go to [front v] layer\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nif <(clonenumber) = [1]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    switch costume to (square13 v)\n    set [brightness v] effect to (value)\n    go to x: (0) y: (0)\n    set [i v] to (i)\n    if <(sides) = [1]> then\n        repeat until <(round (y position)) = [180]>\n            change y by (((180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    else\n        repeat until <(round (y position)) = [-180]>\n            change y by (((-180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [5]> then\n    show\n    clear graphic effects\n    set size to (10) %\n    point in direction (90)\n    switch costume to (sidesquareline v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    go to [front v] layer\n    repeat until <(round (size)) = [300]>\n        change size by (((300) - (size)) / (15))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [0]> then\n    Reset\n    show\n    set size to (0) %\n    point in direction (-15)\n    switch costume to (square v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    repeat (15)\n        change [value v] by (1)\n        turn right (value) degrees\n        change [velocity v] by (1)\n        change size by (velocity)\n    end\n    set [value v] to [8]\n    repeat (30)\n        set [value v] to (((value) * (0.69)) + ((90) - (direction)))\n        turn right (value) degrees\n    end\n    repeat (12)\n        next costume\n    end\n    repeat until <(round (size)) = [2000]>\n        switch costume to (blank v)\n        change size by (((2000) - (size)) / (5))\n        switch costume to (square13 v)\n    end\nend\n\nwhen flag clicked\nhide\nReset\nset [waiting v] to [0]\nset [clonenumber v] to [0]\nset [sides v] to [0]\nset [value v] to [0]\nset [velocity v] to [0]\ncreate clone of (_myself_ v)\nswitch costume to (name v)\nwait (1.82) seconds\nset [clonenumber v] to [1]\nset [i v] to [5]\nrepeat (10)\n    create clone of (_myself_ v)\n    if <(sides) = [1]> then\n        set [sides v] to [0]\n        change [value v] by (10)\n        change [i v] by (-.4)\n    else\n        set [sides v] to [1]\n    end\nend\nset [clonenumber v] to [2]\nwait (.3) seconds\nrepeat (4)\n    create clone of (_myself_ v)\n    change [value v] by (10)\n    wait (0.1) seconds\nend\nclear graphic effects\nswitch costume to (name v)\ngo [forward v] (99) layers\ngo to [front v] layer\nset size to (0) %\nshow\nrepeat until <(round (size)) = [50]>\n    change size by (((50) - (size)) / (3))\nend\ncreate clone of (_myself_ v)\nwait until <touching color (#ffffff)?>\nrepeat until <(round (size)) = [100]>\n    change size by (((100) - (size)) / (5))\nend\nset [velocity v] to [17]\nset [waiting v] to [1]\nset [clonenumber v] to [3]\ncreate clone of (_myself_ v)\nset [clonenumber v] to [4]\ncreate clone of (_myself_ v)\nset [waiting v] to [2]\nrepeat (25)\n    go [forward v] (99) layers\n    set [velocity v] to ((velocity) * (.95))\n    set size to ((100) + (velocity)) %\nend\nreset timer\nrepeat until <(timer) > [3]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((150) - (size)) / (3))\nend\npoint in direction (90)\nset [value v] to [5]\nrepeat (16)\n    turn right (value) degrees\n    change [value v] by (1)\nend\nrepeat until <(round (direction)) = [90]>\n    turn right (((90) - (direction)) / (5)) degrees\nend\nrepeat until <(timer) > [6]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((175) - (size)) / (3))\nend\nset [velocity v] to [12]\nrepeat (30)\n    change size by (velocity)\n    change [velocity v] by (-1)\n    change [ghost v] effect by (3.3)\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\nend\nbroadcast (Intro End Animation v)\nhide\n\ndefine Reset\nclear graphic effects\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I receive [intro end animation v]\nif <not <(costume [number v]) = [14]>> then\n    repeat (20)\n        change size by (((0) - (size)) / (5))\n        change [ghost v] effect by (5)\n    end\nelse\n    repeat until <(round (size)) = [100]>\n        change size by (((100) - (size)) / (5))\n        switch costume to (blank v)\n        switch costume to (square v)\n    end\n    set [velocity v] to [12]\n    repeat (30)\n        change size by (velocity)\n        change [velocity v] by (-1)\n        change [ghost v] effect by (3.3)\n        turn right (([abs v] of (velocity) ) / (2)) degrees\n    end\n    delete this clone\nend\nbroadcast (play v)\n\ndefine Move and Clones\nset [clonenumber v] to [5]\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nwait until <(waiting) = [2]>\nreset timer\nrepeat until <(timer) > [6]>\n    Move and Clones\n    wait (1) seconds\nend\n\nwhen flag clicked\nset volume to (50) %\n\nwhen flag clicked\nplay sound [Electro-Light - Symbolism v] until done\nset volume to (30) %\nforever\n    play sound [Hello v] until done\nend\n\nwhen flag clicked\nforever\n    if <(WIN) = [5]> then\n        repeat (30)\n            change volume by (-1)\n        end\n    end\nend\n\nset volume to (0) %\n\n@Player\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n    if <<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (up and right v)\n        wait until <not <key (right arrow v) pressed?>>\n        switch costume to (straight v)\n    end\n    if <<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (up and left v)\n        wait until <not <key (left arrow v) pressed?>>\n        switch costume to (straight v)\n    end\nend\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n    if <not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <key (up arrow v) pressed?>>>> then\n        switch costume to (straight v)\n    end\nend\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n    if <<key (right arrow v) pressed?> and <not <key (up arrow v) pressed?>>> then\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> and <not <key (up arrow v) pressed?>>> then\n        switch costume to (left v)\n    end\nend\n\nwhen I receive [play v]\nwait (1) seconds\nrepeat until <(status) = [1]>\n    if <(status) = [1]> then\n        stop [this script v]\n    end\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <(level) > [8]> then\n        set [color v] effect to (125)\n        set [brightness v] effect to (10)\n    end\n    if <(level) > [16]> then\n        set [color v] effect to (0)\n        set [brightness v] effect to (30)\n    end\n    if <(level) > [24]> then\n        set [brightness v] effect to (-10)\n        set [color v] effect to (210)\n    end\n    if <(level) > [32]> then\n        set [color v] effect to (50)\n        set [brightness v] effect to (60)\n    end\nend\n\nwhen I receive [play v]\nset [brightness v] effect to (0)\nset [color v] effect to (0)\npoint in direction (90)\nswitch costume to (straight v)\nwait (1) seconds\nshow\nset [x v] to [0]\nset [y v] to [0]\ngo to [front v] layer\nforever\n    change [y v] by (-1)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (level 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?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (level v)?>> then\n        if <(jump boost?) = [no]> then\n            set [y v] to [15]\n        end\n        if <(jump boost?) = [yes]> then\n            set [y v] to [18]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nset drag mode [not draggable v]\n\nwhen flag clicked\nset [jump boost? v] to [no]\nset [level v] to [1]\nset [win v] to [0]\nset [deaths v] to [0]\nset [skips v] to [0]\nset [time v] to [0]\nset [status v] to [0]\nhide variable [level v]\nhide variable [skips v]\nhide variable [deaths v]\nhide variable [time v]\nhide variable [status v]\n\nwhen flag clicked\nforever\n    if <<touching (danger v)?> or <<touching (enemies v)?> or <touching (void v)?>>> then\n        go to x: (-210) y: (-67)\n        change [deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (-210) y: (-67)\n\nwhen flag clicked\nforever\n    if <not <key (any v) pressed?>> then\n        switch costume to (straight v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (trampolines v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n    if <touching (next level v)?> then\n        change [level v] by (1)\n        go to x: (-210) y: (-67)\n        broadcast (next level v)\n    end\n    if <key (q v) pressed?> then\n        wait (0.8) seconds\n        change [level v] by (1)\n        go to x: (-210) y: (-67)\n        broadcast (next level v)\n        change [skips v] by (1)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-210) y: (-67)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (dripping lava v)?> then\n        wait (0.001) seconds\n        go to x: (-210) y: (-67)\n        change [deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sky chute v)?> then\n        glide (0.7) secs to x: (x position) y: (200)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (space v)?> then\n        go to x: (-210) y: (-67)\n        change [deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nhide variable [switch v]\nset [switch v] to [0]\nforever\n    if <touching (star v)?> then\n        hide\n        set [win v] to [1]\n        wait (0.01) seconds\n        set [win v] to [5]\n        show variable [skips v]\n        show variable [deaths v]\n        show variable [time v]\n        set [status v] to [1]\n    end\nend\n\nswitch costume to (left v)\n\nswitch costume to (right v)\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n\n@danger\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nswitch backdrop to (land v)\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [play v]\nwait (1) seconds\nshow\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [play v]\nwait (1) seconds\nshow\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@next level\n\nwhen flag clicked\nset [ghost v] effect to (1000)\ngo to x: (240) y: (-8)\n\n@void\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-180)\nset [ghost v] effect to (1000)\n\n@clone\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nrepeat (20)\n    change [ghost v] effect by (15)\n    change size by (-6)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    go to (player v)\nend\n\nwhen I start as a clone\nset [brightness v] effect to (0)\nset [color v] effect to (0)\nforever\n    if <(level) > [8]> then\n        set [color v] effect to (125)\n        set [brightness v] effect to (10)\n    end\n    if <(level) > [16]> then\n        set [color v] effect to (0)\n        set [brightness v] effect to (30)\n    end\n    if <(level) > [24]> then\n        hide\n    end\n    if <(level) > [32]> then\n        hide\n    end\nend\n\n@enemies\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    turn right (5) degrees\nend\n\nwhen flag clicked\nforever\n    if <not <<(level) = [6]> or <<(level) = [7]> or <<(level) = [10]> or <<(level) = [12]> or <<(level) = [13]> or <<(level) = [15]> or <<(level) = [18]> or <(level) = [24]>>>>>>>>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [6]> then\n        switch costume to (costume2 v)\n        go to x: (-21) y: (-116)\n        show\n    end\n    if <(level) = [7]> then\n        switch costume to (costume2 v)\n        go to x: (-91) y: (-120)\n        show\n    end\n    if <(level) = [10]> then\n        switch costume to (costume4 v)\n        go to x: (-30) y: (-120)\n        set size to (180) %\n        show\n    end\n    if <(level) = [12]> then\n        set size to (150) %\n        switch costume to (costume5 v)\n        go to x: (0) y: (-120)\n        show\n    end\n    if <(level) = [13]> then\n        set size to (95) %\n        switch costume to (costume6 v)\n        go to x: (0) y: (-120)\n        show\n    end\n    if <(level) = [15]> then\n        set size to (70) %\n        switch costume to (costume4 v)\n        show\n        go to x: (-40) y: (-94)\n        repeat until <(level) = [16]>\n            repeat (15)\n                change y by (10)\n            end\n            repeat (15)\n                change y by (-10)\n            end\n        end\n    end\n    if <(level) = [18]> then\n        set size to (285) %\n        switch costume to (costume7 v)\n        show\n        go to x: (55) y: (-120)\n    end\n    if <(level) = [24]> then\n        set size to (225) %\n        switch costume to (costume7 v)\n        show\n        go to x: (0) y: (-120)\n    end\nend\n\n@moving clouds\n\nwhen flag clicked\nforever\n    if <(level) > [8]> then\n        switch costume to (costume1 v)\n    end\n    if <(level) > [16]> then\n        switch costume to (costume2 v)\n    end\n    if <(level) > [24]> then\n        switch costume to (costume3 v)\n    end\n    if <(level) > [32]> then\n        switch costume to (costume4 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (effect v)\nhide\n\ndefine generate\nhide\nforever\n    set [speed v] to [-20]\n    create clone of (_myself_ v)\n    wait (pick random (0.15) to (0.3)) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nset size to (200) %\nset [ghost v] effect to (pick random (50) to (80))\ngo to x: (300) y: (pick random (-180) to (180))\nshow\nrepeat until <(x position) < [-240]>\n    change x by (Speed)\nend\ndelete this clone\n\nwhen I receive [play v]\nwait (1) seconds\ngenerate\n\n@sun\n\nwhen flag clicked\nforever\n    if <(level) > [8]> then\n        show\n    end\n    if <(level) > [16]> then\n        hide\n    end\n    if <(level) > [24]> then\n        hide\n    end\n    if <(level) > [32]> then\n        show\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nset [ghost v] effect to (0)\ngo to x: (-231) y: (170)\ngo to [back v] layer\nhide\n\nwhen I receive [play v]\nwait (1) seconds\nshow\nswitch costume to (sun v)\nforever\n    repeat (50)\n        change size by (-0.5)\n    end\n    repeat (50)\n        change size by (0.5)\n    end\nend\n\n@trampolines\n\nwhen flag clicked\nshow\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to (level)\nend\n\n@Thumbnail\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@glow\n\nwhen flag clicked\ngo to [front v] layer\nset size to (100) %\nhide\nforever\n    repeat (50)\n        change size by (-0.5)\n    end\n    repeat (50)\n        change size by (0.5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(level) > [24]> and <(level) < [33]>> then\n        show\n        set size to (100) %\n        clear graphic effects\n        forever\n            go to (player v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) > [32]> then\n        hide\n    end\nend\n\n@dripping lava\n\nwhen flag clicked\nset size to (100) %\nhide\ngo to [back v] layer\nforever\n    set size to (pick random (70) to (100)) %\n    go to x: (pick random (-200) to (200)) y: (180)\n    repeat until <<touching (player v)?> or <touching (void v)?>>\n        change y by (-5)\n    end\n    go to x: (pick random (-200) to (200)) y: (180)\nend\n\nwhen flag clicked\nforever\n    if <<(level) > [24]> and <(level) < [33]>> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<(level) > [24]> and <(level) < [33]>>> then\n        hide\n    end\nend\n\n@sky chute\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (1000)\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (level)\nend\n\n@space\n\nwhen flag clicked\nset [ghost v] effect to (10000)\ngo to x: (0) y: (180)\nhide\nforever\n    if <(level) > [32]> then\n        show\n    end\nend\n\nset [level v] to [40]\n\n@star\n\nwhen flag clicked\nset size to (100) %\ngo to x: (7) y: (-50)\nhide\nforever\n    if <(level) = [40]> then\n        show\n    end\nend\n\n@star glow\n\nwhen flag clicked\nset size to (100) %\ngo to x: (7) y: (-50)\nhide\nforever\n    if <(level) = [40]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (20)\n        change size by (3)\n    end\n    repeat (20)\n        change size by (-3)\n    end\nend\n\nset size to (100) %\n\n@Sprite1\n\ndefine Outro\nhide\ngo to x: (0) y: (0)\npoint in direction (90)\nswitch costume to (checkerboard pattern v)\ncreate clone of (_myself_ v)\nset [i1 v] to [-200]\nswitch costume to (light v)\ncreate clone of (_myself_ v)\nset [i1 v] to [200]\nswitch costume to (light v)\ncreate clone of (_myself_ v)\nset [i1 v] to [0]\nswitch costume to (blank v)\ncreate clone of (_myself_ v)\nswitch costume to (name v)\ncreate clone of (_myself_ v)\nswitch costume to (oc v)\ncreate clone of (_myself_ v)\nswitch costume to (heart v)\ncreate clone of (_myself_ v)\nswitch costume to (flash v)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\n    if <(WIN) = [1]> then\n        Outro\n        set volume to (100) %\n    end\nend\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [1]> then\n    forever\n        play sound [Unity \(full\) v] until done\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            forever\n                point in direction ((90) + (i1))\n                switch costume to (blank v)\n                set size to ((130) + (([sin v] of ((i1) * (5)) ) * (10))) %\n                switch costume to (checkerboard pattern v)\n                change [i1 v] by (0.5)\n                change [color v] effect by (1)\n            end\n        else\n            if <(costume [number v]) = [4]> then\n                forever\n                    set [i1 v] to (((i1) * (0.8)) + ((((100) + ((20) * <touching (mouse-pointer v)?>)) - (size)) / (4)))\n                    change size by (i1)\n                    go to x: (0) y: ((120) + (([sin v] of (i2) ) * (10)))\n                    point in direction ((90) + (([cos v] of (i2) ) * (3)))\n                    change [i2 v] by (5)\n                end\n            else\n                if <(costume [number v]) = [5]> then\n                    forever\n                        set [i1 v] to (((i1) * (0.8)) + (((((100) + (([sin v] of ((i2) * (1.5)) ) * (10))) + ((20) * <touching (mouse-pointer v)?>)) - (size)) / (4)))\n                        change size by (i1)\n                        go to x: (80) y: ((([sin v] of (i2) ) * (10)) - (30))\n                        point in direction ((90) + ((([sin v] of (i2) ) * (3)) + (([tan v] of ((i2) * (0.2)) ) * (5))))\n                        change [i2 v] by (5)\n                    end\n                else\n                    if <(costume [number v]) = [6]> then\n                        forever\n                            set [i1 v] to (((i1) * (0.8)) + (((((200) + (([sin v] of ((i2) * (1.5)) ) * (10))) + ((20) * <touching (mouse-pointer v)?>)) - (size)) / (4)))\n                            change size by (i1)\n                            go to x: ((([sin v] of (i2) ) * (10)) - (100)) y: ((([tan v] of (i2) ) * (5)) - (30))\n                            point in direction ((90) + (([sin v] of (i2) ) * (3)))\n                            set [ghost v] effect to (([abs v] of ((y position) - (-30)) ) / (1.5))\n                            change [i2 v] by (5)\n                            if <(y position) > [20]> then\n                                switch costume to (pick random (6) to (8))\n                            end\n                        end\n                    else\n                        if <(costume [number v]) = [9]> then\n                            go to x: (i1) y: (-130)\n                            forever\n                                if <(x position) < [0]> then\n                                    point in direction ((135) + (([sin v] of (i1) ) * (10)))\n                                    change [i1 v] by (10)\n                                else\n                                    point in direction ((45) + (([sin v] of (i1) ) * (10)))\n                                    change [i1 v] by (10)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nchange [color v] effect by (5)\n\n@Sprite2\n\nwhen flag clicked\nset [pixelate v] effect to (100)\nhide\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    if <(WIN) = [1]> then\n        show\n        repeat (10)\n            change [pixelate v] effect by (-10)\n        end\n        wait (7) seconds\n        repeat (10)\n            change [pixelate v] effect by (10)\n        end\n        hide\n        set [win v] to [2]\n        wait (0.01) seconds\n        set [win v] to [0]\n        hide variable [time v]\n        hide variable [deaths v]\n        hide variable [skips v]\n    end\nend\n\n@Sprite3\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n    if <key (space v) pressed?> then\n        set [ghost v] effect to (0)\n        next costume\n        show\n        repeat (25)\n            change [ghost v] effect by (4)\n        end\n    end\nend\n\nwait (0.5) seconds\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n    if <(costume [number v]) = [1]> then\n        set [jump boost? v] to [no]\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (160)\nset [ghost v] effect to (0)\nswitch costume to (costume1 v)\nhide\n\nset [jump boost? v] to [no]\n\nwhen I receive [play v]\nwait (1) seconds\nforever\n    if <(costume [number v]) = [2]> then\n        set [jump boost? v] to [yes]\n    end\nend\n\n