The Random Platformer 

Instructions: --------------------------------Controls---------------------------------\nUse arrow keys to move left and right and to jump, or you could just use WASD. Press r to reset. blue is bouncy, red is bad and light blue is water. press 1 to reset the music. It is not finished but there are 32 levels\n---------------------------------RULES--------------------------------- \n- no hate comments \n- NO ADVERTISEMENTS!!!!\n\nIf you remix mention me in the notes and credits \n\nHave fun and try not to rage 

@Stage\n\nwhen I receive [play game v]\nset [timer v] to [0]\nhide variable [☁ world record v]\nset [skips v] to [0]\nforever\n    if <(level skipped) = [0]> then\n        if <(Level) = [30]> then\n            if <(round (Timer)) < (☁ best time)> then\n                repeat (10)\n                    set [☁ best time v] to (round (Timer))\n                end\n                stop [this script v]\n            end\n        end\n    end\nend\n\nif <key (9 v) pressed?> then\nend\n\nset [skips v] to [1]\nforever\n\nwhen I receive [stop v]\n\nwhen flag clicked\n\nrepeat until <(backdrop [number v]) = [32]>\nend\n\nif <key (9 v) pressed?> then\n    next backdrop\n    change [skips v] by (1)\nend\nwait (5) seconds\n\nwhen backdrop switches to [the end  v]\nif <(Timer) < (☁ Highscore)> then\n    set [☁ highscore v] to (Timer)\nend\n\nwhen flag clicked\n\nwhen backdrop switches to [the end  v]\nbroadcast (Stop v)\n\nset [☁ highscore v] to [0]\n\nwhen backdrop switches to [the end  v]\n\n\n\nstop [all v]\n\nwhen backdrop switches to [the end  v]\nstop [this script v]\n\nforever\n\nwhen flag clicked\n\nforever\n\nwhen backdrop switches to [the end  v]\nbroadcast (The end  v) and wait\n\nwhen flag clicked\nwait (2.9) seconds\nswitch backdrop to (first 2 v) and wait\n\nwhen I receive [death v]\nshake [45]\nshake [-45]\nshake [135]\nshake [-150]\n\nwhen I receive [skip v]\nswitch backdrop to (first 3 v)\n\nwhen I receive [no skip v]\nswitch backdrop to (first 3 v)\n\ndefine shake (direction)\npoint in direction (direction)\nmove (5) steps\npoint in direction (90)\nwait (0.0001) seconds\npoint in direction ((direction) + (180))\nmove (5) steps\npoint in direction (90)\nwait (0.0001) seconds\n\n@Player \n\nwhen flag clicked\nset [deaths v] to [0]\n\nset [pitch v] effect to (100)\n\n\nchange volume by (0)\n\nwhen [space v] key pressed\n\n\n\nwhen [4 v] key pressed\n\nforever\n\nwhen [2 v] key pressed\n\nwhen [right arrow v] key pressed\n\nwhen flag clicked\n\nwhen [1 v] key pressed\nset volume to (0) %\n\nwhen [2 v] key pressed\nset volume to (50) %\nplay sound [bensound-moose v] until done\n\nwhen flag clicked\nhide\n\nif <not <key (4 v) pressed?>> then\n    hide\nend\n\nwhen I receive [message1 v]\nset [level v] to [1]\nswitch backdrop to (backdrop1 v)\nset [yv v] to [0]\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        broadcast (Reset v)\n        set [yv v] to [0]\n        go to x: (-153) y: (-183)\n        change [deaths v] by (1)\n        wait until <not <key (r v) pressed?>>\n    end\nend\n\nwhen flag clicked\n\nshow\n\nwait (4) seconds\n\nset [level v] to [1]\nset [deaths v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\n\nshow\n\nshow\n\nwhen backdrop switches to [backdrop1 v]\n\n\n\nwhen flag clicked\nbroadcast (plz work v)\n\nwhen flag clicked\nset volume to (100) %\nforever\n    set volume to (volume) %\nend\n\nwhen I start as a clone\nrepeat (20)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [done v]\nforever\n    create clone of (_myself_ v)\n    wait (0.004) seconds\nend\n\nswitch costume to (player1 v)\nswitch costume to (player2 v)\n\nwhen I receive [orange  v]\nswitch costume to (player4 v)\n\nwhen I receive [green v]\nswitch costume to (player5 v)\n\nwhen I receive [red  v]\nswitch costume to (player3 v)\n\nwhen flag clicked\nswitch costume to (player1 v)\n\nwhen flag clicked\nset volume to (100) %\n\nwhen backdrop switches to [the end  v]\n\nwhen flag clicked\nforever\n    if <touching color (#79ffe5)?> then\n        change [xv v] by (1)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [play game v]\nrepeat until <(backdrop [number v]) = [32]>\n    wait (0.1) seconds\n    change [timer v] by (0.1)\nend\n\nstop [all v]\n\nwhen flag clicked\nforever\n    if <(☁ best time) > (Timer)> then\n        change [☁ best time v] by (Timer)\n    end\nend\n\nset [☁ best time v] to [0]\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen backdrop switches to [first 2 v]\nstart sound [bensound-moose v]\n\nforever\nend\n\nset volume to (50) %\n\nplay sound [bensound-moose v] until done\n\nwhen backdrop switches to [backdrop1 v]\nshow\nset [ghost v] effect to (0)\ngo to x: (-143) y: (-204)\nwait (0) seconds\nset [level v] to [1]\nset [deaths v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nshow\nforever\n    go to [front v] layer\n    change [yv v] by (-0.5)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <touching (right v)?>>> then\n        change [xv v] by (0.7)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-0.7)\n        point in direction (90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (1)\n                            change y by (-5)\n                            change x by (-1)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <key (space v) pressed?>>> then\n            start sound [Basketball Bounce v]\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    if <touching color (#eeff00)?> then\n        set [yv v] to [0]\n        go to x: (-143) y: (-171)\n        switch backdrop to (next backdrop v)\n        change [level v] by (1)\n    end\n    if <touching color (#1d00ff)?> then\n        set [yv v] to [15]\n    end\n    if <touching color (#00fff3)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [5]\n        else\n            set [yv v] to [-1]\n        end\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            set [yv v] to [-5]\n        end\n    end\n    if <touching color (#ff0000)?> then\n        broadcast (death v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        start sound [Pew v]\n        go to x: (-143) y: (-200)\n        set [ghost v] effect to (0)\n        change [deaths v] by (1)\n    end\n    if <(Level) = [22]> then\n        set [sho v] to [The end!]\n    end\n    if <(Level) = [22]> then\n        set [sho v] to (join [Level] (join (Level) [/22]))\n    end\n    if <touching (portal a  v)?> then\n        go to (portal b  v)\n    end\n    if <touching (portal b  v)?> then\nend\n\nwhen flag clicked\n\nplay sound [bensound-moose v] until done\n\ndefine shake (direction)\npoint in direction (direction)\nmove (5) steps\npoint in direction (90)\nwait (0.0001) seconds\npoint in direction ((direction) + (180))\nmove (5) steps\npoint in direction (90)\nwait (0.0001) seconds\n\nwhen I receive [blue v]\nswitch costume to (player2 v)\n\nwhen I receive [pink v]\nswitch costume to (player6 v)\n\nwhen I receive [yellow v]\nswitch costume to (player7 v)\n\n@Portal A \n\nwhen backdrop switches to [backdrop9 v]\nshow\ngo to x: (-144) y: (92)\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop21 v]\nhide\n\nwhen backdrop switches to [backdrop20 v]\nshow\ngo to x: (-53) y: (-188)\n\nwhen backdrop switches to [backdrop29 v]\nshow\ngo to x: (294) y: (-179)\n\nwhen backdrop switches to [backdrop30 v]\nhide\n\n@Portal B \n\nwhen backdrop switches to [backdrop9 v]\nshow\ngo to x: (-18) y: (145)\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop20 v]\nshow\ngo to x: (265) y: (121)\n\nwhen backdrop switches to [backdrop21 v]\nhide\n\nwhen backdrop switches to [backdrop29 v]\nshow\ngo to x: (-159) y: (60)\ngo to [front v] layer\n\nwhen backdrop switches to [backdrop30 v]\nhide\n\n@Sprite1\n\nwhen backdrop switches to [backdrop7 v]\nshow\nswitch costume to (costume1 v)\nwait until <touching (player  v)?>\nswitch costume to (told ya  v)\n\nswitch backdrop to (backdrop7 v)\n\nwhen backdrop switches to [backdrop8 v]\nhide\n\nwhen flag clicked\nhide\n\n@Thumbnail \n\nwhen backdrop switches to [backdrop1 v]\nhide\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\n\n\nwhen backdrop switches to [backdrop1 v]\nchange [pixelate v] effect by (0)\nchange [ghost v] effect by (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [pixelate v] effect by (5)\n    change [ghost v] effect by (5)\nend\n\nwhen backdrop switches to [first 1 v]\nhide\n\nwhen I receive [no skip v]\nshow\nswitch backdrop to (first 2 v)\n\nwhen I receive [skip v]\nshow\nswitch backdrop to (first 2 v)\n\nwhen I receive [no skip v]\nshow\n\n@Sprite6\n\nwhen this sprite clicked\nbroadcast (Play game v)\nswitch backdrop to (backdrop1 v)\nhide\n\nwhen backdrop switches to [first 2 v]\n\nwhen I receive [skip v]\nshow\nswitch costume to (start 1  v)\nwait (2.9) seconds\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (start 2 v)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (start 1  v)\n    end\nend\n\nwhen I receive [no skip v]\nshow\nswitch costume to (start 1  v)\nwait (2.9) seconds\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (start 2 v)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (start 1  v)\n    end\nend\n\nset size to (110) %\n\nset size to (100) %\n\nwhen flag clicked\nhide\n\nset size to (110) %\n\nset size to (100) %\n\n@338-3382215_shop-button-shop-button-pixel-art\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (shop v)\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [menu op v]\nshow\ngo to [front v] layer\nset size to (100) %\n\nwhen I receive [menu closed v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen I receive [leaderboard v]\nhide\n\nwhen backdrop switches to [first 2 v]\nhide\n\nswitch costume to (shop v)\n\nswitch costume to (shop v)\n\nchange size by (-2)\n\nchange size by (2)\n\nwhen I receive [songs v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (112.5) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen backdrop switches to [backdrop17 v]\nshow\nwait (5) seconds\nnext backdrop\nhide\n\nwhen this sprite clicked\nstart sound [pop v]\nbroadcast (message1 v)\nhide\n\nwhen backdrop switches to [backdrop18 v]\nhide\n\n@Sprite10\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    wait (30) seconds\n    go to x: (152) y: (49)\n    show\n    go to [front v] layer\n    repeat (9)\n        change y by (-2)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (26) y: (8)\nhide\n\nwhen backdrop switches to [backdrop26 v]\nshow\ngo to [front v] layer\nrepeat until <(backdrop [number v]) = [27]>\n    wait (0.8) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop27 v]\nhide\n\nwhen backdrop switches to [backdrop27 v]\nhide\n\n@Sprite11\n\nwhen flag clicked\nhide\nhide variable [deaths v]\nhide variable [timer v]\nhide variable [level v]\nhide variable [volume v]\nhide variable [skips v]\n\nwhen I receive [menu op v]\ngo to x: (16) y: (-19)\nshow\nshow variable [deaths v]\nshow variable [timer v]\nshow variable [level v]\nshow variable [volume v]\nshow variable [skips v]\n\nwhen this sprite clicked\nbroadcast (Menu closed v)\nhide\nhide variable [deaths v]\nhide variable [timer v]\nhide variable [level v]\nhide variable [volume v]\nhide variable [skips v]\n\nwhen flag clicked\n\nwhen I receive [shop v]\ngo to x: (16) y: (-19)\nhide\nhide variable [deaths v]\nhide variable [timer v]\nhide variable [level v]\nhide variable [volume v]\nhide variable [skips v]\n\nwhen I receive [leaderboard v]\ngo to x: (16) y: (-19)\nhide\nhide variable [deaths v]\nhide variable [timer v]\nhide variable [level v]\nhide variable [volume v]\nhide variable [skips v]\n\nwhen I receive [songs v]\ngo to x: (16) y: (-19)\nhide\nhide variable [deaths v]\nhide variable [timer v]\nhide variable [level v]\nhide variable [volume v]\nhide variable [skips v]\n\n@Sprite12\n\nwhen I receive [plz work v]\n\nwhen flag clicked\ngo to x: (-122) y: (166)\nshow\n\nrepeat (100000000)\n\n\n\nwhen this sprite clicked\n\nforever\n    if <mouse down?> then\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Menu OP v)\n\n@Sprite13\n\nwhen I start as a clone\n\n\n\nwhen I receive [shop v]\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Orange  v)\nswitch costume to (2 v)\nstart sound [pop v]\n\nwhen I receive [blue v]\nswitch costume to (3 v)\n\nwhen I receive [red  v]\nswitch costume to (3 v)\n\nwhen I receive [exit v]\nhide\n\nwhen flag clicked\nswitch costume to (3 v)\n\nwhen I receive [green v]\nswitch costume to (3 v)\n\nwhen I receive [yellow v]\nswitch costume to (3 v)\n\nwhen I receive [pink v]\nswitch costume to (3 v)\n\nwhen I receive [new shop v]\nhide\n\n@Sprite14\n\nwhen I start as a clone\n\n\n\nwhen I receive [shop v]\nshow\ngo to [front v] layer\n\nwhen this sprite clicked\nbroadcast (Blue v)\nswitch costume to (2 v)\nstart sound [pop v]\n\nwhen I receive [orange  v]\nswitch costume to (3 v)\n\nwhen I receive [red  v]\nswitch costume to (3 v)\n\n\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (3 v)\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [green v]\nswitch costume to (3 v)\n\nwhen I receive [new shop v]\nhide\n\nwhen I receive [yellow v]\nswitch costume to (3 v)\n\nwhen I receive [pink v]\nswitch costume to (3 v)\n\n@Sprite15\n\nwhen I start as a clone\n\n\n\nwhen I receive [shop v]\nshow\ngo to [front v] layer\n\nwhen this sprite clicked\nbroadcast (Red  v)\nswitch costume to (1 v)\nstart sound [pop v]\n\nwhen I receive [blue v]\nswitch costume to (2 v)\n\nwhen I receive [orange  v]\nswitch costume to (2 v)\n\nswitch costume to (3 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [exit v]\nhide\n\nwhen flag clicked\nswitch costume to (2 v)\n\nwhen I receive [yellow v]\nswitch costume to (2 v)\n\nwhen I receive [green v]\nswitch costume to (2 v)\n\nwhen I receive [pink v]\nswitch costume to (2 v)\n\nwhen I receive [new shop v]\nhide\n\n@Sprite16\n\nwhen this sprite clicked\nbroadcast (exit v)\nhide\n\nwhen I receive [shop v]\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop28 v]\nhide\n\nwhen backdrop switches to [backdrop27 v]\nshow\ngo to [front v] layer\nrepeat until <(backdrop [number v]) = [27]>\n    wait (0.9) seconds\n    next costume\nend\n\n@338-3382215_shop-button-shop-button-pixel-art2\n\nwhen I start as a clone\n\nwhen this sprite clicked\nbroadcast (shop v)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [first 2 v]\n\nwhen flag clicked\n\nwhen I receive [no skip v]\n\nswitch costume to (shop2 v)\nswitch costume to (shop3 v)\n\nwhen I receive [skip v]\nshow\nswitch costume to (shop2 v)\nwait (4) seconds\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set size to (100) %\n    end\nend\n\nwhen I receive [no skip v]\nshow\nswitch costume to (shop2 v)\nwait (4) seconds\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (shop3 v)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (shop2 v)\n    end\nend\n\n@338-3382215_shop-button-shop-button-pixel-art3\n\nwhen I start as a clone\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Leaderboard v)\n\nwhen flag clicked\n\nwait (4) seconds\n\nswitch costume to (shop3 v)\n\nswitch costume to (shop2 v)\n\nwait (4) seconds\n\nwhen I receive [menu op v]\nshow\ngo to [front v] layer\n\nwhen I receive [menu op v]\nshow\nswitch costume to (shop2 v)\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set size to (100) %\n    end\nend\n\nwhen I receive [menu closed v]\nhide\n\nwhen I receive [leaderboard v]\nhide\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [songs v]\nhide\n\n@leaderboard\n\nwhen flag clicked\nhide\nhide variable [☁ world record v]\n\nwhen I receive [menu op v]\ngo to x: (16) y: (-19)\n\nwhen this sprite clicked\nhide\nhide variable [☁ world record v]\nhide variable [☁ best time v]\n\nbroadcast (Leaderboard Closed v)\n\nwhen flag clicked\nforever\n    if <(Deaths) > (☁ World record)> then\n        set [☁ world record v] to (Deaths)\n    end\nend\n\nwhen I receive [shop v]\ngo to x: (16) y: (-19)\nhide\n\nwhen I receive [leaderboard v]\ngo to x: (16) y: (-19)\nshow\nshow variable [☁ world record v]\n\nshow\n\nhide variable [☁ best time v]\n\nhide\n\nwhen backdrop switches to [the end  v]\n\nset [☁ world record v] to [0]\n\nwhen flag clicked\nset [deaths v] to [0]\n\nshow variable [☁ best time v]\n\nset [☁ best time v] to [100]\n\n@right\n\nwhen flag clicked\nset [ghost v] effect to (30)\n\nwhen flag clicked\nhide\n\nhide\n\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    if <(Xv) > [0]> then\n        set [xv v] to [-8]\n    else\n        set [deaths v] to [8]\n    end\n    set [yv v] to [10]\nelse\n    set [xv v] to [0]\nend\n\nwhen this sprite clicked\nbroadcast (right v) and wait\n\nshow\n\nif <touching color (#eeff00)?> then\n    set [yv v] to [0]\n    go to x: (-143) y: (-171)\n    switch backdrop to (next backdrop v)\n    change [level v] by (1)\nend\nif <touching color (#1d00ff)?> then\n    set [yv v] to [15]\nend\nif <touching color (#00fff3)?> then\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        set [yv v] to [5]\n    else\n        set [yv v] to [-1]\n    end\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        set [yv v] to [-5]\n    end\nend\nif <touching color (#ff0000)?> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    set [yv v] to [0]\n    set [xv v] to [0]\n    start sound [Pew v]\n    go to x: (-143) y: (-200)\n    set [ghost v] effect to (0)\n    change [deaths v] by (1)\nend\nif <(Level) = [22]> then\n    set [sho v] to [The end!]\nend\nif <(Level) = [22]> then\n    set [sho v] to (join [Level] (join (Level) [/22]))\nend\nif <touching (portal a  v)?> then\n    go to (portal b  v)\nend\nif <touching (portal b  v)?> then\n\nwhen flag clicked\n\n\n    change [xv v] by (-0.7)\n    point in direction (90)\nend\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nif <touching color (#000000)?> then\n    change y by (1)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change x by ((Xv) * (-1))\n                        change x by (1)\n                        change y by (-5)\n                        change x by (-1)\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Yv)\nif <touching color (#000000)?> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <touching color (#000000)?> then\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        start sound [Basketball Bounce v]\n        set [yv v] to [10]\n    end\nend\nchange y by (1)\n\n@Sprite5\n\nwhen flag clicked\nset [ghost v] effect to (30)\n\nwhen flag clicked\nhide\n\n@Sprite9\n\nwhen flag clicked\nset [ghost v] effect to (30)\n\nwhen flag clicked\nhide\n\n@Sprite17\n\nwhen flag clicked\nset [ghost v] effect to (30)\n\nwhen flag clicked\nhide\n\n@Sprite18\n\nwhen I receive [the end  v]\n\nswitch costume to (costume5 v)\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [the end  v]\nshow\nrepeat (5)\n    turn right (-0.5) degrees\nend\nforever\n    repeat (10)\n        turn right (0.5) degrees\n    end\n    repeat (2)\n        change size by (5)\n    end\n    repeat (2)\n        change size by (-5)\n    end\n    repeat (10)\n        turn right (-0.5) degrees\n    end\n    repeat (2)\n        change size by (5)\n    end\n    repeat (2)\n        change size by (-5)\n    end\nend\n\n@Stars \n\nwhen I receive [play v]\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [the end  v]\nforever\n    hide\nend\n\nwhen backdrop switches to [backdrop30 v]\ngo to [front v] layer\nhide\nwait (0.1) seconds\nrepeat until <(backdrop [number v]) = [35]>\n    if <(Lag) = [0]> then\n        wait (pick random (0) to (0.1)) seconds\n        switch costume to (pick random (1) to (2))\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nshow\nclear graphic effects\nset size to (pick random (80) to (200)) %\nset [ghost v] effect to (100)\npoint in direction (90)\ngo to x: (pick random (-240) to (240)) y: (pick random (180) to (-100))\nrepeat (20)\n    go to [back v] layer\n    if <(Lag) = [0]> then\n        change [ghost v] effect by (-5)\n    end\nend\nrepeat (20)\n    go to [back v] layer\n    if <(Lag) = [0]> then\n        change [ghost v] effect by (5)\n    end\nend\ndelete this clone\n\n@To be continued \n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [the end  v]\nshow\nchange [pixelate v] effect by (0)\nchange [ghost v] effect by (0)\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nwait (4) seconds\nrepeat (20)\n    change [pixelate v] effect by (5)\n    change [ghost v] effect by (5)\nend\n\nhide\n\n@sun \n\nwhen backdrop switches to [backdrop30 v]\nshow\ngo [backward v] (1) layers\nrepeat until <(backdrop [name v]) = [the end ]>\n    switch costume to (costume1 v)\n    show\n    set size to (100) %\n    go to x: (280) y: (219)\n    change [effects v] by (5)\n    set size to ((9000) / ((50) + (([cos v] of (Effects) ) * (1.5)))) %\n    point in direction ((100) + (([cos v] of (Effects) ) * (10)))\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [the end  v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nshow\nset size to (110) %\nwait (.6) seconds\nrepeat (40)\n    change size by (-2)\nend\nhide\n\nwhen flag clicked\nplay sound [recording1 v] until done\n\n@Sprite3\n\nwhen flag clicked\nhide\nset size to (5) %\nwait (1.) seconds\nshow\nrepeat (9)\n    change size by (50)\nend\nbroadcast (shake v)\nwait (1.5) seconds\nhide\n\ngo to [front v] layer\n\ndefine shake (direction)\npoint in direction (direction)\nmove (5) steps\npoint in direction (90)\nwait (0.0001) seconds\npoint in direction ((direction) + (180))\nmove (5) steps\npoint in direction (90)\nwait (0.0001) seconds\n\nwhen I receive [shake v]\nshake [45]\nshake [-45]\nshake [135]\nshake [-150]\n\n@Sprite19\n\nwhen flag clicked\nshow\ngo to [front v] layer\nwait (.5) seconds\nhide\n\n@Sprite21\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen I receive [menu op v]\nshow\n\nwhen I receive [leaderboard v]\nhide\n\nwhen I receive [menu closed v]\nhide\n\nwhen I receive [shop v]\nhide\n\nwhen this sprite clicked\nnext backdrop\nchange [level v] by (1)\nchange [skips v] by (1)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [no skip v]\nforever\n    hide\nend\n\nwhen I receive [songs v]\nhide\n\n@Sprite22\n\nwhen flag clicked\nhide\nwait (2.7) seconds\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (Skip v)\nhide\n\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set size to (100) %\n    end\nend\n\nswitch costume to (costume2 v)\n\nswitch costume to (costume1 v)\n\nwhen I receive [skip v]\nchange [pixelate v] effect by (0)\nchange [ghost v] effect by (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [pixelate v] effect by (5)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [no skip v]\nchange [pixelate v] effect by (0)\nchange [ghost v] effect by (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [pixelate v] effect by (5)\n    change [ghost v] effect by (5)\nend\n\n@Sprite23\n\nwhen flag clicked\nhide\nwait (2.7) seconds\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (No skip v)\nhide\n\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set size to (100) %\n    end\nend\n\nswitch costume to (costume2 v)\n\nswitch costume to (costume1 v)\n\nchange [color v] effect by (25)\n\nchange size by (10)\n\nchange size by (10)\n\nwhen backdrop switches to [backdrop1 v]\n\nwhen I receive [no skip v]\nchange [pixelate v] effect by (0)\nchange [ghost v] effect by (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [pixelate v] effect by (5)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [skip v]\nchange [pixelate v] effect by (0)\nchange [ghost v] effect by (0)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [pixelate v] effect by (5)\n    change [ghost v] effect by (5)\nend\n\n@Effect\n\nwhen flag clicked\nhide\nwait (2.7) seconds\ngo to x: (0) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nclear graphic effects\nhide\ngo to [back v] layer\nrepeat until <(backdrop [name v]) = [first 3]>\n    show\n    go to [back v] layer\n    go [forward v] (1) layers\n    erase all\n    change [x v] by (-2)\n    change [y v] by (1.5)\n    set x to (x)\n    set y to (y)\n    if <(x) = [-40]> then\n        set [x v] to [0]\n        set [y v] to [0]\n    end\nend\nhide\n\nwhen flag clicked\n\nshow\n\nwhen I receive [no skip v]\nforever\n    hide\nend\n\nwhen I receive [skip v]\nforever\n    hide\nend\n\n@Backdrop\n\nwhen flag clicked\nhide\nwait (2.7) seconds\nshow\ngo to [back v] layer\nrepeat until <(backdrop [name v]) = [first 3]>\n    go to [back v] layer\nend\nhide\n\nwhen flag clicked\n\nrepeat until <(backdrop [name v]) = [first 2]>\n\nwhen I receive [skip v]\nhide\n\nwhen I receive [no skip v]\nhide\n\n@Sprite24\n\nwhen I start as a clone\n\n\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Pink v)\nswitch costume to (2 v)\nstart sound [pop v]\n\nwhen I receive [blue v]\nswitch costume to (3 v)\n\nwhen I receive [red  v]\nswitch costume to (3 v)\n\nwhen I receive [exit v]\nhide\n\nwhen flag clicked\nswitch costume to (3 v)\n\nwhen I receive [green v]\nswitch costume to (3 v)\n\nwhen I receive [new shop v]\nshow\ngo to [front v] layer\n\nwhen I receive [yellow v]\nswitch costume to (3 v)\n\n@Sprite25\n\nwhen flag clicked\nhide\n\nwhen I receive [shop v]\nshow\n\nwhen this sprite clicked\nbroadcast (New shop v)\n\nwhen this sprite clicked\n\nbroadcast (Blue v)\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [new shop v]\nhide\n\n@Sprite26\n\nwhen I start as a clone\n\n\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Green v)\nswitch costume to (2 v)\nstart sound [pop v]\n\nwhen I receive [blue v]\nswitch costume to (3 v)\n\nwhen I receive [red  v]\nswitch costume to (3 v)\n\nwhen I receive [exit v]\nhide\n\nwhen flag clicked\nswitch costume to (3 v)\n\nwhen I receive [pink v]\nswitch costume to (3 v)\n\nwhen I receive [new shop v]\nshow\ngo to [front v] layer\n\nwhen I receive [yellow v]\nswitch costume to (3 v)\n\n@Sprite27\n\nwhen I start as a clone\n\n\n\nwhen I receive [shop v]\nhide\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Yellow v)\nswitch costume to (2 v)\nstart sound [pop v]\n\nwhen I receive [blue v]\nswitch costume to (3 v)\n\nwhen I receive [red  v]\nswitch costume to (3 v)\n\nwhen I receive [exit v]\nhide\n\nwhen flag clicked\nswitch costume to (3 v)\n\nhide\n\nwhen I receive [green v]\nswitch costume to (3 v)\n\nwhen I receive [pink v]\nswitch costume to (3 v)\n\nwhen I receive [new shop v]\nshow\ngo to [front v] layer\n\n@Sprite28\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (shop v)\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [new shop v]\nshow\n\nbroadcast (shop v)\n\nwhen I receive [exit v]\nhide\n\n@Sprite29\n\nwhen flag clicked\nhide\n\nwhen I receive [menu op v]\nshow\n\nwhen I receive [shop v]\n\nshow\n\nwhen this sprite clicked\nbroadcast (Songs v)\n\nwhen I receive [songs v]\nhide\n\nwhen I receive [menu closed v]\nhide\n\n@leaderboard2\n\nwhen flag clicked\nhide\n\nwhen I receive [menu op v]\ngo to x: (16) y: (-19)\n\nbroadcast (Leaderboard Closed v)\n\nwhen I receive [shop v]\ngo to x: (16) y: (-19)\nhide\n\nwhen I receive [leaderboard v]\ngo to x: (16) y: (-19)\n\nshow\n\nwhen backdrop switches to [the end  v]\n\nset [☁ world record v] to [0]\n\nset [☁ best time v] to [100]\n\nwhen I receive [songs v]\nshow\n\nwhen this sprite clicked\nbroadcast (Exit songs v)\nhide\n\nwhen I receive [exit songs v]\nhide\n\nwhen I receive [exit songs v]\nhide\n\n@Sprite30\n\nwhen flag clicked\nhide\n\nwhen I receive [songs v]\nshow\n\nwhen this sprite clicked\nstart sound [DEAF KEV - Invincible \[NCS Release\] v]\n\n\nend\n\nplay sound [DEAF KEV - Invincible \[NCS Release\] v] until done\nstart sound [DEAF KEV - Invincible \[NCS Release\] v]\n\nwhen I receive [alan walker v]\n\nchange volume by (-100)\nstop all sounds\n\nclear sound effects\n\nset volume to (volume) %\n\nbroadcast (DEAF KEV v)\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [songs v]\nshow\n\nwhen I receive [exit songs v]\nhide\n\n@Sprite31\n\nwhen flag clicked\nhide\n\nwhen I receive [blue v]\nshow\n\nwhen this sprite clicked\nstart sound [Alan Walker - Spectre \[Privated NCS Release\] \(1\) v]\n\nbroadcast (Alan walker v)\n\n\n    play sound [Alan Walker - Spectre \[Privated NCS Release\] \(1\) v] until done\nend\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [songs v]\nshow\n\nwhen I receive [exit songs v]\nhide\n\n@Stop\n\nwhen flag clicked\nhide\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [songs v]\nshow\n\nwhen this sprite clicked\nstop all sounds\n\nwhen I receive [exit songs v]\nhide\n\n@Sprite32\n\nwhen flag clicked\nhide\n\nwhen I receive [blue v]\nshow\n\nwhen this sprite clicked\nstart sound [TheFatRat, Slaydit & Anjulie - Stronger \[Monstercat Release\] v]\n\nwhen I receive [exit v]\nhide\n\nwhen I receive [songs v]\nshow\n\nwhen I receive [exit songs v]\nhide\n\n\n    play sound [TheFatRat, Slaydit & Anjulie - Stronger \[Monstercat Release\] v] until done\n    broadcast (Alan walker v)\nend\n\n