(scrolling platformer) Green Pea Apocalypse World
@Stage\n\nwhen flag clicked\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [play game v]\nswitch backdrop to (lv.1-3 v)\nforever\n\nwhen I receive [lv.2 v]\n\nwhen I receive [lv.3 v]\n\nbroadcast (splim v)\n\nclear sound effects\n\nswitch backdrop to (lv.1-3 v)\n\nwhen I receive [play game v]\nforever\n    if <(biome music) = [1]> then\n        stop all sounds\n        play sound [Music-Jungle v] until done\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <(biome music) = [2]> then\n        stop all sounds\n        play sound [Music-Desert v] until done\n    end\nend\n\nwhen flag clicked\nset [biome music v] to [1]\n\n@player\n\nwhen I receive [home screen v]\nstop [other scripts in sprite v]\n\nwhen I receive [flag v]\nset size to (100) %\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to (world)\nforever\n    broadcast (reset v) and wait\n    broadcast (setup v) and wait\n    Game on\n    repeat until <(EXIT) > []>\n        broadcast (Tick v)\n        Tick\n    end\n    if <(EXIT) = [win]> then\n        broadcast (win 2 v)\n        Game - win\n    else\n        Game - Die\n    end\nend\n\ndefine Game on\nset size to (90) %\nset [sx v] to [0]\nset [x v] to [0]\nset [in air v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [exit v] to []\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nclear graphic effects\nshow\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    Change Player x by [-6]\nend\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    Change Player x by [6]\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange player y by (sy)\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [restart]\nend\nchange [x v] by (8)\nchange [x v] by (-8)\n\ndefine Change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nTest Die\nif <(fall) = [false]> then\n    repeat until <not <touching (ground v)?>>\n        if <(sy) > [0]> then\n            change [y v] by (-1)\n        else\n            change [y v] by (1)\n            set [in air v] to [0]\n        end\n        Position\n        set [sy v] to [0]\n    end\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nTest Die\nif <touching (ground v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (ground v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (ground v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nset [exit v] to []\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (die v)\n\nwait (0.5) seconds\n\nshow\n\ndefine Test Die\nif <<touching (traps v)?> or <key (r v) pressed?>> then\n    if <(can get hurt) = [true]> then\n        set [exit v] to [restart]\n    end\nend\n\nchange size by (-)\n\ndefine Game - win\nrepeat (50)\n    point towards (front layer deco v)\n    turn right (65) degrees\n    move ((distance to [front layer deco v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (1)\nend\nbroadcast (home screen v)\nhide\nchange [level v] by (1)\n\ndefine tick 2\n\nTick\n\nwhen flag clicked\nforever\n    if <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <<<mouse down?> and <(x position) > (mouse x)>> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        if <not <<<(costume [number v]) = [9]> or <(costume [number v]) = [10]>> or <(costume [number v]) = [13]>>> then\n            if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n                point in direction (90)\n            end\n            if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n                point in direction (-90)\n            end\n        end\n    else\n        point in direction (90)\n    end\nend\n\nwhen I receive [hide home screen v]\nbroadcast (Flag v) and wait\nbroadcast (Play game v) and wait\n\nbroadcast (Tick v) and wait\nTick\n\ndefine win\nrepeat (10)\n    change size by (10)\nend\nset size to (90) %\nbroadcast (reset v)\n\nwhen I receive [win 2 v]\nset volume to (100) %\nif <(EXIT) = [win]> then\n\nwhen I receive [jump v]\nset [sy v] to [34]\n\nwhen flag clicked\nswitch costume to (costume10 v)\n\nwhen flag clicked\nswitch costume to (costume10 v)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        if <key (space v) pressed?> then\n            set [ghost v] effect to (80)\n            set [can get hurt v] to [false]\n        else\n            clear graphic effects\n            set [can get hurt v] to [true]\n        end\n    end\n    if <<<touching color (#664900)?> or <touching color (#3d3102)?>> and <key (down arrow v) pressed?>> then\n        set [fall v] to [true]\n        wait (0.3) seconds\n        set [fall v] to [false]\n    end\nend\n\nwhen I receive [jump 2  v]\nset [sy v] to [20]\n\nwhen flag clicked\nset [jumps v] to [0]\nforever\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        change [jumps v] by (1)\n        wait (0.65) seconds\n    end\nend\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [home screen v]\nhide\n\nwhen I receive [splim v]\nbroadcast (Flag v) and wait\n\nset [check point v] to [0]\nset [check point v] to [1]\n\nwhen I receive [die v]\nwait (0.105) seconds\nforever\n    if <(EXIT) = []> then\n        if <(check point) = [1]> then\n            Change player y by [181]\n            Change Player x by [789]\n            show\n            stop [this script v]\n        else\n            if <(check point) = [2]> then\n                broadcast (check 2 respawn v)\n                Change player y by ((checkpoint 2 place y) + (20))\n                Change Player x by [-20]\n                hide\n                wait (0.3) seconds\n                show\n                stop [this script v]\n            end\n            if <(check point) = [3]> then\n                Change player y by ((check point 3 place y) + (20))\n                Change Player x by (check point 3 place x)\n                hide\n                wait (0.3) seconds\n                show\n                stop [this script v]\n            end\n            if <(check point) = [0]> then\n                Change player y by [0]\n                Change Player x by [0]\n                show\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [check point v] to [0]\nforever\n    if <touching (checkpoint v)?> then\n        broadcast (checkpoint one v)\n        set [check point v] to [1]\n    end\n    if <touching (checkpoint2 v)?> then\n        broadcast (checkpoint two v)\n        set [check point v] to [2]\n    end\n    if <touching (checkpoint3 v)?> then\n        broadcast (checkpoint 3 v)\n        set [check point v] to [3]\n    end\n    if <touching color (#00e800)?> then\n        set [biome music v] to [1]\n    end\n    if <touching color (#ffe900)?> then\n        set [biome music v] to [2]\n    end\nend\n\nwhen flag clicked\nset [check point v] to [0]\n\nwhen flag clicked\nset [fall v] to [false]\n\nwhen I receive [splim v]\nforever\n    wait (pick random (10) to (15)) seconds\n    broadcast (rain place v)\n    set [rain level v] to (pick random (3) to (3))\n    wait (pick random (16) to (30)) seconds\n    set [rain level v] to [stop]\nend\n\nhide variable [rain level v]\n\nset [check point v] to [2]\n\nbroadcast (checkpoint 3 v)\n\n@ground\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (costume1 v)\n    Clone at x: [460] y: [-20]\n    Clone at x: [250] y: [80]\n    Clone at x: [-280] y: [100]\n    Clone at x: [700] y: [-400]\n    Clone at x: [100] y: [500]\n    Clone at x: [20] y: [-300]\n    Clone at x: [70] y: [280]\n    Clone at x: [-300] y: [200]\n    Clone at x: [-450] y: [130]\n    Clone at x: [-350] y: [-150]\n    Clone at x: [-200] y: [-120]\n    Clone at x: [1600] y: [330]\n    Clone at x: [0] y: [0]\n    Clone at x: [-10] y: [-470]\n    Clone at x: [-80] y: [-200]\n    Clone at x: [-410] y: [800]\n    Clone at x: [880] y: [-500]\n    Clone at x: [120] y: [-260]\n    Clone at x: [120] y: [430]\n    Clone at x: [200] y: [-300]\n    Clone at x: [400] y: [50]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n        Clone at x: [0] y: [-150]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\n@front layer deco\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (costume1 v)\n    Clone at x: [460] y: [-20]\n    Clone at x: [250] y: [80]\n    Clone at x: [-280] y: [100]\n    Clone at x: [700] y: [-400]\n    Clone at x: [100] y: [500]\n    Clone at x: [20] y: [-300]\n    Clone at x: [70] y: [280]\n    Clone at x: [-300] y: [200]\n    Clone at x: [-450] y: [130]\n    Clone at x: [-350] y: [-150]\n    Clone at x: [-200] y: [-120]\n    Clone at x: [1600] y: [330]\n    Clone at x: [0] y: [0]\n    Clone at x: [-10] y: [-470]\n    Clone at x: [-80] y: [-200]\n    Clone at x: [-410] y: [800]\n    Clone at x: [880] y: [-500]\n    Clone at x: [120] y: [-260]\n    Clone at x: [120] y: [430]\n    Clone at x: [200] y: [-300]\n    Clone at x: [400] y: [50]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [460] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [front v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [150] y: [210]\nClone at x: [350] y: [210]\nClone at x: [350] y: [210]\nClone at x: [600] y: [-200]\nClone at x: [400] y: [-200]\nClone at x: [20] y: [-230]\n\nbroadcast (reset v)\nbroadcast (setup v)\n\n@front layer\n\nwhen flag clicked\n\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\nwhen I receive [home screen v]\nstop [other scripts in sprite v]\n\n@back layer\n\nwhen flag clicked\n\nswitch costume to (costume1 v)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\nwhen I receive [home screen v]\nstop [other scripts in sprite v]\n\n@back layer deco\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (costume1 v)\n    Clone at x: [460] y: [-20]\n    Clone at x: [250] y: [80]\n    Clone at x: [-280] y: [100]\n    Clone at x: [700] y: [-400]\n    Clone at x: [100] y: [500]\n    Clone at x: [20] y: [-300]\n    Clone at x: [70] y: [280]\n    Clone at x: [-300] y: [200]\n    Clone at x: [-450] y: [130]\n    Clone at x: [-350] y: [-150]\n    Clone at x: [-200] y: [-120]\n    Clone at x: [1600] y: [330]\n    Clone at x: [0] y: [0]\n    Clone at x: [-10] y: [-470]\n    Clone at x: [-80] y: [-200]\n    Clone at x: [-410] y: [800]\n    Clone at x: [880] y: [-500]\n    Clone at x: [120] y: [-260]\n    Clone at x: [120] y: [430]\n    Clone at x: [200] y: [-300]\n    Clone at x: [400] y: [50]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [460] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ngo to [front v] layer\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [150] y: [210]\nClone at x: [350] y: [210]\nClone at x: [350] y: [210]\nClone at x: [600] y: [-200]\nClone at x: [400] y: [-200]\nClone at x: [20] y: [-230]\n\nbroadcast (reset v)\nbroadcast (setup v)\n\n@traps\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (costume1 v)\n    Clone at x: [460] y: [-20]\n    Clone at x: [250] y: [80]\n    Clone at x: [-280] y: [100]\n    Clone at x: [700] y: [-400]\n    Clone at x: [100] y: [500]\n    Clone at x: [20] y: [-300]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [460] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nClone at x: [370] y: [210]\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [150] y: [210]\nClone at x: [350] y: [210]\nClone at x: [350] y: [210]\nClone at x: [600] y: [-200]\nClone at x: [400] y: [-200]\nClone at x: [20] y: [-230]\n\n@for copy paste\n\n@coin\n\nwhen I receive [setup v]\n\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (costume1 v)\n    Clone at x: [80] y: [-180]\n    Clone at x: [-20] y: [180]\n    Clone at x: [60] y: [0]\n    wait (0) seconds\n    Clone at x: [160] y: [80]\n    Clone at x: [60] y: [0]\n    Clone at x: [60] y: [0]\n    Clone at x: [60] y: [-1000]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [460] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [150] y: [210]\nClone at x: [350] y: [210]\nClone at x: [350] y: [210]\nClone at x: [600] y: [-200]\nClone at x: [400] y: [-200]\nClone at x: [20] y: [-230]\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    hide\n    go to [front v] layer\n    next costume\nend\n\nwhen I start as a clone\nset size to (100) %\nshow\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\n    next costume\n    if <touching (player v)?> then\n        start sound [Collect v]\n        change [coin v] by (1)\n        delete this clone\n    end\nend\n\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nset [coin v] to [0]\n\nClone at x: [60] y: [0]\n\nwhen I receive [home screen v]\nstop [other scripts in sprite v]\n\n@starting ani character2\n\nwhen flag clicked\ngo to [front v] layer\nhide\nwait (2) seconds\nbroadcast (ani2 v)\nshow\nset [sine v] to [0]\nforever\n    change [sine v] by (10)\n    point in direction ((([sin v] of (sine) ) * (15)) + (90))\n    set size to ((([sin v] of ((sine) * (2)) ) * (10)) + (100)) %\nend\n\nwhen I receive [ani2 v]\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\nrepeat (16)\n    next costume\n    wait (0.01) seconds\nend\nwait (0.4) seconds\nhide\nbroadcast (ani3 v)\n\nwhen I receive [start2 v]\nhide\n\n@starting ani character\n\nwhen flag clicked\ngo to [front v] layer\nset [intro size v] to [90]\nhide\nwait (2) seconds\nset [sine v] to [0]\nforever\n    point in direction ((([sin v] of (sine) ) * (15)) + (90))\n    set size to ((([sin v] of ((sine) * (2)) ) * (10)) + (intro size)) %\nend\n\nforever\n\nwhen flag clicked\n\nwhen I receive [ani3 v]\ngo to [front v] layer\nset size to (100) %\nswitch costume to (costume1 v)\nshow\nrepeat (9)\n    next costume\n    change [intro size v] by (-1)\nend\nrepeat (9)\n    next costume\n    wait (0.01) seconds\n    change [intro size v] by (-1.5)\nend\nrepeat (9)\n    next costume\n    change [intro size v] by (-2)\n    wait (0.05) seconds\nend\nrepeat (9)\n    change [intro size v] by (-3)\n    next costume\n    wait (0.07) seconds\nend\nrepeat (6)\n    change [intro size v] by (-4)\nend\nhide\nbroadcast (splim v)\n\nbroadcast (start2 v)\nbroadcast (start v)\nbroadcast (start4 v)\n\nwhen I receive [fombell v]\nwait (0.01) seconds\ngo to [front v] layer\nshow\nset size to (1) %\nswitch costume to (costume1 v)\nrepeat (10)\n    change size by (10)\nend\nwait (1) seconds\nbroadcast (ani2 v)\nhide\n\n@heart and star\n\nwhen I start as a clone\nset [yvelocity v] to [0]\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to [25]\nend\nrepeat (50)\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\nset [turn v] to (pick random (3) to (15))\ngo to x: (pick random (-235) to (235)) y: (-195)\nset size to (pick random (75) to (115)) %\nswitch costume to (pick random (1) to (8))\ngo [forward v] (50) layers\nshow\n\nwhen I receive [hideeeee v]\nhide\ngo to x: (0) y: (-195)\nrepeat (25)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\n@starting ani backround\n\nwhen I receive [stop music v]\nset volume to (0) %\n\nwhen I receive [start music v]\nset volume to (100) %\n\nbroadcast (start2 v)\nbroadcast (start v)\nbroadcast (start4 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to [front v] layer\nclear graphic effects\nshow\nwait (1.3) seconds\nstart sound [Unison-Aperture-NCS-Release v]\nbroadcast (HIDEEEEE v)\n\nwhen I receive [start2 v]\nhide\nstop [other scripts in sprite v]\nstop all sounds\n\nwhen I receive [splim v]\nswitch costume to (costume2 \(7\) v)\n\nwhen I receive [splim v]\nforever\n    play sound [Music-Title_Screen v] until done\nend\n\nwhen I receive [splim v]\nbroadcast (Play game v) and wait\n\nwhen I receive [//lightout v]\nset volume to (0) %\nstop [other scripts in sprite v]\n\nwhen I receive [hideeeee v]\nset volume to (100) %\nwait (3) seconds\nrepeat (100)\n    change volume by (-1)\nend\n\nwhen I receive [splim v]\nhide\n\nset [rain level v] to [stop]\n\nset [rain level v] to [small]\n\nset [rain level v] to [mid]\n\nset [rain level v] to [large]\n\n@checkpoint\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [1]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [790] y: [338]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume2 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint one v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\n@rain\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nset size to (100) %\nset [ghost v] effect to (30)\ngo to x: (pick random (-240) to (230)) y: (175)\nset [dir v] to (pick random (-2) to (2))\nset [speed v] to (pick random (20) to (25))\nshow\nset pen color to (#62acd5)\npen down\nset pen size to (3)\nrepeat until <<(y position) < [-170]> or <<touching (player v)?> or < or <touching (ground v)?>>>>\n    point in direction (((180) + (dir)) + (global dir))\n    move (((1) * (((Falling Speed) + (1)) / (30))) * (Speed)) steps\nend\nmove (((1) * (((Falling Speed) + (1)) / (30))) * (Speed)) steps\nturn left (pick random (-60) to (110)) degrees\nswitch costume to (pick random (2) to (7))\nset size to (0) %\nset [i v] to [25]\nrepeat (10)\n    change size by (i)\n    change [ghost v] effect by ((i) / (2))\n    change [i v] by (-2)\nend\ndelete this clone\n\nwhen I receive [rain v]\nset [global dir v] to [-10]\nforever\n    set [strength v] to (pick random (-5) to (10))\n    repeat (100)\n        change [global dir v] by ((strength) / (100))\n    end\n    repeat (100)\n        change [global dir v] by (((strength) / (100)) * (-1))\n    end\nend\n\nwhen I receive [rain place v]\nforever\n    if <(rain level) = [1]> then\n        create clone of (_myself_ v)\n        stop [other scripts in sprite v]\n        broadcast (rain v)\n        broadcast (small rain v)\n        delete this clone\n    end\n    if <(rain level) = [2]> then\n        create clone of (_myself_ v)\n        stop [other scripts in sprite v]\n        broadcast (rain v)\n        broadcast (mid rain v)\n        delete this clone\n    end\n    if <(rain level) = [2]> then\n        create clone of (_myself_ v)\n    end\n    if <(rain level) = [3]> then\n        create clone of (_myself_ v)\n        stop [other scripts in sprite v]\n        broadcast (rain v)\n        broadcast (large rain v)\n        delete this clone\n    end\n    if <(rain level) = [3]> then\n        create clone of (_myself_ v)\n    end\n    if <(rain level) = [3]> then\n        create clone of (_myself_ v)\n    end\n    if <(rain level) = [stop]> then\n        broadcast (stop rain v)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nset [rain level v] to [3]\n\n@rain1\n\nwhen flag clicked\nhide variable [trail v]\nset [vis? v] to [0]\nset [falling speed v] to [20]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset [trail v] to [65]\nforever\n    set [ghost v] effect to (Trail)\n    stamp\nend\n\nwhen flag clicked\nforever\n    hide\n    wait (pick random (5) to (10)) seconds\n    switch costume to (costume2 v)\n    repeat (3)\n        set [ghost v] effect to (0)\n        stamp\n    end\n    switch costume to (costume1 v)\n    play sound (pick random (1) to (2)) until done\nend\n\nswitch costume to (rain v)\n\nwhen I receive [rain place v]\nrepeat until <(rain level) = [stop]>\n    if <(rain level) = [1]> then\n        play sound [rain-07.mp4 v] until done\n    end\n    if <(rain level) = [2]> then\n        play sound [rain-07.mp3 v] until done\n    end\n    if <(rain level) = [1]> then\n        play sound [rain-07.mp4 v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(biome music) = [1]> then\n        switch costume to (costume1 v)\n    end\n    if <(biome music) = [2]> then\n        switch costume to (costume2 v)\n    end\nend\n\n@checkpoint2\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [2]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [-90] y: [620]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume2 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [check point 2 place x v] to (x)\nset [checkpoint 2 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint two v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\n@checkpoint3\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [3]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [1600] y: [370]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume2 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [check point 3 place x v] to (x)\nset [check point 3 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint 3 v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\n@launch pad\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [1830] y: [175]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume2 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    if <touching (player v)?> then\n        broadcast (jump v)\n        start sound [Low Boing v]\n        repeat (12)\n            next costume\n        end\n        switch costume to (costume1 v)\n    end\n    if <not <touching (player v)?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@water\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nclear graphic effects\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (costume1 v)\n    set [ghost v] effect to (30)\n    Clone at x: [0] y: [-100]\n    Clone at x: [200] y: [100]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\n    Clone at x: [200] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        broadcast (level 2 v) and wait\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\n\ngo to [front v] layer\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nbroadcast (reset v)\nbroadcast (setup v)\n\n@launch pad2\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [1000] y: [590]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume2 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (jump v)\n        start sound [Low Boing v]\n        repeat (12)\n            next costume\n        end\n        switch costume to (costume1 v)\n    end\n    if <not <touching (player v)?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\n@Sprite1\n\nwhen flag clicked\ngo to [front v] layer\nclear graphic effects\nrepeat (50)\n    go to [front v] layer\n    change [ghost v] effect by (2)\nend\n\n@market front wall\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [2440] y: [132]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume2 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\ndelete this clone\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\n        if <touching (player v)?> then\n            set [ghost v] effect to (70)\n        else\n            clear graphic effects\n        end\n    end\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\n@market front wall2\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [2800] y: [160]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume2 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\ndelete this clone\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\n        if <touching (player v)?> then\n            set [ghost v] effect to (70)\n        else\n            clear graphic effects\n        end\n    end\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\n
This game is best for MacBook another device might glitch\n\nThis is my first scrolling game :) so there might be some bugs, arrow keys to move also it is mobile friendly there isn't a way to win it is just a world for looking around you can explore or do anything you won't don't touch red, list of glitches that might happen some time check point won't work you can press R key to spawn at the checkpoint or if you are stuck if it still don't work you need to hit green flag again also if you are dropping down from a bridge do not press any key when falling of a bridge otherwise the game breaks.\n\nV1.0 : released \n\nV1.1 : new biome music desert\n\nV1.2 : background now change colour depend on the biome you are in also desert have been expanded! and update on intro\n\nV1.3 : huge expend desert\n\nComing soon :\nBigger desert and snow biome\n\nTags : #game #explor #jungle #desert #snow #green #pea #apocalypse #world #platfomer #scrolling #terraria #fun #easy #art #durp #rain #checkpoint #art\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nOMG this is on 12# trending\nCan this get featured ?