Blob Platformer 2

Instructions: Controls:\nLeft arrow/Right arrow - Left/Right\nUp arrow - Jump\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (begginia guys v)\n\nwhen I receive [play v]\nswitch backdrop to (castle v)\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\nhide\n\ndefine Move Up\nchange y by (1)\nrepeat until <not <touching (platform v)?>>\n    change y by (1)\nend\nchange y by (-1)\n\nwhen I receive [play v]\nswitch costume to (blob1 v)\ngo to x: (-212) y: (-74)\nset [xv v] to [0]\nset [yv v] to [0]\nshow\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (.8)\n        switch costume to (blob1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-.8)\n        switch costume to (blob2 v)\n    end\n    set [xv v] to ((xv) * (.9))\n    change x by (xv)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change y by (-5)\n                            change x by ((xv) * (-2))\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 [13]\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 (-0.8)\n    change y by (yv)\n    if <touching (platform v)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [12]\n        end\n    end\n    if <<touching (monsters v)?> or <(y position) < [-180]>> then\n        glide (1) secs to x: (-212) y: (-74)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <(x position) > [241]> then\n        go to x: (-241) y: (-74)\n        broadcast (Next Costume v)\n        change [level v] by (1)\n    end\nend\n\nMove Up\nset [vertical speed v] to [0]\nif <key (up arrow v) pressed?> then\n    start sound [Jump v]\n    set [vertical speed v] to [10]\nend\n\nwhen I receive [play v]\nforever\n    if <(Level) = [15]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\nchange y by (Vertical Speed)\n\n@Platform\n\nwhen I receive [next costume v]\nnext costume\n\nwhen I receive [play v]\ngo to x: (0) y: (0)\nswitch costume to (ground1 v)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nforever\n    if <(Level) = [15]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@Monsters\n\nwhen I receive [next costume v]\nnext costume\n\nwhen I receive [play v]\ngo to [back v] layer\ngo to x: (0) y: (0)\nswitch costume to (monster1 v)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nforever\n    if <(Level) = [15]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@Text\n\nwhen flag clicked\nhide\n\nwhen I receive [next costume v]\nnext costume\n\nwhen flag clicked\n\nwhen I receive [play v]\n\nwhen I receive [play v]\ngo to x: (0) y: (0)\nswitch costume to (text1 v)\nshow\n\nwhen I receive [play v]\nforever\n    if <(Level) = [15]> then\n        stop [other scripts in sprite v]\n        hide\n    end\nend\n\n@Title\n\nwhen flag clicked\ngo to x: (0) y: (110)\nshow\n\nwhen I receive [play v]\nhide\n\n@Pic\n\nwhen flag clicked\ngo to x: (0) y: (10)\nshow\n\nwhen I receive [play v]\nhide\n\n@Start Button\n\nwhen flag clicked\ngo to x: (0) y: (-100)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-20)\n        if <mouse down?> then\n            broadcast (Play v)\n            hide\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\nend\n\n@Lava Killer\n\nwhen I receive [play v]\ngo to [back v] layer\ngo to x: (0) y: (0)\nswitch costume to (lava killer v)\nshow\nforever\n    if <(Level) = [14]> then\n        if <touching (player v)?> then\n            hide\n        end\n    end\nend\n\nwhen I receive [next costume v]\nnext costume\n\nwhen flag clicked\nhide\n\n@End Screen\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [15]> then\n        show\n    end\nend\n\n