Cute Cube Adventure 5 (Platformer Series)

Instructions: Cute Cube Adventure 5 (Platformer Series)\nFRONT PAGED ON 11/17/2019 thanks, CrimsonROSES34!!\nPlay Cute Cube Adventure 1: https://scratch.mit.edu/projects/278923025/\nCute Cube Adventure 2: https://scratch.mit.edu/projects/289001637/\nCute Cube Adventure 3: https://scratch.mit.edu/projects/291836076/\nCute Cube Adventure 4: https://scratch.mit.edu/projects/318478945/\n\nSetting:\nHello hello! Welcome to Cute Cube Adventure 5, the official fifth part in the platformer series!! Today, Cute Cube wanted to head to the beach of Cube Land! The bright blue ocean, golden sand, and puffy white clouds overhead look like great fun! But there is also the red sand, which hurts Cute Cube, and the giant sandcastles that is hard for him to jump over! Can you help him have a good time at the beach?\n \nInstructions:\n--Use your arrow keys to move--\n--Press the R key to restart any level--\n--Press the S key to skip any level--\n--Dodge the red and other obstacles to help Cute Cube on the beach of Cube Land!--\n--Have fun!!--

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [message1 v]\nswitch backdrop to (backdrop55 v)\n\nwhen flag clicked\nforever\n    play sound [Volca - KnightKit12 v] until done\nend\n\n@Cute Cube\n\nwhen flag clicked\nhide\n\ngo to x: (128) y: (-180)\n\nset [player: x v] to [5]\n\n\n\nwhen I receive [message1 v]\nswitch backdrop to (backdrop2 v)\ngo to x: (-207) y: (-100)\nset rotation style [left-right v]\nset [player: x v] to [0]\nset [player: y v] to [0]\nshow\nforever\n    if <(y position) = [-179]> then\n        go to x: (-207) y: (-5)\n        set [player: x v] to [0]\n        set [player: y v] to [0]\n    end\n    if <(x position) > [234]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-218) y: (-115)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <key (right arrow v) pressed?> then\n        change [player: x v] by (1)\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        change [player: x v] by (-1)\n        point in direction (-90)\n    end\n    set [player: x v] to ((Player: x) * (.9))\n    change x by (Player: 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 y by (-5)\n                            change x by ((Player: x) * (-1))\n                            if <key (up arrow v) pressed?> then\n                                set [player: y v] to [10]\n                                if <(Player: x) > [0]> then\n                                    set [player: x v] to [-10]\n                                else\n                                    set [player: x v] to [10]\n                                end\n                            else\n                                set [player: x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [player: y v] by (-.5)\n    change y by (Player: y)\n    if <touching color (#000000)?> then\n        change y by ((Player: y) * (-1))\n        set [player: y v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [player: y v] to [10]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-207) y: (-80)\n        set [player: x v] to [0]\n        set [player: y v] to [0]\n    end\n    if <touching color (#ff00e1)?> then\n        set [player: y v] to [16]\n    end\nend\n\nwhen [s v] key pressed\nswitch backdrop to (next backdrop v)\ngo to x: (-218) y: (-80)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen [r v] key pressed\ngo to x: (-218) y: (-80)\nset [x v] to [0]\nset [y v] to [0]\n\nif <not <touching color (#000000)?>> then\n\nwhen backdrop switches to [backdrop21 v]\nhide\nstop [this script v]\n\n@Play Game Button\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat (4)\n            change size by (2)\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        repeat (4)\n            change size by (-2)\n        end\n    end\nend\n\nwhen this sprite clicked\nbroadcast (message1 v)\n\n