Super Simple (A Platformer)

Instructions: This is just another simple platformer I made in my spare time, but I hope you enjoy! \nA love, fave and comment would be very nice!\n-------------------------------------------------------------------------\nArrow keys or WASD to move.\nAvoid red and jump on yellow.\nGet to the right end for the next level.\nIn the final level, touch the green flag to goal!\nThat is it.\nHave fun!\n-------------------------------------------------------------------------\nCheck out my other games too!\nhttps://scratch.mit.edu/studios/4685976/projects/\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nwait (1) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nswitch backdrop to (backdrop2 v)\nclear graphic effects\nbroadcast (message1 v)\n\nwhen I receive [messege3 v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nclear graphic effects\nswitch backdrop to (backdrop1 v)\nstop [all v]\n\n@Sprite1\n\nwhen flag clicked\nset [level v] to [0]\nhide variable [level v]\nhide\n\nwhen I receive [message1 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\ngo to [back v] layer\nshow\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I receive [message2 v]\nnext costume\n\nwhen I receive [messege3 v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [20]> then\n        go to x: (154) y: (-121)\n        set size to (46) %\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [messege3 v]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen flag clicked\nhide variable [☁ world record v]\nhide variable [your time v]\nset [your time v] to [0]\n\nwhen I receive [message1 v]\nshow variable [☁ world record v]\nshow variable [your time v]\nforever\n    repeat until <touching (sprite3 v)?>\n        wait (1) seconds\n        change [your time v] by (1)\n    end\n    if <(Your Time) < (☁ World Record)> then\n        set [☁ world record v] to (Your Time)\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\ngo to x: (-202) y: (-58)\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#ffffff)?> then\n        change y by (1)\n        if <touching color (#ffffff)?> then\n            change y by (1)\n            if <touching color (#ffffff)?> then\n                change y by (1)\n                if <touching color (#ffffff)?> then\n                    change y by (1)\n                    if <touching color (#ffffff)?> then\n                        change y by (1)\n                        if <touching color (#ffffff)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\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 [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#ffffff)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#ffffff)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yv v] to [14]\n        end\n    end\n    change y by (1)\n    if <<<touching color (#ff0000)?> or <(y position) < [-175]>> or <key (r v) pressed?>> then\n        reset\n    end\n    if <touching color (#c9ff00)?> then\n        set [yv v] to [20]\n    end\n    if <(x position) > [252]> then\n        broadcast (message2 v)\n        reset\n    end\n    if <touching (sprite2 v)?> then\n        broadcast (messege3 v)\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n    end\nend\n\ndefine reset\ngo to x: (-202) y: (-58)\n\n