2.5D Minecraft Platformer 

Instructions: you are skater that have to go to the end flag to pass to the next track. \nDOUBLE CLICK THE FLAG ARROW KEYS TO MOVE AND DOUBLE CLICK THE FLAG \nALL LEVELS ARE POSSIBLE\nmore levels added 

@Stage\n\nwhen [m v] key pressed\nshow variable [mouse v]\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [,  ] ((mouse y) + (SCROLL Y))))\n\nwhen flag clicked\nswitch backdrop to (blue sky 2 2 v)\nforever\n    if <(LEVEL) = [3]> then\nend\n\nwhen I receive [level 3 v]\nset [brightness v] effect to (90)\n\nrepeat (10)\n\nwait (5) seconds\nswitch backdrop to (blue sky 2 2 v)\n\nforever\n\nwhen I receive [level 4 v]\nset [brightness v] effect to (-100)\n\nwhen I receive [level 5 v]\nswitch backdrop to (blue sky 2 2 v)\nset [brightness v] effect to (0)\n\nwhen I receive [level 2 v]\nswitch backdrop to (blue sky 2  v)\n\nwhen I receive [level 6 v]\nset [brightness v] effect to (0)\nswitch backdrop to (blue sky 2 3 v) and wait\n\nwhen flag clicked\nswitch backdrop to (blue sky 2  v)\nforever\n    if <(LEVEL) = [1]> then\n        clear graphic effects\n        switch backdrop to (blue sky 2 2 v)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (blue sky 2  v)\nforever\n    if <(LEVEL) = [7]> then\n        switch backdrop to (backdrop1 v)\n        set [brightness v] effect to (100)\n    end\nend\n\nforever\n\nwait (0.0) seconds\n\nwhen flag clicked\nswitch backdrop to (blue sky 2  v)\nforever\n    if <(LEVEL) = [8]> then\n        switch backdrop to (blue sky 2  v)\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (blue sky 2  v)\nforever\n    if <(LEVEL) = [5]> then\n        clear graphic effects\n        switch backdrop to (level 3 v)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (blue sky 2  v)\nforever\n    if <(LEVEL) = [2]> then\n        clear graphic effects\n        switch backdrop to (blue sky 2  v)\n    end\nend\n\n@blank\n\nwhen flag clicked\nset [can get hurt v] to [true]\nset [coins v] to [0]\n\n@Cube\n\nwhen flag clicked\nbroadcast (Flag v) and wait\nbroadcast (Play game v) and wait\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 [-8]\nend\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    Change Player x by [8]\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\nif <key (space v) pressed?> then\n\ndefine Change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nTest Die\nrepeat until <not <touching (sprite1 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]\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 (sprite1 v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (sprite1 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 (sprite1 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\n\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\n\nwait (0.5) seconds\n\nshow\n\ndefine Test Die\nif <<touching (danger4 v)?> or <<touching (danger3 v)?> or <<touching (danger2 v)?> or <<touching (sprite5 v)?> and <(LEVEL) = [4]>>>>> 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 (sprite3 v)\n    turn right (65) degrees\n    move ((distance to [sprite3 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\nif <(in air) < [4]> then\n    set [sy v] to [16]\nend\n\ndefine tick 2\n\nTick\n\nbroadcast (Tick v) and wait\n\nwait (0.02) seconds\n\nswitch costume to (cu v)\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\ntick 2\n\ndefine win\nplay sound [Win v] until done\n\nwhen I receive [win 2 v]\nset volume to (100) %\nif <(EXIT) = [win]> then\n    if <(sound effects) = [on]> then\n        win\n    end\nend\n\nwhen I receive [crystal v]\nif <(sound effects) = [on]> then\n    set volume to (100) %\n    play sound [Collect v] until done\nend\n\nbroadcast (home screen v)\n\nwhen I receive [jump v]\nset [sy v] to [40]\n\nwhen flag clicked\nswitch costume to (costume10 v)\n\nwhen flag clicked\nswitch costume to (costume10 v)\n\nwhen flag clicked\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume10 v)\nclear graphic effects\n\nwhen I receive [1 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume2 v)\nclear graphic effects\n\nwhen I receive [2 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume3 v)\nclear graphic effects\n\nwhen I receive [3 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume4 v)\nclear graphic effects\n\nwhen I receive [4 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume5 v)\nclear graphic effects\n\nwhen I receive [5 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume6 v)\nclear graphic effects\n\nwhen I receive [6 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume7 v)\nclear graphic effects\n\nwhen I receive [7 v]\nset [effect 2 v] to [off]\nset [effect v] to [on]\nswitch costume to (costume8 v)\nrepeat until <(effect) = [off]>\n    change [color v] effect by (3)\nend\n\nwhen I receive [8 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume9 v)\nclear graphic effects\n\nwhen I receive [9 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume11 v)\nclear graphic effects\n\nwhen I receive [10 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume12 v)\nclear graphic effects\n\nwhen I receive [11 v]\nset [effect v] to [off]\nset [effect 2 v] to [on]\nswitch costume to (costume10 v)\nclear graphic effects\n\nwhen I receive [12 v]\nset [effect v] to [off]\nset [effect 2 v] to [off]\nswitch costume to (costume13 v)\nclear graphic effects\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\nend\n\nwhen I receive [jump 2  v]\nset [sy v] to [20]\n\nwhen I receive [14 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume10 v)\nclear graphic effects\n\nwhen I receive [13 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume1 v)\nclear graphic effects\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\n@Sprite3\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    set [exit v] to [win]\n    change [coins v] by (10)\nend\n\ndelete this clone\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nset [ghost v] effect to (50)\nset [brightness v] effect to (0)\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [2400] y: [250]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 1 1 v)\n        Clone at x: [3019] y: [1320]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 1 1 v)\n            Clone at x: [7385] y: [314]\n        else\n            if <(LEVEL) = [4]> then\n                set [brightness v] effect to (10)\n                switch costume to (costume1 v)\n                Clone at x: [2750] y: [307]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (costume1 v)\n                    Clone at x: [3752] y: [243]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (costume1 v)\n                        Clone at x: [4313] y: [-29]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume6 v)\n                            Clone at x: [3995] y: [258]\n                        else\n                            if <(LEVEL) = [8]> then\n                                clear graphic effects\n                                switch costume to (costume1 v)\n                                Clone at x: [6280] y: [311]\n                            else\n                                if <(LEVEL) = [9]> then\n                                    clear graphic effects\n                                    switch costume to (costume7 v)\n                                    Clone at x: [99999999999999999999] y: [999999999]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nClone at x: [240] y: [22]\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\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nnext costume\n\nwhen flag clicked\nforever\n    if <not <(LEVEL) = [7]>> then\n        turn right (3) degrees\n    else\n        point in direction (90)\n    end\nend\n\nrepeat (6)\n    next costume\n    wait (0.05) seconds\nend\n\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    wait\nend\n\ndefine wait\nwait (1) seconds\nwait (0.1) seconds\n\nwait (1) seconds\n\nwhen I receive [home screen v]\n\nwait (2) seconds\nset [exit v] to [die]\n\nwait (0.05) seconds\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    set size to (120) %\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [7]> then\n        switch costume to (costume6 v)\n    else\n        switch costume to (costume5 v)\n    end\nend\n\n@Sprite2\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    change [coins v] by (1)\n    if <(coins) = (COLLECTED MAX)> then\n        broadcast (Open portal v)\n    end\n    broadcast (crystal v)\n    delete this clone\nend\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    set size to (100) %\n    switch costume to (crystal v)\n    Clone at x: [420] y: [3]\n    Clone at x: [520] y: [3]\n    Clone at x: [638] y: [80]\n    Clone at x: [807] y: [50]\n    Clone at x: [1118] y: [50]\n    Clone at x: [1301] y: [70]\n    Clone at x: [1479] y: [45]\n    Clone at x: [1585] y: [60]\n    Clone at x: [2060] y: [-60]\n    Clone at x: [2060] y: [-20]\n    Clone at x: [2060] y: [20]\n    Clone at x: [2060] y: [60]\n    Clone at x: [2060] y: [100]\n    Clone at x: [2060] y: [140]\nelse\n    if <(LEVEL) = [2]> then\n        set size to (100) %\n        switch costume to (crystal v)\n        Clone at x: [200] y: [139]\n        Clone at x: [460] y: [230]\n        Clone at x: [420] y: [230]\n        Clone at x: [380] y: [230]\n        Clone at x: [340] y: [230]\n        Clone at x: [598] y: [310]\n        Clone at x: [614] y: [346]\n        Clone at x: [614] y: [346]\n        Clone at x: [650] y: [367]\n        Clone at x: [893] y: [510]\n        Clone at x: [885] y: [556]\n        Clone at x: [849] y: [577]\n        Clone at x: [1010] y: [1382]\n        Clone at x: [1010] y: [1420]\n        Clone at x: [1010] y: [1460]\n        Clone at x: [2854] y: [1100]\n        Clone at x: [2894] y: [1100]\n        Clone at x: [2934] y: [1100]\n    else\n        if <(LEVEL) = [3]> then\n            go to [back v] layer\n            set size to (120) %\n            switch costume to (crystal v)\n            Clone at x: [484] y: [91]\n            Clone at x: [604] y: [96]\n            Clone at x: [854] y: [95]\n            Clone at x: [1015] y: [151]\n            Clone at x: [1243] y: [99]\n            Clone at x: [1391] y: [307]\n            Clone at x: [1833] y: [74]\n            Clone at x: [1997] y: [151]\n            Clone at x: [2146] y: [272]\n            Clone at x: [2364] y: [117]\n            Clone at x: [3306] y: [-87]\n            Clone at x: [3498] y: [0]\n            Clone at x: [3686] y: [50]\n            Clone at x: [3854] y: [57]\n            Clone at x: [4428] y: [366]\n            Clone at x: [4549] y: [-154]\n            Clone at x: [4597] y: [-132]\n            Clone at x: [4637] y: [-128]\n            Clone at x: [4677] y: [-124]\n            Clone at x: [4707] y: [-120]\n            Clone at x: [5423] y: [-88]\n            Clone at x: [7420] y: [-56]\n        else\n            if <(LEVEL) = [4]> then\n                go to [back v] layer\n                set size to (120) %\n                switch costume to (crystal2 v)\n                Clone at x: [631 ] y: [72]\n                Clone at x: [822] y: [75]\n                Clone at x: [1337] y: [86]\n                Clone at x: [1474] y: [135]\n                Clone at x: [1617] y: [177]\n                Clone at x: [1765] y: [50]\n                Clone at x: [2206] y: [212]\n                Clone at x: [2528] y: [413]\n            else\n                if <(LEVEL) = [5]> then\n                    go to [back v] layer\n                    set size to (120) %\n                    switch costume to (crystal v)\n                    Clone at x: [258] y: [-100]\n                    Clone at x: [258] y: [-50]\n                    Clone at x: [258] y: [0]\n                    Clone at x: [258] y: [50]\n                    Clone at x: [1037] y: [234]\n                    Clone at x: [1806] y: [327]\n                    Clone at x: [1998] y: [433]\n                else\n                    if <(LEVEL) = [6]> then\n                        go to [back v] layer\n                        set size to (120) %\n                        switch costume to (crystal2 v)\n                        Clone at x: [1062] y: [-37]\n                        Clone at x: [1382] y: [-6]\n                        Clone at x: [1495] y: [85]\n                        Clone at x: [1753] y: [170]\n                        Clone at x: [1890] y: [125]\n                        Clone at x: [2012] y: [151]\n                        Clone at x: [2329] y: [47]\n                        Clone at x: [2492] y: [36]\n                        Clone at x: [2648] y: [-27]\n                        Clone at x: [2824] y: [-2]\n                        Clone at x: [2981] y: [-30]\n                        Clone at x: [3170] y: [-30]\n                    else\n                        if <(LEVEL) = [7]> then\n                            go to [back v] layer\n                            set size to (120) %\n                            switch costume to (costume1 v)\n                            Clone at x: [545] y: [21]\n                            Clone at x: [831] y: [-19]\n                            Clone at x: [993] y: [40]\n                            Clone at x: [1160] y: [109]\n                            Clone at x: [1769] y: [137]\n                            Clone at x: [2854] y: [127]\n                            Clone at x: [3500] y: [128]\n                            Clone at x: [3706] y: [168]\n                        else\n                            if <(LEVEL) = [8]> then\n                                go to [back v] layer\n                                set size to (120) %\n                                set [brightness v] effect to (10)\n                                switch costume to (crystal v)\n                                Clone at x: [867] y: [124]\n                                Clone at x: [1065] y: [131]\n                                Clone at x: [1619] y: [360]\n                                Clone at x: [1761] y: [360]\n                                Clone at x: [1891] y: [360]\n                                Clone at x: [2015] y: [360]\n                                Clone at x: [2118] y: [83]\n                                Clone at x: [2338] y: [83]\n                                Clone at x: [2478] y: [83]\n                                Clone at x: [2822] y: [225]\n                                Clone at x: [2953] y: [225]\n                                Clone at x: [3078] y: [225]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nset [x v] to [-99999]\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\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [1]> then\n        set [collected max v] to [27]\n    else\n        if <(LEVEL) = [2]> then\n            set [collected max v] to [18]\n        else\n            if <(LEVEL) = [3]> then\n                set [collected max v] to [22]\n            else\n                if <(LEVEL) = [4]> then\n                    set [collected max v] to [8]\n                else\n                    if <(LEVEL) = [5]> then\n                        set [collected max v] to [7]\n                    else\n                        if <(LEVEL) = [6]> then\n                            set [collected max v] to [12]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\n@Screen Shot 2020-05-07 at 3\n\n@Sprite5\n\nwhen I receive [level 3 v]\nshow\nset [ghost v] effect to (20)\n\nwhen flag clicked\nhide\n\ndefine position (y)\nset y to (y)\nif <<<(LEVEL) = [3]> or <(LEVEL) = [4]>> or <(LEVEL) = [6]>> then\n    if <(home screen?) < [yes]> then\n        if <(LEVEL) = [3]> then\n            switch costume to (costume1 v)\n            go to [front v] layer\n            if <(y) = (y position)> then\n                show\n            else\n                hide\n            end\n        else\n            check level\n            if <(y) = (y position)> then\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition (join [-] (SCROLL Y))\n\nchange [y v] by (y)\n\nwhen flag clicked\nforever\n    check level\n    wait (0.03) seconds\n    waves\n    wait (0.03) seconds\nend\n\ndefine waves\nset [ghost v] effect to (30)\nset [fisheye v] effect to (-5)\nset [whirl v] effect to (-250)\nrepeat (50)\n    change [whirl v] effect by (12)\n    change [fisheye v] effect by (1)\n    wait (0.05) seconds\nend\nrepeat (50)\n    change [whirl v] effect by (-12)\n    change [fisheye v] effect by (-1)\n    wait (0.05) seconds\nend\n\ndefine check level\nif  then\n    switch costume to (costume1 v)\n    set [ghost v] effect to (20)\nelse\n    if <(LEVEL) = [4]> then\n        clear graphic effects\n        switch costume to (costume2 v)\n        go to [back v] layer\n    else\n        if <<(LEVEL) = [5]> or <(LEVEL) > [6]>> then\n            switch costume to (costume3 v)\n            set [ghost v] effect to (100)\n            hide\n        end\n        switch costume to (costume4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    check level\nend\n\nwhen I receive [home screen v]\nset [home screen? v] to [yes]\n\nwhen I receive [hide home screen v]\nset [home screen? v] to []\n\nif <(LEVEL) = [3]> then\n    wait (0.03) seconds\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [5]> then\n        switch costume to (costume3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [6]> then\n        switch costume to (costume4 v)\n        show\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(LEVEL) = [1]> or <<(LEVEL) = [2]> or <(LEVEL) = [5]>>> then\n        go to [back v] layer\n        set [ghost v] effect to (1000000)\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [4]> then\n        go to [back v] layer\n        go to [back v] layer\n        go [backward v] (1000000) layers\n    end\nend\n\nwhen I receive [level 5 v]\nshow\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [7]> then\n        hide\n        go to [front v] layer\n    end\nend\n\n@Sprite6\n\n@Sprite4\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [3]> then\n    clear graphic effects\n    switch costume to (screen shot 2020-05-07 at 9 v)\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\nelse\n    Clone at x: [99999] y: [0]\n    switch costume to (screen shot 2020-05-07 at 23 v)\n    set [ghost v] effect to (100)\n    hide\n    delete this clone\nend\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\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nnext costume\nchange [x v] by (x)\nchange [y v] by (y)\n\nClone at x: [0] y: [0]\n\nwhen I receive [level 1 v]\nhide\n\nif <(LEVEL) = [4]> then\n    set [ghost v] effect to (100)\n    hide\n    delete this clone\nend\n\nClone at x: [360] y: [100]\nClone at x: [360] y: [400]\n\n@Sprite9\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nchange [coins v] by (1)\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nset size to (120) %\nset [ghost v] effect to (20)\nset [brightness v] effect to (0)\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [2400] y: [250]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 1 1 v)\n        Clone at x: [3019] y: [1320]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 1 1 v)\n            Clone at x: [7385] y: [314]\n        else\n            if <(LEVEL) = [4]> then\n                set [brightness v] effect to (0)\n                set [ghost v] effect to (50)\n                switch costume to (costume1 v)\n                Clone at x: [2750] y: [307]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (costume1 v)\n                    Clone at x: [3752] y: [243]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (costume1 v)\n                        Clone at x: [4313] y: [-29]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume6 v)\n                            Clone at x: [3995] y: [258]\n                        else\n                            if <(LEVEL) = [8]> then\n                                clear graphic effects\n                                switch costume to (costume1 v)\n                                Clone at x: [6280] y: [311]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nnext costume\n\nClone at x: [240] y: [22]\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\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen flag clicked\nforever\n    turn right (-3) degrees\nend\n\nswitch costume to (costume1 v)\n\nrepeat (6)\n    next costume\n    wait (0.05) seconds\nend\n\nClone at x: [7385] y: [314]\n\nwhen I start as a clone\n\n@danger\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (level 1 1 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]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\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            else\n                if <(LEVEL) = [5]> then\n                    clear graphic effects\n                    switch costume to (costume2 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        clear graphic effects\n                        switch costume to (costume3 v)\n                    else\n                        if <(LEVEL) = [8]> then\n                            clear graphic effects\n                            switch costume to (costume3 v)\n                        else\n                            hide\n                            delete this clone\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 <not <(LEVEL) = [7]>> then\n    if <<(x) = (x position)> and <(y) = (y position)>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\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\nClone at x: [360] y: [100]\nClone at x: [360] y: [400]\n\nClone at x: [0] y: [0]\n\nwhen I start as a clone\nclear graphic effects\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen I start as a clone\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@light\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [4]> then\n        show\n        go to [back v] layer\n        go [forward v] (1) layers\n        set [ghost v] effect to (0)\n        go to (cube v)\n        wait (0.03) seconds\n    else\n        if <(LEVEL) = [6]> then\n            show\n            go to [back v] layer\n            go [forward v] (1) layers\n            go to (cube v)\n            set [ghost v] effect to (49)\n            wait (0.03) seconds\n        else\n            hide\n            hide\n        end\n    end\nend\n\n@Sprite7\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nif <not <(LEVEL) = [6]>> then\n    position ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nelse\n    position ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nend\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (istockphoto-165068447-612x15 v)\n    Clone at x: [99999999] y: [0]\n    set [ghost v] effect to (100)\n    hide\n    delete this clone\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (istockphoto-165068447-612x15 v)\n        Clone at x: [99999999] y: [0]\n        set [ghost v] effect to (100)\n        hide\n        hide\n        delete this clone\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (istockphoto-165068447-612x15 v)\n            Clone at x: [99999999] y: [0]\n            set [ghost v] effect to (100)\n            hide\n            hide\n            hide\n            delete this clone\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                show\n                clear graphic effects\n                switch costume to (costume2 v)\n                go [backward v] (1) layers\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                    switch costume to (228-2282773_candy-cane-svg-cut-file-candy-cane-svg \(1\) v)\n                    clear graphic effects\n                    go to [back v] layer\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: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (istockphoto-165068447-612x15 v)\n                        Clone at x: [360] y: [0]\n                    else\n                        switch costume to (istockphoto-165068447-612x15 v)\n                        Clone at x: [99999999] y: [0]\n                        set [ghost v] effect to (100)\n                        hide\n                        hide\n                        hide\n                        delete this clone\n                    end\n                end\n            end\n        end\n    end\nend\n\nset [ghost v] effect to (100)\nhide\ndelete this clone\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <not <(LEVEL) = [3]>> then\n    if <<(x) = (x position)> and <(y) = (y position)>> then\n        show\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\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\nClone at x: [] y: []\n\nwhen I start as a clone\nforever\n    if <not <(LEVEL) = [4]>> then\n        go to [back v] layer\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n    else\n        go to [back v] layer\n        go [forward v] (7) layers\n    end\nend\n\n@Sprite11\n\nwhen flag clicked\nbroadcast (home screen v)\nshow\nforever\n    go to [back v] layer\nend\n\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\n\nwhen I receive [hide home screen v]\nhide\n\nwhen flag clicked\nforever\n    switch costume to (world)\nend\n\nwhen I receive [home screen v]\nshow\nforever\n    go to [front v] layer\n    go [backward v] (1) layers\n    go [backward v] (1) layers\n    go [backward v] (1) layers\n    go [backward v] (1) layers\n    go [backward v] (1) layers\n    go [backward v] (1) layers\nend\n\ngo [backward v] (1) layers\ngo [backward v] (1) layers\ngo [backward v] (1) layers\n\ngo [backward v] (1) layers\n\n@Sprite16\n\nwhen flag clicked\nshow\nforever\n    set [brightness v] effect to (100)\n    set size to (120) %\n    turn right (0.5) degrees\n    go to [front v] layer\n    go [backward v] (4) layers\nend\n\nwhen flag clicked\nshow\nforever\n    if <(world) = [4]> then\n        set [ghost v] effect to (80)\n    else\n        set [ghost v] effect to (60)\n    end\nend\n\nwhen I receive [hide home screen v]\nhide\n\nwhen I receive [home screen v]\nshow\nforever\n    set [brightness v] effect to (100)\n    set size to (120) %\n    turn right (0.5) degrees\n    go to [front v] layer\n    go [backward v] (4) layers\nend\n\n@Sprite12\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (costume1 v)\nshow\nforever\n    set size to (150) %\n    go to x: (0) y: (03)\n    go to [front v] layer\n    set [ghost v] effect to (15)\n    go to [front v] layer\n    go [forward v] (10000) layers\nend\n\nwhen I receive [previous level  v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [next level v]\nswitch costume to ((costume [number v]) + (1))\n\nwhen flag clicked\nforever\n    set [world v] to (costume [number v])\nend\n\nwhen I receive [hide home screen v]\nhide\n\nwhen I receive [home screen v]\nswitch costume to (LEVEL)\nshow\nforever\n    set size to (150) %\n    go to x: (0) y: (03)\n    go to [front v] layer\n    set [ghost v] effect to (15)\n    go to [front v] layer\n    go [forward v] (10000) layers\nend\n\ndefine front layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    front layer\nend\n\n@previous\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    set [ghost v] effect to (15)\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to x: (0) y: (3)\nend\n\nwhen this sprite clicked\nset volume to (10) %\nbroadcast (previous level  v)\nif <(sound effects) = [on]> then\n    play sound [click v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [hide home screen v]\nhide\n\nwhen I receive [home screen v]\nshow\nswitch costume to (costume1 v)\nforever\n    set [ghost v] effect to (15)\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to x: (0) y: (3)\nend\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    set [ghost v] effect to (15)\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to x: (0) y: (3)\nend\n\nwhen I receive [front layer v]\nshow\nswitch costume to (costume1 v)\nforever\n    set [ghost v] effect to (15)\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to x: (0) y: (3)\nend\n\nwhen I receive [front layer v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <(LEVEL) > []> then\n        set [ghost v] effect to (15)\n        go to [front v] layer\n        go [forward v] (1) layers\n        go to [front v] layer\n        go to x: (0) y: (3)\n    end\nend\n\ndefine front layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    front layer\nend\n\n@next\n\nwhen flag clicked\nbroadcast (front layer v)\nshow\nset [ghost v] effect to (15)\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to x: (0) y: (3)\nend\n\nwhen this sprite clicked\nbroadcast (next level v)\nset volume to (10) %\nif <(sound effects) = [on]> then\n    play sound [click v] until done\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [hide home screen v]\nhide\n\nwhen I receive [home screen v]\nshow\nset [ghost v] effect to (15)\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to x: (0) y: (3)\nend\n\nwhen I receive [hide home screen v]\nhide\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to x: (0) y: (3)\nend\n\nwhen I receive [front layer v]\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go to x: (0) y: (3)\nend\n\ndefine front layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    front layer\nend\n\n@play?\n\nwhen flag clicked\nset [ghost v] effect to (15)\nshow\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (-80)\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        set size to (110) %\n    else\n        switch costume to (costume1 v)\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nset [level v] to (world)\nhide\nbroadcast (hide home screen v)\nset volume to (10) %\nif <(sound effects) = [on]> then\n    play sound [click v] until done\nend\n\nwhen I receive [home screen v]\nset [ghost v] effect to (15)\nshow\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (-80)\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n        set size to (110) %\n    else\n        switch costume to (costume1 v)\n        set size to (100) %\n    end\nend\n\nwhen I receive [front layer v]\nset [ghost v] effect to (15)\nshow\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (-80)\n    go to [front v] layer\nend\n\ndefine front layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    front layer\nend\n\n@home\n\nwhen flag clicked\nshow\ngo to x: (-216) y: (162)\n\nwhen I receive [hide home screen v]\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (home screen v)\nset volume to (10) %\nif <(sound effects) = [on]> then\n    play sound [click v] until done\nend\n\nwhen I receive [hide home screen v]\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [home screen v]\nhide\n\n@sound effects\n\nwhen flag clicked\nshow\ngo to x: (-176) y: (162)\n\nwhen I receive [hide home screen v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nswitch costume to (5_ \(1\) v)\n\nwhen this sprite clicked\nset volume to (10) %\nif <(sound effects) = [on]> then\n    play sound [click v] until done\n    set [sound effects v] to [off]\n    next costume\nelse\n    set [sound effects v] to [on]\n    next costume\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen flag clicked\n\nwhen I receive [hide home screen v]\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [home screen v]\nhide\n\nwhen flag clicked\nset [sound effects v] to [on]\nswitch costume to (5_ \(1\)2 v)\nforever\n\n@restart\n\nwhen flag clicked\nshow\ngo to x: (-96) y: (162)\n\nwhen I receive [hide home screen v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nswitch costume to (5_ \(1\) v)\n\nwhen this sprite clicked\nset [exit v] to [restart]\nset volume to (10) %\nif <(sound effects) = [on]> then\n    play sound [click v] until done\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen flag clicked\n\nwhen I receive [hide home screen v]\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [home screen v]\nhide\n\n@music\n\nwhen flag clicked\nshow\ngo to x: (-136) y: (162)\n\nwhen I receive [hide home screen v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nswitch costume to (5_ \(1\) v)\n\nwhen this sprite clicked\nif <(music) = [on]> then\n    set [music v] to [off]\n    next costume\nelse\n    set [music v] to [on]\n    next costume\nend\nset volume to (10) %\nif <(sound effects) = [on]> then\n    play sound [click v] until done\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [hide home screen v]\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [home screen v]\nhide\n\nwhen I receive [hide home screen v]\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen flag clicked\nswitch costume to (5_ \(1\) v)\nset [music v] to [on]\n\n@Sprite18\n\nwhen flag clicked\nset [ghost v] effect to (30)\nforever\n    if <(cursor) = [home]> then\n        show\n        clear graphic effects\n        switch costume to (home v)\n        go to [front v] layer\n    end\n    if <(cursor) = [restart]> then\n        show\n        clear graphic effects\n        switch costume to (restart v)\n        go to [front v] layer\n    end\n    if <(cursor) = [music]> then\n        clear graphic effects\n        show\n        switch costume to (music v)\n    end\n    if <(cursor) = [sound effects]> then\n        show\n        clear graphic effects\n        switch costume to (sound effects v)\n    end\n    if <(cursor) = [previous]> then\n        show\n        clear graphic effects\n        switch costume to (previous v)\n    end\n    if <(cursor) = [next]> then\n        show\n        clear graphic effects\n        switch costume to (next v)\n    end\n    if <(cursor) = [play]> then\n        show\n        clear graphic effects\n        switch costume to (play? v)\n    end\n    if <(cursor) = [shop]> then\n        switch costume to (shop v)\n        clear graphic effects\n        show\n    end\n    if <(cursor) = []> then\n        set [ghost v] effect to (100)\n        show\n    end\nend\n\n\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\nend\n\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (1000000000) layers\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen flag clicked\n\nwhen I receive [hide home screen v]\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (1000000000) layers\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [home screen v]\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (1000000000) layers\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [front layer v]\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (1000000000) layers\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite17\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <not <(LEVEL) = [4]>> then\n        set [brightness v] effect to (0)\n        set [ghost v] effect to (70)\n    else\n        set [brightness v] effect to (-40)\n        set [ghost v] effect to (85)\n    end\nend\n\n@Sprite13\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    if <touching (previous v)?> then\n        set [cursor v] to [previous]\n    else\n        if <touching (next v)?> then\n            set [cursor v] to [next]\n        else\n            if <touching (play? v)?> then\n                set [cursor v] to [play]\n            else\n                if <touching (home v)?> then\n                    set [cursor v] to [home]\n                else\n                    if <touching (sound effects v)?> then\n                        set [cursor v] to [sound effects]\n                    else\n                        if <touching (restart v)?> then\n                            set [cursor v] to [restart]\n                        else\n                            if <touching (music v)?> then\n                                set [cursor v] to [music]\n                            else\n                                if <touching (shop v)?> then\n                                    set [cursor v] to [shop]\n                                else\n                                    set [cursor v] to []\n                                    set [cursor v] to []\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\nend\n\n@Sprite19\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    if <touching (sprite30 v)?> then\n        broadcast (jump 2  v)\n        delete this clone\n    else\n        if <(can get hurt) = [true]> then\n            set [exit v] to [reset]\n        end\n    end\nend\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    set size to (100) %\n    hide\nelse\n    if <(LEVEL) = [2]> then\n        hide\n    else\n        if <(LEVEL) = [3]> then\n            hide\n        else\n            if <(LEVEL) = [4]> then\n                hide\n            else\n                if <(LEVEL) = [5]> then\n                    hide\n                else\n                    if <(LEVEL) = [6]> then\n                        show\n                        Clone at x: [360] y: [38]\n                        Clone at x: [3420] y: [54]\n                        Clone at x: [3600] y: [54]\n                        Clone at x: [3813] y: [54]\n                        Clone at x: [4026] y: [54]\n                        Clone at x: [4239] y: [54]\n                        Clone at x: [4652] y: [54]\n                    end\n                end\n            end\n        end\n    end\nend\nset [x v] to [-99999]\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\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen I start as a clone\nset [color v] effect to (150)\nset [brightness v] effect to (0)\nset [ghost v] effect to (30)\nforever\n    set size to (130) %\n    repeat (23)\n        switch costume to ((costume [number v]) + (1))\n    end\n    switch costume to (costume24 v)\n    repeat (23)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\ndelete this clone\n\nrepeat (23)\n\nwhen I start as a clone\nforever\n\n@Sprite20\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    if <touching (sprite30 v)?> then\n        broadcast (jump 2  v)\n        delete this clone\n    else\n        if <(can get hurt) = [true]> then\n            set [exit v] to [reset]\n        end\n    end\nend\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    set size to (100) %\n    hide\nelse\n    if <(LEVEL) = [2]> then\n        hide\n    else\n        if <(LEVEL) = [3]> then\n            hide\n        else\n            if <(LEVEL) = [4]> then\n                hide\n            else\n                if <(LEVEL) = [5]> then\n                    hide\n                else\n                    if <(LEVEL) = [6]> then\n                        show\n                        Clone at x: [600] y: [38]\n                        Clone at x: [1555] y: [177]\n                        Clone at x: [3420] y: [54]\n                        Clone at x: [3600] y: [54]\n                        Clone at x: [3813] y: [54]\n                        Clone at x: [4026] y: [54]\n                        Clone at x: [4239] y: [54]\n                        Clone at x: [4652] y: [54]\n                    end\n                end\n            end\n        end\n    end\nend\nset [x v] to [-99999]\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\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen I start as a clone\nset [ghost v] effect to (30)\nset [color v] effect to (150)\nforever\n    set size to (130) %\n    switch costume to (costume24 v)\n    repeat (23)\n        switch costume to ((costume [number v]) - (1))\n    end\n    repeat (23)\n        switch costume to ((costume [number v]) + (1))\n    end\nend\n\ndelete this clone\n\nrepeat (23)\n\nif <(SCROLL X) > [3000]> then\n    switch costume to (costume24 v)\n    repeat (23)\n        switch costume to ((costume [number v]) - (1))\n        wait (0.015) seconds\n    end\n    repeat (23)\n        wait (0.015) seconds\n        switch costume to ((costume [number v]) + (1))\n    end\nend\n\n@Sprite21\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    if <touching (sprite30 v)?> then\n        broadcast (jump 2  v)\n        delete this clone\n    else\n        if <(can get hurt) = [true]> then\n            set [exit v] to [reset]\n        end\n    end\nend\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    set size to (100) %\n    hide\nelse\n    if <(LEVEL) = [2]> then\n        hide\n    else\n        if <(LEVEL) = [3]> then\n            hide\n        else\n            if <(LEVEL) = [4]> then\n                hide\n            else\n                if <(LEVEL) = [5]> then\n                    hide\n                else\n                    if <(LEVEL) = [6]> then\n                        show\n                        Clone at x: [1070] y: [-200]\n                        Clone at x: [1390] y: [-200]\n                        Clone at x: [1650] y: [-200]\n                        Clone at x: [1895] y: [-200]\n                        Clone at x: [2423] y: [-200]\n                        Clone at x: [2579] y: [-200]\n                        Clone at x: [2751] y: [-200]\n                        Clone at x: [2915] y: [-200]\n                        Clone at x: [3080] y: [-200]\n                    end\n                end\n            end\n        end\n    end\nend\nset [x v] to [-99999]\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\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen I start as a clone\nset [ghost v] effect to (30)\nset [color v] effect to (150)\nforever\n    set size to (130) %\n    repeat (22)\n        switch costume to ((costume [number v]) + (1))\n    end\n    switch costume to (costume23 v)\n    repeat (22)\n        switch costume to ((costume [number v]) - (1))\n    end\n    wait (pick random (0) to (1.5)) seconds\nend\n\ndelete this clone\n\nrepeat (23)\n\nClone at x: [2784] y: [-175]\nClone at x: [2717] y: [-150]\n\n@Sprite22\n\nwhen flag clicked\nwait (1) seconds\nforever\n    play sound [Vexento - Pixel Party v] until done\nend\n\nwhen flag clicked\nforever\n    if <(music) = [on]> then\n        set volume to (50) %\n    else\n        set volume to (0) %\n    end\nend\n\n@Sprite23\n\nwhen flag clicked\nhide\n\nwhen I receive [crystal v]\ncreate clone of (_myself_ v)\nwait (0.5) seconds\n\ngo to (cube v)\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nset [ghost v] effect to (30)\ngo to x: (123) y: (180)\nglide (0.3) secs to x: (124) y: (161)\ndelete this clone\n\nwhen [space v] key pressed\nset [mouse pointer v] to (join (mouse x) (join [, ] (mouse y)))\n\n@Sprite24\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    front layer\nend\n\ndefine front layer\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\n@Sprite35\n\nwhen flag clicked\nforever\n    if <(length of (coins)) = [1]> then\nend\n\nwhen flag clicked\nforever\n    if <(coins) > [99]> then\n        if <(LEVEL) = [4]> then\n            set [brightness v] effect to (0)\n            show\n        else\n            set [brightness v] effect to (-100)\n            show\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite14\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite8\n\nwhen flag clicked\nforever\n    if <(coins) > [9]> then\n        if <(LEVEL) = [4]> then\n            set [brightness v] effect to (0)\n            show\n        else\n            set [brightness v] effect to (-100)\n            show\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(length of (coins)) = [1]> then\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite10\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [4]> then\n        set [brightness v] effect to (0)\n        show\n    else\n        set [brightness v] effect to (-100)\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(length of (coins)) = [1]> then\n        go to x: (150) y: (160)\n        show\n        switch costume to ((letter (1) of (coins)) + (1))\n    else\n        if <(length of (coins)) = [2]> then\n            go to x: (165) y: (160)\n            show\n            switch costume to ((letter (2) of (coins)) + (1))\n        else\n            if <(length of (coins)) = [3]> then\n                go to x: (180) y: (160)\n                switch costume to ((letter (3) of (coins)) + (1))\n            else\n                if <(length of (coins)) = [4]> then\n                    go to x: (195) y: (160)\n                    switch costume to ((letter (4) of (coins)) + (1))\n                else\n                    if <(length of (coins)) = [5]> then\n                        switch costume to ((letter (5) of (coins)) + (1))\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite15\n\nwhen flag clicked\nforever\n    if <(coins) > [999]> then\n        if <(LEVEL) = [4]> then\n            set [brightness v] effect to (0)\n            show\n        else\n            set [brightness v] effect to (-100)\n            show\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(length of (coins)) = [1]> then\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite25\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    broadcast (jump v)\nend\n\nwhen I receive [setup v]\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [7]> then\n    set size to (100) %\n    switch costume to ( v)\n    Clone at x: [1364] y: [-170]\n    Clone at x: [3050] y: [60]\n    Clone at x: [3200] y: [60]\n    Clone at x: [3350] y: [60]\nelse\nend\nset [x v] to [-99999]\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\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen flag clicked\nforever\n    set [collected max v] to [0]\nend\n\nwhen I start as a clone\nswitch costume to ( v)\nforever\n    if <touching (cube v)?> then\n        set [brightness v] effect to (40)\n        wait (0.05) seconds\n        clear graphic effects\n    end\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nClone at x: [2605] y: [-105]\nClone at x: [3980] y: [35]\nClone at x: [ 4120] y: [35]\nClone at x: [ 4260] y: [35]\n\n@danger2\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (costume5 v)\n    Clone at x: [360] y: [0]\nelse\n    if <(LEVEL) = [7]> then\n        switch costume to (costume1 v)\n        Clone at x: [360] y: [0]\n        Clone at x: [500] y: [0]\n        Clone at x: [2000] y: [0]\n    else\n        if <(LEVEL) = [8]> then\n            switch costume to (costume5 v)\n            Clone at x: [360] y: [0]\n        else\n            Clone at x: [99999999999] y: [0]\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\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\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\nClone at x: [360] y: [100]\nClone at x: [360] y: [400]\n\nClone at x: [0] y: [0]\n\nwhen I start as a clone\nclear graphic effects\n\n@danger3\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [8]> then\n    broadcast (level 1 v)\n    switch costume to (level 1 1 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: [100]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] 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: [1330] y: [0]\n    Clone at x: [600] y: [0]\nend\n\ngo [backward v] (4) layers\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\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\nClone at x: [360] y: [100]\nClone at x: [360] y: [400]\n\nClone at x: [] y: []\n\nClone at x: [360] y: [0]\n\nrepeat (6)\n\nbroadcast (setup v)\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nif <(LEVEL) = [5]> then\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\n@Sprite26\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    broadcast (jump v)\nend\n\nwhen I receive [setup v]\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [8]> then\n    set size to (100) %\n    switch costume to ( v)\n    Clone at x: [2653] y: [-150]\n    Clone at x: [4400] y: [55]\n    Clone at x: [4550] y: [55]\n    Clone at x: [4700] y: [55]\nend\nset [x v] to [-99999]\n\nClone at x: [2605] y: [-105]\nClone at x: [3980] y: [35]\nClone at x: [ 4120] y: [35]\nClone at x: [ 4260] y: [35]\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\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen flag clicked\nforever\n    set [collected max v] to [0]\nend\n\nwhen I start as a clone\nswitch costume to ( v)\nforever\n    if <touching (cube v)?> then\n        repeat (7)\n            next costume\n        end\n        repeat (7)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nClone at x: [2605] y: [-105]\n\n@Sprite27\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ([floor v] of ((x) - ((SCROLL X) / (5))) ) ([floor v] of (((y) - (SCROLL Y)) / (5)) )\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [8]> then\n    switch costume to (costume2 \(1\) v)\n    Clone at x: [470] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\nelse\n    if <(LEVEL) < [8]> then\n        switch costume to (costume2 v)\n    end\nend\n\ngo [backward v] (4) layers\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\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\nClone at x: [360] y: [100]\nClone at x: [360] y: [400]\n\nClone at x: [] y: []\n\nClone at x: [360] y: [0]\n\nrepeat (6)\n\nbroadcast (setup v)\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nif <(LEVEL) = [5]> then\n\nshow\nshow\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\n@Sprite1\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (level 1 1 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]\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    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\ngo [backward v] (4) layers\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\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\nClone at x: [360] y: [100]\nClone at x: [360] y: [400]\n\nClone at x: [] y: []\n\nClone at x: [360] y: [0]\n\nrepeat (6)\n    broadcast (Tick v) and wait\nend\n\nbroadcast (setup v)\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nif <(LEVEL) = [5]> then\n\nshow\nshow\n\nwhen I start as a clone\nforever\n    if <(LEVEL) = [4]> then\n        go to [front v] layer\n        go [backward v] (35) layers\n    else\n        go to [back v] layer\n        go [backward v] (15) layers\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (5) layers\nend\n\n@shop\n\nwhen flag clicked\nset [spent v] to [0]\nswitch costume to (5_ \(1\)2 v)\n\nwhen I start as a clone\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    clear graphic effects\n    repeat (8)\n        next costume\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n    end\n    switch costume to (5_ \(1\)10 v)\n    next costume\n    create clone of (_myself_ v)\n    next costume\n    create clone of (_myself_ v)\n    next costume\n    create clone of (_myself_ v)\n    next costume\n    create clone of (_myself_ v)\n    next costume\n    create clone of (_myself_ v)\n    next costume\n    create clone of (_myself_ v)\n    next costume\n    create clone of (_myself_ v)\n    switch costume to (5_ \(1\)10 v)\n    forever\n        go to [front v] layer\n        go [forward v] (10) layers\n        if <mouse down?> then\n            broadcast (close store v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen this sprite clicked\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [2]> then\n        set [ghost v] effect to (50)\n    end\nend\n\nwhen I start as a clone\n\nwhen flag clicked\nset [1 v] to []\nset [2 v] to []\nset [3 v] to []\nset [4 v] to []\nset [5 v] to []\nset [6 v] to []\nset [7 v] to []\nset [8 v] to []\nset [9 v] to []\nset [10 v] to []\nset [11 v] to []\nset [12 v] to []\nset [13 v] to []\nset [14 v] to []\nforever\n    if <(costume [number v]) = [9]> then\n        change [color v] effect by (5)\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [2]> then\n    broadcast (close store v)\nelse\n    if <(costume [number v]) = [3]> then\n        if <(1) = []> then\n            if <(coins) > [24]> then\n                broadcast (1 v)\n                change [coins v] by (-25)\n                change [spent v] by (25)\n                broadcast (close store v)\n                set [1 v] to [bought]\n            end\n        else\n            broadcast (1 v)\n            broadcast (close store v)\n        end\n    else\n        if <(costume [number v]) = [4]> then\n            if <(2) = []> then\n                if <(coins) > [24]> then\n                    broadcast (2 v)\n                    change [coins v] by (-25)\n                    change [spent v] by (25)\n                    broadcast (close store v)\n                    set [2 v] to [bought]\n                end\n            else\n                broadcast (2 v)\n                broadcast (close store v)\n            end\n        else\n            if <(costume [number v]) = [5]> then\n                if <(3) = []> then\n                    if <(coins) > [24]> then\n                        broadcast (3 v)\n                        change [coins v] by (-25)\n                        change [spent v] by (25)\n                        broadcast (close store v)\n                        set [3 v] to [bought]\n                    end\n                else\n                    broadcast (close store v)\n                    broadcast (3 v)\n                end\n            else\n                if <(costume [number v]) = [6]> then\n                    if <(4) = []> then\n                        if <(coins) > [24]> then\n                            broadcast (4 v)\n                            change [coins v] by (-25)\n                            change [spent v] by (25)\n                            broadcast (close store v)\n                            set [4 v] to [bought]\n                        end\n                    else\n                        broadcast (close store v)\n                        broadcast (4 v)\n                    end\n                else\n                    if <(costume [number v]) = [7]> then\n                        if <(5) = []> then\n                            if <(coins) > [24]> then\n                                broadcast (5 v)\n                                change [coins v] by (-25)\n                                change [spent v] by (25)\n                                broadcast (close store v)\n                                set [5 v] to [bought]\n                            end\n                        else\n                            broadcast (close store v)\n                            broadcast (5 v)\n                        end\n                    else\n                        if <(costume [number v]) = [8]> then\n                            if <(6) = []> then\n                                if <(coins) > [24]> then\n                                    broadcast (6 v)\n                                    change [coins v] by (-25)\n                                    change [spent v] by (25)\n                                    broadcast (close store v)\n                                    set [6 v] to [bought]\n                                end\n                            else\n                                broadcast (close store v)\n                                broadcast (6 v)\n                            end\n                        else\n                            if <(costume [number v]) = [9]> then\n                                if <(7) = []> then\n                                    if <(coins) > [49]> then\n                                        broadcast (7 v)\n                                        change [coins v] by (-50)\n                                        change [spent v] by (50)\n                                        broadcast (close store v)\n                                        set [7 v] to [bought]\n                                    end\n                                else\n                                    broadcast (close store v)\n                                    broadcast (7 v)\n                                end\n                            else\n                                if <(costume [number v]) = [10]> then\n                                    if <(8) = []> then\n                                        if <(coins) > [49]> then\n                                            broadcast (8 v)\n                                            change [coins v] by (-50)\n                                            change [spent v] by (50)\n                                            broadcast (close store v)\n                                            set [8 v] to [bought]\n                                        end\n                                    else\n                                        broadcast (close store v)\n                                        broadcast (8 v)\n                                    end\n                                else\n                                    if <(costume [number v]) = [11]> then\n                                        if <(9) = []> then\n                                            if <(coins) > [49]> then\n                                                broadcast (9 v)\n                                                change [coins v] by (-50)\n                                                change [spent v] by (50)\n                                                broadcast (close store v)\n                                                set [9 v] to [bought]\n                                            end\n                                        else\n                                            broadcast (close store v)\n                                            broadcast (9 v)\n                                        end\n                                    else\n                                        if <(costume [number v]) = [12]> then\n                                            if <(10) = []> then\n                                                if <(coins) > [49]> then\n                                                    broadcast (10 v)\n                                                    change [coins v] by (-50)\n                                                    change [spent v] by (50)\n                                                    broadcast (close store v)\n                                                    set [10 v] to [bought]\n                                                end\n                                            else\n                                                broadcast (close store v)\n                                                broadcast (10 v)\n                                            end\n                                        else\n                                            if <(costume [number v]) = [13]> then\n                                                if <(11) = []> then\n                                                    if <(coins) > [99]> then\n                                                        broadcast (11 v)\n                                                        change [coins v] by (-100)\n                                                        change [spent v] by (100)\n                                                        broadcast (close store v)\n                                                        set [11 v] to [bought]\n                                                    end\n                                                else\n                                                    broadcast (close store v)\n                                                    broadcast (11 v)\n                                                end\n                                            else\n                                                if <(costume [number v]) = [14]> then\n                                                    if <(12) = []> then\n                                                        if <(coins) > [499]> then\n                                                            broadcast (12 v)\n                                                            change [coins v] by (-500)\n                                                            change [spent v] by (500)\n                                                            broadcast (close store v)\n                                                            set [12 v] to [bought]\n                                                        end\n                                                    else\n                                                        broadcast (close store v)\n                                                        broadcast (12 v)\n                                                    end\n                                                else\n                                                    if <(costume [number v]) = [15]> then\n                                                        if <(13) = []> then\n                                                            if <(coins) > [49]> then\n                                                                broadcast (13 v)\n                                                                change [coins v] by (-50)\n                                                                change [spent v] by (50)\n                                                                broadcast (close store v)\n                                                                set [13 v] to [bought]\n                                                            end\n                                                        else\n                                                            broadcast (close store v)\n                                                            broadcast (13 v)\n                                                        end\n                                                    else\n                                                        if <(costume [number v]) = [16]> then\n                                                            broadcast (close store v)\n                                                            broadcast (14 v)\n                                                        end\n                                                    end\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\n\nwhen I receive [close store v]\nswitch costume to (5_ \(1\)2 v)\nrepeat (8)\n    delete this clone\nend\n\nwhen I receive [home screen v]\nbroadcast (close store v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@costume1 (4)\n\n@Sprite28\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nset size to (80) %\nforever\n    go to [front v] layer\n    go to x: (80) y: (30)\n    change x by (pick random (-25) to (25))\n    repeat (20)\n        change [ghost v] effect by (-4)\n        change y by (0.5)\n    end\n    repeat (300)\n        change size by (-0.25)\n        change [color v] effect by (0.1)\n        change [ghost v] effect by (0.5)\n        change y by (0.5)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nhide\nforever\n    if <not <([costume # v] of [shop v]) = [1]>> then\n        create clone of (_myself_ v)\n        wait (1) seconds\n    end\nend\n\n@Sprite29\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nset size to (80) %\nforever\n    go to [back v] layer\n    go to (cube v)\n    change x by (pick random (-25) to (25))\n    repeat (20)\n        change [ghost v] effect by (-4)\n        change y by (0.5)\n    end\n    repeat (300)\n        change size by (-0.25)\n        change [color v] effect by (0.1)\n        change [ghost v] effect by (0.5)\n        if <key (up arrow v) pressed?> then\n            change y by (0.1)\n        else\n            change y by (0.5)\n        end\n    end\n    delete this clone\nend\n\nwhen flag clicked\nhide\nforever\n    if <(effect 2) = [on]> then\n        create clone of (_myself_ v)\n        wait (1) seconds\n    end\nend\n\n@Sprite30\n\nwhen flag clicked\nforever\n    go to (cube v)\n    set [ghost v] effect to (100)\nend\n\n@Sprite31\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    broadcast (jump v)\nend\n\nwhen I receive [setup v]\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    set size to (100) %\n    switch costume to ( v)\n    Clone at x: [2060] y: [-118]\nend\nset [x v] to [-99999]\n\nClone at x: [2605] y: [-105]\nClone at x: [3980] y: [35]\nClone at x: [ 4120] y: [35]\nClone at x: [ 4260] y: [35]\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\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen flag clicked\nforever\n    set [collected max v] to [0]\nend\n\nwhen I start as a clone\nswitch costume to ( v)\nforever\n    if <touching (cube v)?> then\n        repeat (7)\n            next costume\n        end\n        repeat (7)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nClone at x: [2605] y: [-105]\n\nwhen I start as a clone\nforever\n    if <touching (sprite30 v)?> then\n        broadcast (bounce 2 v)\n        stop [this script v]\n    end\nend\n\n@Sprite32\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (level 1 1 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]\nelse\n    switch costume to (costume2 v)\nend\n\ngo [backward v] (4) layers\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\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\nClone at x: [360] y: [100]\nClone at x: [360] y: [400]\n\nClone at x: [] y: []\n\nClone at x: [360] y: [0]\n\nrepeat (6)\n\nbroadcast (setup v)\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nif <(LEVEL) = [5]> then\n\nshow\nshow\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    go [forward v] (15) layers\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    go [backward v] (1000) layers\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (30) layers\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [1]> then\n        go to [back v] layer\n    end\nend\n\n@danger4\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (level 1 1 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]\nelse\n    switch costume to (level 1 1 v)\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <not <(LEVEL) = [7]>> then\n    if <<(x) = (x position)> and <(y) = (y position)>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\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\nClone at x: [360] y: [100]\nClone at x: [360] y: [400]\n\nClone at x: [0] y: [0]\n\nwhen I start as a clone\nclear graphic effects\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\n@Sprite33\n\nwhen flag clicked\nhide\nforever\n    if <<(LEVEL) = [1]> or <(LEVEL) = [7]>> then\n        create clone of (_myself_ v)\n        wait (pick random (0) to (5)) seconds\n    end\nend\n\nwhen I start as a clone\nset [speed v] to (pick random (1) to (5))\nshow\nset size to (pick random (50) to (150)) %\nset [ghost v] effect to (pick random (50) to (80))\nif <(pick random (1) to (2)) = [1]> then\n    go to x: (-240) y: (pick random (100) to (180))\n    repeat until <(x position) > [240]>\n        change x by (speed)\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nelse\n    go to x: (240) y: (pick random (100) to (180))\n    repeat until <(x position) < [-240]>\n        change x by ((speed) - ((speed) * (2)))\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\nelse\n    switch costume to (costume2 v)\nend\n\n@Sprite34\n\nwhen flag clicked\nhide\nset [ghost v] effect to (20)\ngo to x: (145) y: (-150)\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nwait (5) seconds\nset volume to (100) %\nstart sound [Connect v]\nswitch costume to ( v)\ngo to x: (145) y: (-200)\nshow\nrepeat (23)\n    change y by (2)\nend\nwait (3) seconds\nrepeat (10)\n    change y by (-5)\nend\nhide\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <(jumps) > [9]> then\n        start sound [Connect v]\n        switch costume to (jump 10 times v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(jumps) > [99]> then\n        start sound [Connect v]\n        switch costume to (jumped 100 times v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(jumps) > [49]> then\n        start sound [Connect v]\n        switch costume to (jumped 50 times v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(coins) > [9]> then\n        start sound [Connect v]\n        switch costume to (10 v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(coins) > [49]> then\n        start sound [Connect v]\n        switch costume to (50 v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(coins) > [500]> then\n        start sound [Connect v]\n        switch costume to (500 v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(spent) > [24]> then\n        start sound [Connect v]\n        switch costume to (spent 25 v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(spent) > [49]> then\n        start sound [Connect v]\n        switch costume to (spent 50 v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(spent) > [499]> then\n        start sound [Connect v]\n        switch costume to (500 v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(12) = [bought]> then\n        start sound [Connect v]\n        switch costume to (mystery skin v)\n        go to x: (145) y: (-200)\n        show\n        repeat (23)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        wait (1) seconds\n        switch costume to (invincibility v)\n        go to x: (145) y: (-200)\n        show\n        repeat (25)\n            change y by (2)\n        end\n        wait (3) seconds\n        repeat (10)\n            change y by (-5)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [bounce 2 v]\nstart sound [Connect v]\nswitch costume to (bounce v)\ngo to x: (145) y: (-200)\nshow\nrepeat (23)\n    change y by (2)\nend\nwait (3) seconds\nrepeat (10)\n    change y by (-5)\nend\nhide\nstop [this script v]\n\nstart sound [Connect v]\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nstart sound [Connect v]\nswitch costume to (2 v)\ngo to x: (110) y: (-200)\nshow\nrepeat (30)\n    change y by (2)\nend\nwait (3) seconds\nrepeat (30)\n    change y by (-5)\nend\nhide\nstop [this script v]\n\n@Sprite36\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nif <not <(LEVEL) = [6]>> then\n    position ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nelse\n    position ([floor v] of ((x) - ((SCROLL X) / (5))) ) ([floor v] of ((y) - ((SCROLL Y) / (5))) )\nend\n\nbroadcast (Tick v) and wait\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    set [ghost v] effect to (100)\n    hide\n    delete this clone\nelse\n    if <(LEVEL) = [2]> then\n        hide\n        delete this clone\n    else\n        if <(LEVEL) = [3]> then\n            hide\n            delete this clone\n        else\n            if <(LEVEL) = [4]> then\n                hide\n                delete this clone\n            else\n                if <(LEVEL) = [5]> then\n                    hide\n                    delete this clone\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (istockphoto-165068447-612x4 v)\n                        clear graphic effects\n                        Clone at x: [475] y: [0]\n                        go to [back v] layer\n                        Clone at x: [475] y: [0]\n                        Clone at x: [475] y: [0]\n                        Clone at x: [475] y: [0]\n                        Clone at x: [475] y: [0]\n                        Clone at x: [475] y: [0]\n                        Clone at x: [475] y: [0]\n                        Clone at x: [475] y: [0]\n                        Clone at x: [475] y: [0]\n                        Clone at x: [475] y: [0]\n                        Clone at x: [360] y: [100]\n                    else\n                        set [ghost v] effect to (100)\n                        hide\n                        delete this clone\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <not <(LEVEL) = [3]>> then\n    if <<(x) = (x position)> and <(y) = (y position)>> then\n        show\n    else\n        hide\n    end\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\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\nClone at x: [] y: []\n\nwhen I start as a clone\nforever\n    if <not <(LEVEL) = [4]>> then\n        go to [back v] layer\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n    else\n        go to [back v] layer\n        go [forward v] (10) layers\n    end\nend\n\n@Detector\n\nwhen flag clicked\nset [both??? v] to [0]\nset [star v] to [false]\nset [heart v] to [false]\nshow\nset [stared? v] to [0]\nset [loved? v] to [0]\n\nwhen flag clicked\nset [both??? v] to [0]\nset [stared? v] to [0]\nset [loved? v] to [0]\nforever\n    wait until <<(Stared?) = [1]> and <(Loved?) = [1]>>\n    wait (0.1) seconds\n    set [loved? v] to [0]\n    set [stared? v] to [0]\n    set [both??? v] to ((1) - (both???))\n    if <(both???) = [1]> then\n        change [coins v] by (50)\n        broadcast (alert v)\n    else\n        stop [this script v]\n    end\n    wait until <<(heart) = [false]> and <(star) = [false]>>\n    set [stared? v] to [0]\n    set [loved? v] to [0]\nend\n\nwhen flag clicked\nset [detector di v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(detector DI) = [1]> then\n    switch costume to (fave v)\n    set [detector di v] to [2]\n    create clone of (_myself_ v)\n    go to x: (-15) y: (0)\n    forever\n        set [star v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [stared? v] to [1]\n        end\n    end\nelse\n    switch costume to (love v)\n    go to x: (-15) y: (0)\n    show\n    forever\n        set [heart v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved? v] to [1]\n        end\n    end\nend\n\n