Scratch Cat Platformer

Instructions: **This game is very very glitchy**\nUse the arrow keys to move! \nTry to get to the green square.\nDon't touch the red!\nEvery level is possible!\nThe High Score is the top time!\nCan you get 0 deaths? Can you beat the top time?\nFind out!

@Stage\n\nwhen flag clicked\nforever\n    play note (60) for (0.5) beats\n    play note (65) for (0.5) beats\n    play note (67) for (0.5) beats\n    play note (64) for (0.5) beats\n    play drum (1 v) for (0.25) beats\n    play note (60) for (0.5) beats\n    play note (65) for (0.25) beats\n    play note (67) for (0.5) beats\n    play note (64) for (0.4) beats\n    play drum (7 v) for (0.25) beats\n    play note (60) for (0.25) beats\n    play drum (7 v) for (0.25) beats\n    play note (65) for (0.5) beats\n    play drum (3 v) for (0.25) beats\n    play drum (7 v) for (0.25) beats\n    play note (67) for (0.5) beats\n    play drum (7 v) for (0.25) beats\n    play note (64) for (0.5) beats\n    play drum (1 v) for (0.25) beats\n    play note (60) for (0.5) beats\n    play note (65) for (0.25) beats\n    play note (67) for (0.5) beats\n    play note (64) for (0.4) beats\n    play drum (8 v) for (0.25) beats\n    play drum (7 v) for (0.25) beats\nend\n\n@Sprite1\n\nwhen flag clicked\nshow variable [level v]\nset [level v] to [1]\nset [deaths v] to [0]\nshow variable [deaths v]\nset size to (40) %\nhide variable [speed y v]\nset [speed y v] to [0]\nset [falling v] to [10]\nforever\n    switch costume to (hitbox v)\n    change [speed y v] by (-1)\n    change y by (speed y)\n    Touch Command <(speed y) > [0]>\n    set rotation style [left-right v]\n    switch costume to (costumes)\n    if <key (right arrow v) pressed?> then\n        Walk (90) (5)\n        if <(costume [number v]) = [19]> then\n            switch costume to (1 v)\n        else\n            next costume\n        end\n        set [costumes v] to (costume [number v])\n    end\n    if <key (left arrow v) pressed?> then\n        Walk (-90) (-5)\n        if <(costume [number v]) = [19]> then\n            switch costume to (1 v)\n        else\n            next costume\n        end\n        set [costumes v] to (costume [number v])\n    end\n    if <<key (up arrow v) pressed?> and <(falling) < [3]>> then\n        set [speed y v] to [12]\n    end\n    if <(y position) < [-180]> then\n        go to x: (-181) y: (-57)\n        set [speed y v] to [0]\n    end\nend\n\nwhen flag clicked\nhide variable [falling v]\nshow\nswitch costume to (1 v)\ngo to x: (-181) y: (-57)\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-181) y: (30)\n        change [deaths v] by (1)\n    end\n    if <touching (sprite3 v)?> then\n        broadcast (message1 v)\n    end\nend\n\nwhen I receive [message1 v]\ngo to x: (-181) y: (-57)\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [2]> or <not <touching (sprite2 v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [2]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\ndefine Touch Command <up?>\nchange [falling v] by (1)\nrepeat until <not <touching (sprite2 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\nchange y by (-1)\n\nstart sound [recording1 v]\n\nchange [costumes v] by (1)\n\nchange [costumes v] by (1)\n\nset [costumes v] to ((costume [number v]) + (1))\nswitch costume to (costumes)\n\n\nset [costumes v] to [1]\n\nswitch costume to (hitbox v)\n\nswitch costume to (costumes)\nif <(costumes) > [19]> then\n    switch costume to (1 v)\n    set [costumes v] to [1]\nend\n\n\n    set [speed y v] to [0]\n    change y by (1)\nend\n\n@Sprite2\n\nwhen flag clicked\nshow variable [☁ high score v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [message1 v]\nnext costume\nchange [level v] by (1)\nif <(costume [number v]) = [9]> then\n    broadcast (done v)\nend\n\nwhen I receive [done v]\nif <(timer) < (☁ High Score)> then\n    set [☁ high score v] to (timer)\n    say [You beat the high score!] for (4) seconds\n    say (join (username) (☁ High Score)) for (2) seconds\nend\n\nwhen flag clicked\nreset timer\n\nset [☁ high score v] to [99999]\n\n@Sprite3\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\ngo to x: (223) y: (7)\nhide variable [costumes v]\nswitch costume to (costume2 v)\nshow\n\nwhen I receive [done v]\nhide\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Sprite5\n\nwhen flag clicked\nhide\n\n