Pusheen platformer

Instructions: @android_99\nHi, this is my first pusheen platformer, have fun! This time ahead of you is the sweetest and most popular cat in the world - our favorite and beloved Pusheen! Each of you knows that Pusheen loves sweets, so as a world in the game I made candyland! Who doesn't love Pusheen? I think rather or certainly most of you! Have fun. Don't forget to click the heart and star and leave a good comment! And all this of course for Pusheen :) Maybe this game will become one of your favorites on Scratch?\n==========================================\nInstructions:\nClick  the green flag to start game.                                                                                                                                                                                                                                                                                                                                                                                                    \nUse arrow keys to move. ←↓→\nCollect coins! $\nI hope you like my project!\n=^.^=\nAll levels are possible!\n Sorry, there are only 13 levels.\nIn the future I'll make more.\nI want to have 100 views!\n\n\n

@Stage\n\nwhen I receive [backdrop v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Ground\n\nwhen flag clicked\nswitch costume to (costume2 v)\ngo to x: (-2) y: (-3)\n\nwhen I receive [next level v]\nnext costume\nif <(costume [number v]) = [9]> then\n    broadcast (backdrop v)\nend\nif <(costume [number v]) = [11]> then\n    switch backdrop to (backdrop1 v)\nend\n\nwhen flag clicked\nhide variable [☁ global deaths v]\nforever\n    if <(costume [number v]) = [13]> then\n        show variable [deaths v]\n        show variable [☁ global deaths v]\n        change [☁ global deaths v] by (deaths)\n        stop [this script v]\n    end\nend\n\n@Player\n\ndefine Touch Ground <up?>\nchange [falling? v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\nwhen flag clicked\nset [levels v] to [0]\nhide variable [deaths v]\nset [deaths v] to [0]\nset size to (25) %\ngo to x: (-180) y: (-79)\nset rotation style [left-right v]\npoint in direction (90)\nshow\nset [speed y v] to [0]\nforever\n    change [speed y v] by (-1)\n    change y by (speed y)\n    Touch Ground <(speed y) > [0]>\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        Walk (-90) (-5)\n    end\n    if <key (right arrow v) pressed?> then\n        Walk (90) (5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <(falling?) < [3]>> then\n        set [speed y v] to [12]\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nforever\n    if <(y position) < [-180]> then\n        change [deaths v] by (1)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-200) y: (100)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        set [speed y v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [240]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        change [levels v] by (1)\n        broadcast (next level v)\n        go to x: (-200) y: (100)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching color (#00ff55)?> and <(falling?) < [3]>> then\n        set [speed y v] to [23]\n    end\nend\n\nwhen flag clicked\nforever\n    wait (0.5) seconds\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <touching color (#0d1010)?> then\n        change [deaths v] by (1)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-200) y: (100)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\nend\n\n@Sun\n\nwhen flag clicked\nset size to (500) %\nforever\n    repeat (400)\n        change x by (-1)\n    end\n    repeat (400)\n        change x by (1)\n    end\nend\n\nwhen flag clicked\ngo to x: (290) y: (208)\n\nwhen flag clicked\nshow\nSHINE LIKE A STAR!\n\ndefine SHINE LIKE A STAR!\nforever\n    wait (0.1) seconds\n    switch costume to (costume1 v)\n    wait (0.1) seconds\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume5 v)\n    wait (0.1) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume2 v)\nend\n\nwhen I receive [backdrop v]\nhide\n\nwhen flag clicked\nforever\n    change [color v] effect by (3)\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    show\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\nforever\nend\n\n@mouse\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to x: ((x position) + (pick random (-10) to (10))) y: ((y position) + (pick random (-10) to (10)))\nset [color v] effect to (pick random (1) to (100))\nset size to (pick random (50) to (80)) %\nrepeat (10)\n    change size by (-5)\nend\ndelete this clone\n\n@Pusheen Cat2\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset [color v] effect to (pick random (10) to (200))\nset [ghost v] effect to (100)\nset size to (pick random (10) to (100)) %\nset [ghost v] effect to (pick random (65) to (112))\ngo to x: (600) y: (pick random (-167.01) to (167))\nglide (pick random (2) to (6)) secs to x: (-300) y: (pick random (-167.01) to (167))\nrepeat (20)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    create clone of (_myself_ v)\nend\n\n@Sprite2\n\nwhen I start as a clone\nshow\nset [color v] effect to (pick random (10) to (200))\nset [ghost v] effect to (100)\nset size to (pick random (10) to (200)) %\nset [ghost v] effect to (pick random (65) to (112))\ngo to x: (600) y: (pick random (-167.01) to (167))\nglide (pick random (2) to (6)) secs to x: (-300) y: (pick random (-167.01) to (167))\nrepeat (20)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    create clone of (_myself_ v)\nend\n\n@pusheen-nyan-cat\n\nwhen flag clicked\nset size to (25) %\ngo to x: (192) y: (-144)\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    play sound [MUSIC v] until done\nend\n\n@proxy\n\nwhen flag clicked\nset [speed v] to [0]\nforever\n    if <(speed) = [0]> then\n        if <(levels) = [0]> then\n            go to x: (15) y: (-141)\n            show\n        end\n    end\n    if <touching (player v)?> then\n        set [speed v] to [6]\n        play sound [Collect v] until done\n        hide\n    end\nend\n\n@proxy2\n\nwhen flag clicked\nset [qwer v] to [0]\nforever\n    if <(qwer) = [0]> then\n        if <(levels) = [1]> then\n            go to x: (138) y: (-31)\n            show\n        end\n    end\n    if <touching (player v)?> then\n        hide\n        set [qwer v] to [6]\n        play sound [Collect v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(levels) = [0]> then\n        hide\n    end\nend\n\n@proxy3\n\nwhen flag clicked\nset [nobel v] to [0]\nforever\n    if <(nobel) = [0]> then\n        if <(levels) = [2]> then\n            show\n            go to x: (9) y: (17)\n        end\n    end\n    if <touching (player v)?> then\n        hide\n        set [nobel v] to [6]\n        play sound [Collect v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(levels) = [0]> then\n        hide\n    end\n    if <(levels) = [1]> then\n        hide\n    end\n    if <(levels) = [3]> then\n        hide\n    end\n    if <(levels) = [5]> then\n        hide\n    end\n    if <(levels) = [6]> then\n        hide\n    end\nend\n\n@proxy4\n\nwhen flag clicked\nset [gonre v] to [0]\nforever\n    if <(gonre) = [0]> then\n        if <(levels) = [3]> then\n            show\n            go to x: (96) y: (-101)\n        end\n    end\n    if <touching (player v)?> then\n        hide\n        set [gonre v] to [6]\n        play sound [Collect v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(levels) = [0]> then\n        hide\n    end\n    if <(levels) = [1]> then\n        hide\n    end\n    if <(levels) = [2]> then\n        hide\n    end\nend\n\n@proxy5\n\nwhen flag clicked\nset [finkow@ v] to [0]\nforever\n    if <(finkow@) = [0]> then\n        if <(levels) = [4]> then\n            show\n            go to x: (102) y: (-184)\n        end\n    end\n    if <touching (player v)?> then\n        hide\n        set [finkow@ v] to [6]\n        play sound [Collect v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(levels) = [0]> then\n        hide\n    end\n    if <(levels) = [1]> then\n        hide\n    end\n    if <(levels) = [2]> then\n        hide\n    end\n    if <(levels) = [3]> then\n        hide\n    end\n    if <(levels) = [5]> then\n        hide\n    end\n    if <(levels) = [6]> then\n        hide\n    end\nend\n\n@proxy6\n\nwhen flag clicked\nset [polik v] to [0]\nforever\n    if <(polik) = [0]> then\n        if <(levels) = [5]> then\n            go to x: (302) y: (-173)\n            show\n        end\n    end\n    if <touching (player v)?> then\n        hide\n        set [polik v] to [6]\n        play sound [Collect v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(levels) = [0]> then\n        hide\n    end\n    if <(levels) = [1]> then\n        hide\n    end\n    if <(levels) = [2]> then\n        hide\n    end\n    if <(levels) = [3]> then\n        hide\n    end\n    if <(levels) = [4]> then\n        hide\n    end\n    if <(levels) = [6]> then\n        hide\n    end\nend\n\n@proxy7\n\nwhen flag clicked\nset [lijfe32 v] to [0]\nforever\n    if <(lijfe32) = [0]> then\n        if <(levels) = [6]> then\n            show\n            go to x: (54) y: (51)\n        end\n    end\n    if <touching (player v)?> then\n        hide\n        set [lijfe32 v] to [6]\n        play sound [Collect v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(levels) = [0]> then\n        hide\n    end\n    if <(levels) = [1]> then\n        hide\n    end\n    if <(levels) = [2]> then\n        hide\n    end\n    if <(levels) = [3]> then\n        hide\n    end\n    if <(levels) = [4]> then\n        hide\n    end\n    if <(levels) = [5]> then\n        hide\n    end\n    if <(levels) = [7]> then\n        hide\n    end\nend\n\n