Watermelon Platformer
@Stage\n\nwhen I receive [next v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> 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 (#666666)?> then\n        change y by (1)\n        if <touching color (#666666)?> then\n            change y by (1)\n            if <touching color (#666666)?> then\n                change y by (1)\n                if <touching color (#666666)?> then\n                    change y by (1)\n                    if <touching color (#666666)?> then\n                        change y by (1)\n                        if <touching color (#666666)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> 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 (#666666)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#666666)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [20]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\ngo to x: (-60) y: (-155)\nforever\n    wait until <touching (sprite2 v)?>\n    broadcast (Next v)\n    go to x: (-60) y: (-155)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-60) y: (-155)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ff55)?> then\n        set [yv v] to [26]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        set [xv v] to [13]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff9400)?> then\n        set [xv v] to [-13]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#c96fff)?> then\n        set [yv v] to [-13]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#7f00ff)?> then\n        set [yv v] to [13]\n    end\nend\n\n@Sprite2\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n
Arrow keys to move.\n