Team Work Platformer (2 player)

Instructions: Wanna create a platformer but don't know the code??\nI have made a project in my alt !! :)\nGo here - https://scratch.mit.edu/projects/489452052/\n___________________________________________\n\nLinks For new scratchers -\nDiscuss ~\nhttps://scratch.mit.edu/discuss\nWiki ~\nhttps://en.scratch-wiki.info/\n___________________________________________\n\n@TheFunkyPanda for platform art :)\n\nI am really happy on how this game has turned out to be...\nIf you want any surprise in the end please mention in the comments section below ...\n\nWow !!! 35k+ views\nThank You to everyone for taking this game past 1.5k+ loves :)\n\nOMG TRENDING #14 in all !!!!!!!!!!\nThis is my first ever game which crossed 20 loves\nThis game will give you information on Scratch...\n\nOMG TOP REMIXED !!!!!!!!!!!!!!!!\nTop Remixed on 8.6.21\n___________________________________________\n\nPlease share this game with new scratchers or people who want information on Scratch. This project will help them a lot ....\n\nFor assets to this game -\nhttps://scratch.mit.edu/projects/466176379/\n\nINSTRUCTIONS ----\nArrow keys to move\nSpikes and Lava kill you \nNo help of tutorial used\nOther info. will be given in the game\nIf you ever get stuck press up arrow and the arrow which is opposite to the side of the platform\nIn the end there is a surprise\nI hope you liked the game\nComment to fix bugs, to appreciate or add upgrades\nIt took me 35 hours to make with 500+ blocks so\nPlease like and fav.\nAll the scripts and art is by @rishavscratchwork\n___________________________________________\n\nRules to be followed ---\nPlease no reporting or spam\nNo form of hate\nNo disrespectful comments\nPlease no advertising\n(If you want you can ask people for help and share links or else please don't advertise)\nFor more games visit @rishavscratchwork\n\nThank You

@Stage\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen I receive [endintro v]\nswitch backdrop to (mountain v)\n\nwhen I receive [credits v]\nswitch backdrop to (thumbnail v)\n\n@Blank\n\n@Player\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nrepeat (7)\n    switch costume to (trail v)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [mati v]\nhide\nwait (0) seconds\nshow\nset [x v] to [0]\nset [y v] to [0]\nclear graphic effects\nif <(level) = [7]> then\n    set x to (-210)\n    set y to (150)\nelse\n    if <<(level) = [13]> or <(level) = [14]>> then\n        set x to (-210)\n        set y to (-93)\n    else\n        set x to (-210)\n        set y to (0)\n    end\nend\nbroadcast (Game on v)\nstop [this script v]\n\nwhen I receive [game on v]\nforever\n    create clone of (_myself_ v)\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    switch costume to (hitbox v)\n    if <<touching (level v)?> or <touching (snowman v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (snowman v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (snowman v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (snowman v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (snowman v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (snowman v)?>> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    switch costume to (hitbox v)\n    if <<touching (snowman v)?> or <touching (level v)?>> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [13]\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <<touching (snowman v)?> or <touching (level v)?>> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <(x position) > [230]> then\n        broadcast (next level v)\n        change [level v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        if <<(level) = [6]> or <(level) = [7]>> then\n            go to x: (-190) y: (150)\n        else\n            if <<(level) = [13]> or <(level) = [14]>> then\n                go to x: (-190) y: (-93)\n            else\n                go to x: (-190) y: (0)\n            end\n        end\n    end\n    if <(y position) < [-179]> then\n        set [x v] to [0]\n        set [y v] to [0]\n        if <<(level) = [6]> or <(level) = [7]>> then\n            go to x: (-190) y: (150)\n        else\n            if <<(level) = [13]> or <(level) = [14]>> then\n                go to x: (-190) y: (-93)\n            else\n                go to x: (-190) y: (-50)\n            end\n        end\n    end\nend\n\nwhen I receive [game on v]\nforever\n    Set Costume\nend\n\ndefine Set Costume\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> and <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) + (15)) > (x position)> and <mouse down?>>>> then\n    switch costume to (player v)\n    point in direction (90)\nelse\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> and <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) - (15)) < (x position)> and <mouse down?>>>> then\n        switch costume to (player v)\n        point in direction (-90)\n    else\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> then\n            switch costume to (player v)\n            point in direction (direction)\n        else\n            if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (-20)) > (x position)> and <mouse down?>>> then\n                switch costume to (player v)\n                point in direction (90)\n            else\n                if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (-20)) < (x position)> and <mouse down?>>> then\n                    switch costume to (player v)\n                    point in direction (-90)\n                else\n                    switch costume to (player v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [game on v]\nforever\n    if <touching (water v)?> then\n        broadcast (In water v)\n        if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < ((x position) - (20))>>>> then\n            set [x v] to [-2]\n        end\n        if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > ((x position) + (20))>>>> then\n            set [x v] to [2]\n        end\n        if <<key (s v) pressed?> or <<key (down arrow v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) < [10]>>>> then\n            change [y v] by (-1.5)\n        end\n        if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [20]>>>> then\n            change [y v] by (1)\n        end\n        set [y v] to ((Y) * (0.8))\n        change [y v] by (((Y) / (15)) + (0.5))\n    end\nend\n\nwhen I receive [mati v]\nif <<touching (saw v)?> or <touching (spikes v)?>> then\n    set [x v] to [0]\n    set [y v] to [0]\n    clear graphic effects\n    set x to (-210)\n    set y to (150)\n    broadcast (Game on v)\n    stop [this script v]\nend\n\nwhen I receive [game on v]\nforever\n    if <not <touching (water v)?>> then\n        broadcast (Out water v)\n    end\nend\n\nset [y v] to [0]\nset [x v] to [0]\n\nwhen I receive [map find v]\n\nwhen I receive [game on v]\nforever\n    if <touching (map v)?> then\n        stop [other scripts in sprite v]\n        hide\n        broadcast (MAP find v)\n    end\nend\n\nwhen I receive [endintro v]\ngo to [front v] layer\ngo [backward v] (3) layers\nshow\nset size to (60) %\nswitch costume to (player v)\ngo to x: (-190) y: (50)\nset drag mode [not draggable v]\npoint in direction (90)\nbroadcast (Game on v)\nset [level v] to [1]\n\nwhen I receive [endintro v]\nforever\n    if <<touching (saw2 v)?> or <<touching (saw3 v)?> or <<<touching (saw v)?> or <<touching (spikes v)?> or <touching (lava v)?>>> or <touching (enemy v)?>>>> then\n        stop [other scripts in sprite v]\n        set volume to (100) %\n        start sound [GG v]\n        broadcast (Hansd v)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        broadcast (Mati v)\n    end\nend\n\nwhen I receive [map find v]\nstop [other scripts in sprite v]\nhide\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nswitch costume to (join [level] (level))\n\nwhen I receive [endintro v]\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nswitch costume to (level1 v)\n\nwhen I receive [map find v]\nstop [other scripts in sprite v]\nhide\n\n@Spikes\n\nwhen I receive [next level v]\nwait (0) seconds\nSpawn [Spike 1] at [0] [0] at the direction of [90] at the level [3]\nSpawn [Spike 2] at [0] [0] at the direction of [90] at the level [4]\nSpawn [Spike 3] at [0] [0] at the direction of [90] at the level [7]\nSpawn [Spike 4] at [0] [0] at the direction of [90] at the level [11]\nSpawn [Spike 5] at [0] [0] at the direction of [90] at the level [12]\nSpawn [Spike 6] at [0] [0] at the direction of [90] at the level [13]\nSpawn [Spike 7] at [0] [0] at the direction of [90] at the level [16]\nSpawn [Spike 8] at [0] [0] at the direction of [90] at the level [20]\n\nwhen flag clicked\nhide\n\ndefine Spawn (name) at (x) (y) at the direction of (dir) at the level (level)\nif <(level) = (level)> then\n    switch costume to (name)\n    go to x: (x) y: (y)\n    point in direction (dir)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\n\nwhen I receive [next level v]\ndelete this clone\n\n@Saw\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen flag clicked\n\nwait (0) seconds\n\nwhen I receive [next level v]\nif <(level) = [5]> then\n    show\n    set size to (100) %\n    go to x: (-59) y: (-52)\n    forever\n        glide (0.5) secs to x: (51) y: (-52)\n        wait (0.05) seconds\n        glide (0.5) secs to x: (-59) y: (-52)\n        wait (0.05) seconds\n    end\nelse\n    if <(level) = [7]> then\n        show\n        set size to (100) %\n        go to [back v] layer\n        go to x: (-59) y: (-20)\n        forever\n            glide (0.5) secs to x: (51) y: (-20)\n            wait (0.05) seconds\n            glide (0.5) secs to x: (-59) y: (-20)\n            wait (0.05) seconds\n        end\n    else\n        if <(level) = [9]> then\n            show\n            set size to (100) %\n            go to x: (-94) y: (-82)\n            forever\n                glide (0.5) secs to x: (-94) y: (91)\n                wait (0.05) seconds\n                glide (0.5) secs to x: (-94) y: (-82)\n                wait (0.05) seconds\n            end\n        else\n            if <(level) = [13]> then\n                show\n                set size to (150) %\n                go to x: (150) y: (-90)\n            else\n                if <(level) = [14]> then\n                    show\n                    set size to (100) %\n                    go to x: (-7) y: (92)\n                    forever\n                        glide (1) secs to x: (187) y: (92)\n                        wait (0.05) seconds\n                        glide (1) secs to x: (-7) y: (92)\n                        wait (0.05) seconds\n                    end\n                else\n                    if <(level) = [15]> then\n                        show\n                        set size to (150) %\n                        go to x: (-77) y: (-102)\n                    else\n                        if <(level) = [17]> then\n                            show\n                            set size to (150) %\n                            go to x: (154) y: (-68)\n                        else\n                            if <(level) = [20]> then\n                                show\n                                set size to (150) %\n                                go to x: (177) y: (-75)\n                            else\n                                hide\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [endintro v]\nforever\n    if <<(level) = [20]> or <<(level) = [15]> or <<(level) = [17]> or <<(level) = [13]> or <<(level) = [14]> or <<<(level) = [5]> or <(level) = [7]>> or <(level) = [9]>>>>>>> then\n        go to [back v] layer\n        turn right (15) degrees\n    else\n        hide\n    end\nend\n\n@Saw2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen I receive [endintro v]\nforever\n    if <(level) = [9]> then\n        show\n        set size to (100) %\n        go to x: (54) y: (87)\n        glide (0.5) secs to x: (68) y: (-88)\n        wait (0.05) seconds\n        glide (0.5) secs to x: (54) y: (87)\n        wait (0.05) seconds\n    else\n        if <(level) = [15]> then\n            show\n            show\n            set size to (150) %\n            go to x: (130) y: (-104)\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [endintro v]\nforever\n    if <<(level) = [9]> or <(level) = [15]>> then\n        turn right (15) degrees\n    else\n        hide\n    end\nend\n\n@Water\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(level) = [6]> then\n    switch costume to (water0 v)\n    go to [back v] layer\n    set [ghost v] effect to (20)\n    show\n    go to x: (0) y: (0)\n    forever\n        change [frame v] by (0.4)\n        set y to ((3) * ([sin v] of ((timer) * (180)) ))\n        switch costume to (join [Water] (([floor v] of (frame) ) mod (4)))\n    end\nelse\n    if <(level) = [7]> then\n        switch costume to (water0 v)\n        set [ghost v] effect to (20)\n        show\n        go to [back v] layer\n        go to x: (0) y: (0)\n        forever\n            change [frame v] by (0.4)\n            set y to ((3) * ([sin v] of ((timer) * (180)) ))\n            switch costume to (join [Water] (([floor v] of (frame) ) mod (4)))\n        end\n    else\n        if <(level) = [12]> then\n            switch costume to (water2.0 v)\n            show\n            go to [back v] layer\n            go to x: (0) y: (0)\n            forever\n                change [frame v] by (0.4)\n                set y to ((3) * ([sin v] of ((timer) * (180)) ))\n                switch costume to (join [Water2.] (([floor v] of (frame) ) mod (4)))\n            end\n        else\n            if <(level) = [13]> then\n                switch costume to (water3.0 v)\n                show\n                go to [back v] layer\n                go to x: (0) y: (0)\n                forever\n                    change [frame v] by (0.4)\n                    set y to ((3) * ([sin v] of ((timer) * (180)) ))\n                    switch costume to (join [Water3.] (([floor v] of (frame) ) mod (4)))\n                end\n            else\n                if <(level) = [16]> then\n                    switch costume to (water2.0 v)\n                    show\n                    go to [back v] layer\n                    go to x: (0) y: (0)\n                    forever\n                        change [frame v] by (0.4)\n                        set y to ((3) * ([sin v] of ((timer) * (180)) ))\n                        switch costume to (join [Water2.] (([floor v] of (frame) ) mod (4)))\n                    end\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\ngo [forward v] (1) layers\n\nnext costume\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I receive [next level v]\n\nif <(level) = [4]> then\n    show\n    switch costume to (lava0 v)\n    go to [back v] layer\n    go to x: (0) y: (0)\n    forever\n        change [frame v] by (0.4)\n        set y to ((3) * ([sin v] of ((timer) * (180)) ))\n    end\nelse\n    if <(level) = [10]> then\n        show\n        switch costume to (lava2.0 v)\n        go to [back v] layer\n        go to x: (0) y: (0)\n        forever\n            set y to ((3) * ([sin v] of ((timer) * (180)) ))\n            switch costume to (lava2.0 v)\n            wait (0.1) seconds\n            switch costume to (lava 4 v)\n        end\n    else\n        if <(level) = [11]> then\n            show\n            switch costume to (lava 5 v)\n            go to [back v] layer\n            go to x: (0) y: (0)\n            forever\n                set y to ((3) * ([sin v] of ((timer) * (180)) ))\n                switch costume to (lava 5 v)\n                wait (0.1) seconds\n                switch costume to (lava 6 v)\n            end\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [endintro v]\nforever\n    go to [back v] layer\nend\n\n@Hands\n\nwhen flag clicked\nhide\n\nforever\n    go to [front v] layer\n    go to (player v)\nend\n\nwhen I receive [hansd v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (Mati v)\n\nwhen I receive [mati v]\nshow\nclear graphic effects\nforever\n    go to [front v] layer\n    go to (player v)\nend\n\nwhen I receive [endintro v]\nshow\nset size to (60) %\nforever\n    go to [front v] layer\n    go to (player v)\nend\n\nwhen I receive [map find v]\nstop [other scripts in sprite v]\nhide\n\n@Cloud\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nset x to (240)\npoint in direction (pick random (-90) to (90))\nset rotation style [left-right v]\nset y to (pick random (50) to (180))\nset [ghost v] effect to (pick random (0) to (20))\nswitch costume to (pick random (1) to (6))\nset size to (pick random (90) to (100)) %\nrepeat (160)\n    change x by (-3)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen I receive [endintro v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\n@Thumbnail\n\nwhen flag clicked\nstop all sounds\n\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\n\nwhen I receive [endintro v]\nforever\n    hide\n    set volume to (50) %\n    play sound [Lost and stoned v] until done\nend\n\nwhen I receive [map find v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nstop [other scripts in sprite v]\n\nwhen I receive [credits v]\nstop [other scripts in sprite v]\nset volume to (100) %\nforever\n    play sound [Satisfied v] until done\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\n@Saw3\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen I receive [endintro v]\nforever\n    if <(level) = [9]> then\n        show\n        go to x: (211) y: (-72)\n        glide (0.5) secs to x: (196) y: (98)\n        wait (0.05) seconds\n        glide (0.5) secs to x: (211) y: (-72)\n        wait (0.05) seconds\n    else\n        hide\n    end\nend\n\nwhen I receive [endintro v]\nforever\n    if <(level) = [9]> then\n        turn right (15) degrees\n    else\n        hide\n    end\nend\n\n@Text\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (download__1_-removebg-preview v)\nshow\n\nwhen I receive [credits v]\nhide\n\n@MAP\n\nwhen I receive [map find v]\nshow\nset size to (10) %\nrepeat (33.33)\n    turn right (15) degrees\n    change size by (3)\nend\npoint in direction (90)\nset size to (100) %\nwait (3) seconds\nbroadcast (Credits v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nhide\n\n@map\n\nwhen flag clicked\nhide\n\nwhen I receive [endintro v]\nforever\n    if <(level) = [21]> then\n        show\n        go to x: (0) y: (0)\n        forever\n            set y to ((3) * ([cos v] of ((timer) * (180)) ))\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [credits v]\nhide\n\n@Sword\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nstart sound [Sword v]\nset size to (80) %\npoint in direction (0)\ngo to [back v] layer\nforever\n    go to (player v)\nend\n\nwhen [space v] key pressed\nset rotation style [all around v]\nstart sound [Sword v]\nset size to (80) %\npoint in direction (0)\ngo to [back v] layer\nshow\nrepeat (12)\n    turn right (30) degrees\nend\nhide\n\nwhen I receive [hansd v]\nhide\nif <key (space v) pressed?> then\n    hide\nend\n\n@Enemy\n\ndefine Gravity (gravity) Jump Height (jump height) Speed (speed) Friction (friction) Slope (slope)\nchange [yv v] by (gravity)\nchange y by (yv)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (yv) ) / (yv)) * (-1))\n    end\n    set [yv v] to (<<(y position) < (([y position v] of [player v]) - (10))> and <(([abs v] of (yv) ) / (yv)) = [-1]>> * (jump height))\nend\nset [xv v] to (((xv) + ((<(x position) > ([x position v] of [player v])> * ((speed) * (-1))) + (<(x position) < ([x position v] of [player v])> * (speed)))) * (friction))\nchange x by (xv)\nset [enemy - slope v] to [0]\nrepeat until <<(Enemy - Slope) = ((slope) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [enemy - slope v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (Enemy - Slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (xv) ) / (xv)) * (-1))\n    end\nend\npoint towards (player v)\nif <(y position) < [-180]> then\n    delete this clone\nend\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(level) = [8]> then\n    Clone at [-78] [-39] [1]\n    Clone at [113] [6] [1]\nelse\n    if <(level) = [14]> then\n        Clone at [-183] [8] [1]\n    else\n        if <(level) = [17]> then\n            Clone at [32] [89] [1]\n        else\n            if <(level) = [18]> then\n                Clone at [0] [0] [2]\n                Clone at [63] [28] [1]\n                Clone at [172] [31] [2]\n            else\n                if <(level) = [19]> then\n                    Clone at [158] [179] [2]\n                    Clone at [63] [136] [1]\n                    Clone at [11] [59] [2]\n                    Clone at [-83] [105] [1]\n                    Clone at [-52] [161] [1]\n                    Clone at [158] [179] [2]\n                else\n                    if <(level) = [20]> then\n                        Clone at [124] [103] [2]\n                        Clone at [44] [142] [1]\n                        Clone at [-19] [44] [1]\n                    else\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Clone at (x) (y) (type)\ngo to x: (x) y: (y)\nswitch costume to (type)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [1]> then\n    forever\n        if <not <(Switch In Progress) = [yes]>> then\n            Gravity [-1] Jump Height [10] Speed [0.5] Friction [.75] Slope [5]\n            if <<<touching (sword v)?> or <touching (shuriken v)?>> or <touching (lava v)?>> then\n                start sound [Hit v]\n                set [slime x v] to (x position)\n                set [slime type v] to (costume [number v])\n                set [slime y v] to (y position)\n                broadcast (Slime Particles v)\n                delete this clone\n            end\n        end\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        forever\n            if <not <(Switch In Progress) = [yes]>> then\n                Gravity [-1] Jump Height [7] Speed [0.2] Friction [.75] Slope [2]\n                if <<<touching (sword v)?> or <touching (shuriken v)?>> or <touching (lava v)?>> then\n                    start sound [Hit v]\n                    set [slime x v] to (x position)\n                    set [slime type v] to (costume [number v])\n                    set [slime y v] to (y position)\n                    broadcast (Slime Particles v)\n                    delete this clone\n                end\n            end\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            forever\n                if <not <(Switch In Progress) = [yes]>> then\n                    Gravity [-1] Jump Height [16] Speed [0.7] Friction [.75] Slope [2]\n                    if <<<touching (sword v)?> or <touching (shuriken v)?>> or <touching (lava v)?>> then\n                        start sound [Hit v]\n                        set [slime x v] to (x position)\n                        set [slime type v] to (costume [number v])\n                        set [slime y v] to (y position)\n                        broadcast (Slime Particles v)\n                        delete this clone\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [death v]\nif  then\n    delete this clone\nend\nif <(level) = [8]> then\n    Clone at [-78] [-39] [1]\n    Clone at [113] [6] [1]\nelse\n    if <(level) = [14]> then\n        Clone at [-183] [8] [1]\n    else\n        if <(level) = [4]> then\n            Clone at [200] [-50] [2]\n            Clone at [65] [-40] [2]\n            Clone at [-20] [15] [2]\n        else\n            if <(level) = [5]> then\n                Clone at [200] [-50] [3]\n                Clone at [40] [-30] [3]\n            else\n                if <(level) = [8]> then\n                    Clone at [200] [-50] [3]\n                    Clone at [150] [-30] [2]\n                    Clone at [100] [0] [1]\n                else\n                    if <(level) = [9]> then\n                        Clone at [200] [-50] [2]\n                    else\n                        if <(level) = [11]> then\n                            Clone at [-168] [80] [3]\n                            Clone at [-100] [80] [3]\n                            Clone at [105] [53] [3]\n                        else\n                            if <(level) = [12]> then\n                                Clone at [213] [61] [2]\n                                Clone at [-117] [88] [2]\n                                Clone at [-10] [88] [2]\n                                Clone at [130] [-68] [2]\n                            else\n                                if <(level) = [13]> then\n                                    Clone at [-118] [116] [2]\n                                else\n                                    if <(level) = [15]> then\n                                        Clone at [47] [105] [3]\n                                    else\n                                        if <(level) = [19]> then\n                                            Clone at [155] [-1] [1]\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [boss battle v]\nrepeat until <(HP) < [1]>\n    wait (pick random (1) to (2)) seconds\n    if <(pick random (0) to (3)) > [1]> then\n        Clone at (pick random (100) to (200)) [-65] (pick random (1) to (3))\n    else\n        Clone at [-200] [-65] (pick random (2) to (3))\n    end\nend\n\nif <(level) = [3]> then\n    Clone at [200] [-50] [1]\n    Clone at [65] [-40] [1]\nelse\n    if <(level) = [4]> then\n        Clone at [200] [-50] [2]\n        Clone at [65] [-40] [2]\n        Clone at [-20] [15] [2]\n    else\n        if <(level) = [5]> then\n            Clone at [200] [-50] [3]\n            Clone at [40] [-30] [3]\n        else\n            if <(level) = [8]> then\n                Clone at [200] [-50] [3]\n                Clone at [150] [-30] [2]\n                Clone at [100] [0] [1]\n            else\n                if <(level) = [9]> then\n                    Clone at [200] [-50] [2]\n                else\n                    if <(level) = [11]> then\n                        Clone at [-168] [80] [3]\n                        Clone at [-100] [80] [3]\n                        Clone at [105] [53] [3]\n                    else\n                        if <(level) = [12]> then\n                            Clone at [213] [61] [2]\n                            Clone at [-117] [88] [2]\n                            Clone at [-10] [88] [2]\n                            Clone at [130] [-68] [2]\n                        else\n                            if <(level) = [13]> then\n                                Clone at [-118] [116] [2]\n                            else\n                                if <(level) = [15]> then\n                                    Clone at [47] [105] [3]\n                                else\n                                    if <(level) = [19]> then\n                                        Clone at [155] [-1] [1]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(level) = [4]> then\n    show\n    switch costume to (lava0 v)\n    go to [back v] layer\n    go to x: (0) y: (0)\n    forever\n        change [frame v] by (0.4)\n        set y to ((3) * ([sin v] of ((timer) * (180)) ))\n        switch costume to (join [Lava] (([floor v] of (frame) ) mod (4)))\n    end\nelse\n    if <(level) = [10]> then\n        show\n        switch costume to (lava1.0 v)\n        go to [back v] layer\n        go to x: (0) y: (0)\n        forever\n            change [frame v] by (0.4)\n            set y to ((3) * ([sin v] of ((timer) * (180)) ))\n            switch costume to (join [Lava1.] (([floor v] of (frame) ) mod (4)))\n        end\n    else\n        if <(level) = [11]> then\n            show\n            switch costume to (lava2.0 v)\n            go to [back v] layer\n            go to x: (0) y: (0)\n            forever\n                change [frame v] by (0.4)\n                set y to ((3) * ([sin v] of ((timer) * (180)) ))\n                switch costume to (join [Lava2.] (([floor v] of (frame) ) mod (4)))\n            end\n        else\n            hide\n        end\n    end\nend\n\nswitch costume to (lava0 v)\nwait (0.1) seconds\n\n@Slime Particles\n\nwhen flag clicked\nhide\nset [is clone? v] to []\n\nwhen I receive [slime particles v]\nif <not <(Is clone?) = [1]>> then\n    repeat (4)\n        Particles\n    end\nend\n\nwhen I start as a clone\nswitch costume to (SLIME TYPE)\nset [ghost v] effect to (0)\nset [color v] effect to (pick random (-5) to (5))\nset [brightness v] effect to (pick random (-40) to (10))\nset [is clone? v] to [1]\ngo to x: (SLIME X) y: (SLIME Y)\nshow\nset [xv v] to (pick random (-12) to (12))\nset [yv v] to (pick random (5) to (20))\nrepeat until <<touching (_edge_ v)?> or <touching (level v)?>>\n    change [yv v] by (-2)\n    set [xv v] to ((xv) * (0.9))\n    set [yv v] to ((yv) * (0.9))\n    change x by (xv)\n    change y by (yv)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (1)\n                                if <touching (level v)?> then\n                                    change y by (1)\n                                    if <touching (level v)?> then\n                                        change y by (1)\n                                        if <touching (level v)?> then\n                                            change y by (1)\n                                            if <touching (level v)?> then\n                                                change y by (1)\n                                                if <touching (level v)?> then\n                                                    change y by (1)\n                                                else\n                                                    change y by (-1)\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\ndefine Particles\nrepeat (5)\n    create clone of (_myself_ v)\nend\n\n@Intro\n\nwhen I start as a clone\nif <(ID) = [CircleExplosion]> then\n    set size to (100) %\n    go to x: (0) y: (0)\n    clear graphic effects\n    switch costume to (costume5 v)\n    wait until <(Zsxgdb) = [1]>\n    show\n    repeat (22)\n        turn right (5) degrees\n        move (Move) steps\n        change [move v] by (-.04)\n        change size by (-2)\n    end\n    repeat (12)\n        turn right (5) degrees\n        move (Move) steps\n        change size by (-4)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [Cool]> then\n    switch costume to (costume4 v)\n    go to x: (0) y: (0)\n    set size to (21) %\n    clear graphic effects\n    show\n    repeat (30)\n        change size by (10)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Cool]> then\n    switch costume to (costume4 v)\n    set size to (21) %\n    show\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [BarThing1]> then\n    switch costume to (bar2 v)\n    point in direction (90)\n    clear graphic effects\n    go to x: (-314) y: (0)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    show\n    Smooth Glide x: (217) y: (0) speed: (5)\nend\n\nwhen I start as a clone\nif <(ID) = [BarThing2]> then\n    switch costume to (bar2 v)\n    point in direction (90)\n    clear graphic effects\n    go to x: (-314) y: (0)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    show\n    Smooth Glide x: (122) y: (0) speed: (5)\nend\n\nwhen I start as a clone\nif <(ID) = [BarThing3]> then\n    switch costume to (bar2 v)\n    point in direction (90)\n    clear graphic effects\n    go to x: (-314) y: (0)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    show\n    Smooth Glide x: (28) y: (0) speed: (5)\nend\n\nwhen I start as a clone\nif <(ID) = [BarThing4]> then\n    switch costume to (bar2 v)\n    point in direction (90)\n    clear graphic effects\n    go to x: (-314) y: (0)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    show\n    Smooth Glide x: (-65) y: (0) speed: (5)\nend\n\nwhen I start as a clone\nif <(ID) = [BarThing5]> then\n    switch costume to (bar2 v)\n    point in direction (90)\n    clear graphic effects\n    go to x: (-314) y: (0)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    show\n    Smooth Glide x: (-158) y: (0) speed: (5)\nend\n\nwhen I start as a clone\nif <(ID) = [BarThing6]> then\n    switch costume to (bar2 v)\n    point in direction (90)\n    clear graphic effects\n    go to x: (-314) y: (0)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    show\n    Smooth Glide x: (-250) y: (0) speed: (5)\nend\n\nwhen I start as a clone\nif <(ID) = [Particles]> then\n    switch costume to (costume1 v)\n    go to x: (0) y: (0)\n    set [x v] to [0]\n    wait until <(Show) = [1]>\n    clear graphic effects\n    set size to (70) %\n    set [x v] to [0]\n    wait until <(Show) = [1]>\n    show\n    go to [front v] layer\n    repeat until <touching (_edge_ v)?>\n        change y by (Y)\n        move (8) steps\n        change [y v] by (-.07)\n    end\n    delete this clone\nend\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change [ghost v] effect by (-30)\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen I start as a clone\nif <(ID) = [Bars]> then\n    switch costume to (bar v)\n    show\n    point in direction (51)\n    set size to (34) %\n    wait (.02) seconds\n    change size by (20)\n    turn right (12) degrees\n    wait (.02) seconds\n    change size by (14)\n    turn right (9) degrees\n    wait (.02) seconds\n    change size by (12)\n    turn right (6) degrees\n    wait (.02) seconds\n    change size by (7)\n    turn right (3) degrees\n    wait (.02) seconds\n    change size by (5)\n    turn right (3) degrees\n    wait (.02) seconds\n    change size by (3)\n    turn right (2) degrees\n    wait (.02) seconds\n    change size by (2)\n    turn right (1.5) degrees\n    wait (.02) seconds\n    change size by (1)\n    turn right (1) degrees\n    wait (.02) seconds\n    change size by (1)\n    turn right (1) degrees\n    wait (.02) seconds\n    change size by (1)\n    point in direction (90)\n    wait (.02) seconds\nend\n\nwhen flag clicked\nhide\nset [id v] to [Bars]\ncreate clone of (_myself_ v)\nwait (.1) seconds\nset [y v] to [8]\nset [show v] to [0]\nwait (.5) seconds\nstart sound [Avicii - Broken Arrows v]\nwait (.5) seconds\nclear graphic effects\nset [size v] to [12]\nset [id v] to [Bars]\nrepeat (3)\n    go to x: (-216) y: (0)\n    hide\n    repeat (10)\n        create clone of (_myself_ v)\n        change x by (48)\n    end\n    change [brightness v] effect by (50)\nend\nwait () seconds\nset [id v] to [Line]\ncreate clone of (_myself_ v)\nwait () seconds\nset [id v] to [Thing]\ncreate clone of (_myself_ v)\nwait (1.2) seconds\nclear graphic effects\nrepeat (10)\n    set [id v] to [Square]\n    create clone of (_myself_ v)\n    change [brightness v] effect by (-10)\n    wait (.02) seconds\nend\nset [id v] to [BarThing1]\ncreate clone of (_myself_ v)\nwait (.1) seconds\nset [id v] to [BarThing2]\ncreate clone of (_myself_ v)\nwait (.1) seconds\nset [id v] to [BarThing3]\ncreate clone of (_myself_ v)\nwait (.1) seconds\nset [id v] to [BarThing4]\ncreate clone of (_myself_ v)\nwait (.1) seconds\nset [id v] to [BarThing5]\ncreate clone of (_myself_ v)\nwait (.1) seconds\nset [id v] to [BarThing6]\ncreate clone of (_myself_ v)\nwait () seconds\nset [id v] to [Circleeeee]\ncreate clone of (_myself_ v)\nwait (.2) seconds\nset [id v] to [Circleeeee2]\ncreate clone of (_myself_ v)\nwait () seconds\npoint in direction (90)\nrepeat (10)\n    set [id v] to [Particles]\n    create clone of (_myself_ v)\n    turn right (pick random (-90) to (90)) degrees\nend\nset [show v] to [1]\nset [id v] to [Text]\ncreate clone of (_myself_ v)\nwait () seconds\nset [id v] to [Flash]\ncreate clone of (_myself_ v)\nwait (.4) seconds\ngo to x: (9) y: (91)\nset [id v] to [CoolThing]\nhide\nrepeat (7)\n    create clone of (_myself_ v)\n    change x by (36)\nend\ngo to x: (-25) y: (91)\nset [id v] to [CoolThing2]\nrepeat (7)\n    create clone of (_myself_ v)\n    change x by (-36)\nend\nwait (.2) seconds\nrepeat (15)\n    turn right (pick random (-90) to (90)) degrees\n    set [id v] to [Cool]\n    create clone of (_myself_ v)\nend\nwait () seconds\nset [zsxgdb v] to [0]\nset [id v] to [CircleExplosion]\ngo to x: (0) y: (0)\nset [move v] to [12]\nrepeat (12)\n    turn right (30) degrees\n    create clone of (_myself_ v)\nend\nset [zsxgdb v] to [1]\nwait () seconds\nrepeat (30)\n    turn right (pick random (-90) to (90)) degrees\n    set [id v] to [Cool]\n    create clone of (_myself_ v)\nend\nwait (.05) seconds\nset [id v] to [End]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(ID) = [Bars]> then\n    set [ghost v] effect to (100)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Line]> then\n    set size to (100) %\n    point in direction (90)\n    clear graphic effects\n    go to x: (-480) y: (0)\n    switch costume to (line v)\n    set [ghost v] effect to (80)\n    show\n    set size to (100) %\n    Smooth Glide x: (0) y: (0) speed: (3)\n    repeat (12)\n        switch costume to (sizehack v)\n        change size by ((size) * (.5))\n        switch costume to (line v)\n        turn left ((direction) * (.05)) degrees\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Thing]> then\n    set size to (100) %\n    point in direction (90)\n    clear graphic effects\n    go to x: (0) y: (-201)\n    switch costume to (thing v)\n    wait (.8) seconds\n    show\n    repeat (12)\n        switch costume to (sizehack v)\n        change size by ((size) * (.3))\n        switch costume to (thing v)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Particles]> then\n    wait until <(Show) = [1]>\n    wait (12) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <(ID) = [Square]> then\n    set size to (100) %\n    point in direction (45)\n    go to x: (0) y: (0)\n    switch costume to (costume2 v)\n    show\n    repeat (12)\n        switch costume to (sizehack v)\n        change size by ((size) * (.3))\n        switch costume to (costume2 v)\n        turn left ((direction) * (.2)) degrees\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Circleeeee]> then\n    set size to (100) %\n    point in direction (90)\n    clear graphic effects\n    go to x: (0) y: (201)\n    switch costume to (thing2 v)\n    show\n    wait (.05) seconds\n    repeat (12)\n        switch costume to (sizehack v)\n        change size by ((size) * (.3))\n        switch costume to (thing2 v)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Circleeeee]> then\n    Smooth Glide x: (0) y: (0) speed: (3)\nend\n\nwhen I start as a clone\nif <(ID) = [Circleeeee2]> then\n    set size to (100) %\n    point in direction (90)\n    clear graphic effects\n    go to x: (0) y: (201)\n    switch costume to (thing v)\n    show\n    wait (.05) seconds\n    repeat (12)\n        switch costume to (sizehack v)\n        change size by ((size) * (.3))\n        switch costume to (thing v)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Circleeeee2]> then\n    Smooth Glide x: (0) y: (0) speed: (3)\nend\n\nwhen I start as a clone\nif <(ID) = [Text]> then\n    go to x: (0) y: (0)\n    clear graphic effects\n    point in direction (90)\n    set size to (20) %\n    show\n    switch costume to (text v)\n    repeat (29)\n        go to x: (([sin v] of ((timer) * (1000)) ) * (((size) - (100)) * (0.1))) y: (([sin v] of ((timer) * (800)) ) * (((size) - (100)) * (0.1)))\n        change size by (((70) - (size)) / (12))\n    end\n    set size to (80) %\n    forever\n        switch costume to (text v)\n        set size to (300) %\n        repeat (29)\n            go to x: (([sin v] of ((timer) * (1000)) ) * (((size) - (100)) * (0.1))) y: (([sin v] of ((timer) * (800)) ) * (((size) - (100)) * (0.1)))\n            change size by (((70) - (size)) / (12))\n        end\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Flash]> then\n    switch costume to (flash v)\n    go to x: (0) y: (0)\n    clear graphic effects\n    point in direction (90)\n    set size to (100) %\n    show\n    repeat (15)\n        change [ghost v] effect by (8)\n    end\n    repeat (50)\n        wait (.3) seconds\n        switch costume to (flash v)\n        go to x: (0) y: (0)\n        clear graphic effects\n        point in direction (90)\n        set size to (100) %\n        show\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Bars]> then\n    set size to (100) %\n    forever\n        switch costume to (costume3 v)\n        go to x: (0) y: (0)\n        clear graphic effects\n        point in direction (90)\n        go to [front v] layer\n        show\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [CoolThing]> then\n    switch costume to (coolthing1 v)\n    point in direction (90)\n    set size to (100) %\n    clear graphic effects\n    set y to (255)\n    wait (.2) seconds\n    show\n    point in direction (90)\n    repeat (3)\n        change y by (-40)\n    end\n    go to x: (x position) y: (91)\n    repeat (17)\n        next costume\n    end\nelse\n    if <(ID) = [CoolThing2]> then\n        set size to (100) %\n        point in direction (-90)\n        switch costume to (coolthing1 v)\n        clear graphic effects\n        set y to (-255)\n        show\n        repeat (3)\n            change y by (40)\n        end\n        go to x: (x position) y: (-91)\n        repeat (17)\n            next costume\n        end\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Text]> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Bars]> then\n    repeat (100)\n        switch costume to (sizehack v)\n        set size to (100) %\n        switch costume to (costume3 v)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [Bars]> then\n    wait (8.1) seconds\n    repeat (1)\n        change size by (-6)\n    end\n    repeat (1)\n        change size by (-6)\n    end\n    repeat (1)\n        change size by (-4)\n    end\n    repeat (1)\n        change size by (-3)\n    end\n    repeat (2)\n        change size by (-2)\n    end\n    repeat (2)\n        change size by (-1)\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [CoolThing]> then\n    forever\n        set size to (100) %\n    end\nelse\n    if <(ID) = [CoolThing2]> then\n        forever\n            set size to (100) %\n        end\n    end\nend\n\nwhen I start as a clone\nif <(ID) = [End]> then\n    switch costume to (costume6 v)\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    set [brightness v] effect to (-100)\n    point in direction (90)\n    set size to (100) %\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\n    broadcast (Story v)\n    wait (.3) seconds\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 <(ID) = [End]> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I receive [story v]\nif <(costume [number v]) = [34]> then\n\nwhen I receive [story v]\nhide\ndelete this clone\n\n@Credits\n\nwhen I receive [credits v]\ngo to x: (0) y: (-999999)\ngo to [front v] layer\nshow\nrepeat (900)\n    change y by (1)\nend\nhide\n\nwhen flag clicked\nhide\n\nif <(y position) > [566]> then\n    hide\nend\n\n@Story\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nforever\n    go to [front v] layer\nend\n\nwhen I receive [story v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (0)\nswitch costume to (1 v)\nwait (2) seconds\nrepeat (4)\n    repeat (20)\n        change [brightness v] effect by (-5)\n    end\n    wait (3) seconds\n    set [brightness v] effect to (100)\n    next costume\nend\nwait (1) seconds\nbroadcast (EndIntro v)\n\nwhen I receive [endintro v]\nhide\n\n