Super Platformer


@Stage\n\n@super hero\n\nwhen flag clicked\nforever\n    set [xv v] to [0]\n    set [yv v] to [0]\n    forever\n        set [bleh v] to [0]\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            set rotation style [left-right v]\n            point in direction (-90)\n            change [xv v] by (-0.7)\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            point in direction (90)\n            change [xv v] by (0.7)\n        end\n        set [xv v] to ((xv) * (0.9))\n        change x by (xv)\n        if <touching color (#000008)?> then\n            change y by (1)\n            change [bleh v] by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                change [bleh v] by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    change [bleh v] by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        change [bleh v] by (1)\n                        if <touching color (#000008)?> then\n                            change y by (1)\n                            change [bleh v] by (1)\n                            if <touching color (#000008)?> then\n                                change x by ((xv) * (-1))\n                                set [xv v] to [0]\n                                change y by (-5)\n                                if <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                    start sound [jump v]\n                                    change x by (5)\n                                    set [c n v] to [-5]\n                                    if <touching color (#000008)?> then\n                                        set [xv v] to [-10]\n                                        set [yv v] to [12]\n                                    else\n                                        change x by (-10)\n                                        set [c n v] to [5]\n                                        if <touching color (#000008)?> then\n                                            set [xv v] to [10]\n                                            set [yv v] to [12]\n                                        end\n                                    end\n                                    change x by (c n)\n                                else\n                                    change [xv v] by ((0) - ((xv) / (bleh)))\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        set [yv v] to ((yv) * (0.9))\n        change y by (yv)\n        if <touching color (#000008)?> then\n            change y by ((yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <touching color (#000008)?> then\n                set [yv v] to [12]\n            end\n        end\n        change y by (1)\n        if <(yv) < [4]> then\n            change y by (-1)\n            if <not <touching color (#000008)?>> then\n                change [yv v] by (-1)\n            end\n            change y by (1)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#b2b2b2)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-207) y: (-61)\n    end\nend\n\nwhen flag clicked\nforever\n    clear graphic effects\nend\n\nwhen flag clicked\nforever\n    if <touching color (#cc0000)?> then\n        go to x: (-207) y: (-61)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        set [yv v] to [20]\n    end\nend\n\nwhen backdrop switches to [level5 v]\nforever\n    if <touching color (#7f7f7f)?> then\n        say [I] for (0.2) seconds\n        say [It] for (0.2) seconds\n        say [It I] for (0.2) seconds\n        say [It Is] for (0.2) seconds\n        say [It Is A] for (0.2) seconds\n        say [It Is A C] for (0.2) seconds\n        say [It Is A Cl] for (0.2) seconds\n        say [It Is A Clo] for (0.2) seconds\n        say [It Is A Clon] for (0.2) seconds\n        say [It Is A Clone] for (0.2) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#cccccc)?> then\n        go to x: (-207) y: (-61)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ffff)?> then\n        set [yv v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching color (#00ffff)?> and <key (down arrow v) pressed?>> then\n        set [yv v] to [-2]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#66004c)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-207) y: (-61)\n    end\nend\n\nwhen backdrop switches to [level20 v]\nforever\n    if <touching (stone v)?> then\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen backdrop switches to [level20 v]\nforever\n    if <touching (guard v)?> then\n        go to x: (-207) y: (-61)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nwait (5) seconds\nswitch backdrop to (backdrop2 v)\nwait (7) seconds\nswitch backdrop to (level1 v)\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level1 v]\nshow\ngo to x: (-207) y: (-61)\n\nwhen flag clicked\nforever\n    if <<touching color (#00ffff)?> and <key (s v) pressed?>> then\n        set [yv v] to [-2]\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\nwhen flag clicked\nstart sound [Alan Walker - ALONE v]\n\n@stone\n\nwhen backdrop switches to [level20 v]\nshow\nforever\n    glide (0.7) secs to x: (209) y: (-80)\n    glide (0.7) secs to x: (209) y: (-90)\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level1 v]\nhide\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@guard\n\nwhen backdrop switches to [level1 v]\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level20 v]\nshow\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [level20 v]\nforever\n    glide (0.7) secs to x: (75) y: (-80)\n    glide (0.7) secs to x: (75) y: (-85)\nend\n\nwhen this sprite clicked\nhide\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (90)\nset [ghost v] effect to (100)\nshow\nset size to (100) %\nforever\n    go to [front v] layer\n    go to x: (0) y: (0)\nend\n\n