Watermelon: A Platformer
@Stage\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <touching (sprite4 v)?> then\n        next backdrop\n    end\nend\n\nwhen [left arrow v] key pressed\nforever\n    if <(wall restrict left) = [0]> then\n        if <key (left arrow v) pressed?> then\n            repeat until <not <key (left arrow v) pressed?>>\n                set [xv v] to [-1]\n                switch costume to (left v)\n                move (-10) steps\n            end\n        end\n    end\nend\n\nwhen [right arrow v] key pressed\nforever\n    if <(wall restrict) = [0]> then\n        if <key (right arrow v) pressed?> then\n            repeat until <not <key (right arrow v) pressed?>>\n                set [xv v] to [1]\n                switch costume to (right v)\n                move (10) steps\n            end\n        end\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-97) y: (-77)\nset [gravity v] to [0]\nforever\n    if <<touching (sprite3 v)?> or <touching color (#000000)?>> then\n        set [gravity v] to [0]\n    end\n    if <<touching (sprite3 v)?> and <key (up arrow v) pressed?>> then\n        set [gravity v] to [10]\n        set [bounce height v] to [0]\n    end\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [gravity v] to [10]\n        set [bounce height v] to [0]\n    end\n    if <<touching color (#ff9191)?> and <key (up arrow v) pressed?>> then\n        set [gravity v] to [10]\n        set [bounce height v] to [0]\n    end\n    change y by (gravity)\n    change [gravity v] by (-0.8)\nend\n\nwhen flag clicked\nset [yv v] to [0]\nset [xv v] to [0]\nif <(Xv) > [0]> then\n    if <touching (sprite2 v)?> then\n        repeat until <not <touching (sprite2 v)?>>\n            change x by (-2)\n        end\n    end\nend\n\n\n    say [Hello!]\nend\n\nset [example v] to [0]\n\nchange [xv v] by (1)\n\ndefine move vertical\n\nforever\n    \nend\n\nchange y by (gravity)\nchange [gravity v] by (-0.8)\nmove vertical\n\nset [bounce height v] to [80]\n\nset [wall restrict v] to [0]\n\nmove vertical\n\nwhen flag clicked\nforever\n    if <touching color (#000000)?> then\nend\n\nrepeat until <not <touching color (#000000)?>>\nchange y by (-5)\nchange x by ((Xv) * (-1))\n\nwhen I receive [message1 v]\ngo to x: (-97) y: (-77)\n\nwhen I receive [redo v]\ngo to x: (-97) y: (-77)\n\nrepeat (1)\n    change [whirl v] effect by (5)\nend\n\nset [whirl v] effect to (0)\n\n@Sprite3\n\n@Sprite2\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Sprite4\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (costume1 v)\n\nforever\n\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        change [level v] by (1)\n        broadcast (message1 v)\n        next costume\n    end\nend\n\nnext backdrop\n\nnext backdrop\n\nwhen flag clicked\nforever\n\nwhen [s v] key pressed\nif <(level) < [10]> then\n    change [level v] by (1)\n    broadcast (message1 v)\n    next costume\nend\n\n@Sprite5\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (redo v)\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        show\n        go to x: (105) y: (-100)\n        switch costume to (left v)\n        forever\n            repeat (50)\n                move (-5) steps\n            end\n            switch costume to (right v)\n            repeat (50)\n                move (5) steps\n            end\n            switch costume to (left v)\n        end\n    end\nend\n\nswitch costume to (left v)\n\nwait (0.4) seconds\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (redo v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(level) = [4]>> then\n        hide\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nforever\n    if <not <<(level) = [5]> or <(level) = [7]>>> then\n        hide\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume5 v)\ngo to x: (286) y: (84)\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        set [gravity v] to [20]\n        wait (0.6) seconds\n        set [gravity v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [5]> then\n        show\n        go to x: (-5) y: (-94)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [7]> then\n        show\n        go to x: (54) y: (-94)\n    end\nend\n\n@Sprite8\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        show\n        go to x: (105) y: (-100)\n        switch costume to (left v)\n        forever\n            repeat (50)\n                move (-5) steps\n            end\n            switch costume to (right v)\n            repeat (50)\n                move (5) steps\n            end\n            switch costume to (left v)\n        end\n    end\nend\n\nswitch costume to (left v)\n\nwait (0.4) seconds\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (redo v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(level) = [8]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        show\n    end\nend\n\nwait (0.3) seconds\n\n@Sprite10\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        show\n        go to x: (105) y: (-100)\n        switch costume to (left v)\n        wait (1) seconds\n        forever\n            repeat (50)\n                move (-5) steps\n            end\n            switch costume to (right v)\n            repeat (50)\n                move (5) steps\n            end\n            switch costume to (left v)\n        end\n    end\nend\n\nswitch costume to (left v)\n\nwait (0.4) seconds\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (redo v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(level) = [8]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        show\n    end\nend\n\n@Sprite9\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        show\n        go to x: (105) y: (-100)\n        switch costume to (left v)\n        forever\n            repeat (50)\n                move (-5) steps\n            end\n            switch costume to (right v)\n            repeat (50)\n                move (5) steps\n            end\n            switch costume to (left v)\n        end\n    end\nend\n\nswitch costume to (left v)\n\nwait (0.4) seconds\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (redo v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(level) = [9]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        show\n    end\nend\n\n@Sprite11\n\nwhen flag clicked\nforever\n    if <not <(level) = [10]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume5 v)\ngo to x: (286) y: (84)\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        set [gravity v] to [20]\n        wait (0.6) seconds\n        set [gravity v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [10]> then\n        show\n        go to x: (-5) y: (-94)\n    end\nend\n\n@Sprite12\n\nwhen flag clicked\nforever\n    hide\nend\n\nshow\n\ngo to [front v] layer\n\n
THANK YOU SO MUCH FOR PLAYING THIS GAME!    (it means a lot to me.)\n\nBe sure to love, fav, and follow!\n\nIf this game gets ten favs I will do a part 2!!!!!!!! ( im going to start working on part 2)\n\nALL LEVELS ARE POSSIBLE!\n\n-Controls-\nArrow keys to move\n"s" to skip level