A Very Easy Platformer

Instructions: Newest Platformer!\nhttps://scratch.mit.edu/projects/384987982/ \n--Arrow keys to move\n--You can swim in water\n--Avoid touching red\nS to stop music \nP to play music\nNumbers for volume control\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n----------------------------------------------------\n#platformer #game 

@Stage\n\nwhen flag clicked\nset volume to (50) %\nstart sound [Running About \(Overworld\) v]\n\nwhen [s v] key pressed\nstop all sounds\n\nwhen [p v] key pressed\nset volume to (50) %\nstart sound [Running About \(Overworld\) v]\n\nwhen [1 v] key pressed\nset volume to (10) %\n\nwhen [2 v] key pressed\nset volume to (20) %\n\nwhen [3 v] key pressed\nset volume to (30) %\n\nwhen [4 v] key pressed\nset volume to (40) %\n\nwhen [5 v] key pressed\nset volume to (50) %\n\nwhen [6 v] key pressed\nset volume to (60) %\n\nwhen [6 v] key pressed\nset volume to (60) %\n\nwhen [7 v] key pressed\nset volume to (70) %\n\nwhen [8 v] key pressed\nset volume to (80) %\n\nwhen [9 v] key pressed\nset volume to (90) %\n\n@Ball\n\nwhen flag clicked\nset [x v] to [0]\nset [y v] to [0]\nswitch backdrop to (backdrop1 v)\ngo to x: (-210) y: (-110)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\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 ((X) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-5]\n                                else\n                                    set [x v] to [5]\n                                end\n                                set [y v] to [10]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching color (#000000)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-210) y: (-110)\n    end\n    if <(x position) > [230]> then\n        go to x: (-210) y: (-110)\n        switch backdrop to (next backdrop v)\n    end\n    if <touching color (#ff9400)?> then\n        set [y v] to [24]\n    end\n    if <touching color (#004aff)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n        else\n            set [y v] to [-1]\n        end\n        if <key (down arrow v) pressed?> then\n            set [y v] to [-5]\n        end\n    end\nend\n\nwhen [left arrow v] key pressed\nswitch costume to (ball-b v)\n\nwhen [right arrow v] key pressed\nswitch costume to (ball-a v)\n\n@Screenshot 2020-04-05 at 2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen flag clicked\nforever\n    if <<key (t v) pressed?> and <(username) = [Scratcher_787]>> then\n        show\n    end\nend\n\n