Upside~Down: A Platformer
@Stage\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\nset [yvelocity v] to [-0]\ngo to x: (-212) y: (120)\nset size to (50) %\nforever\n    if <<touching color (#00ff1a)?> or <touching color (#d7ff66)?>> then\n        set [yvelocity v] to [-0]\n        if <key (down arrow v) pressed?> then\n            set [yvelocity v] to [-10]\n        end\n    end\n    change y by (yvelocity)\n    change [yvelocity v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        change x by (5)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-5)\n    end\nend\n\nwhen flag clicked\nerase all\nswitch backdrop to (neon tunnel v)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-212) y: (150)\n        erase all\n    end\n    if <touching color (#00f0ff)?> then\n        go to x: (-212) y: (150)\n        switch backdrop to (next backdrop v)\n        erase all\n    end\nend\n\nwhen flag clicked\nturn right (180) degrees\nforever\n    if <(backdrop [number v]) = [5]> then\n        hide\n    end\n    if <(backdrop [number v]) = [1]> then\n        show\n    end\nend\n\nwhen backdrop switches to [backdrop4 v]\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to x: (50) y: (127)\nforever\n    if <(backdrop [number v]) = [3]> then\n        show\n        forever\n            glide (5) secs to x: (150) y: (127)\n            glide (5) secs to x: (-50) y: (127)\n        end\n    end\n    if <not <(backdrop [number v]) = [3]>> then\n        hide\n    end\n    if <(backdrop [name v]) = [neon tunnel]> then\n        hide\n    end\n    if <(backdrop [number v]) = [4]> then\n    end\nend\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\n@Start\n\nwhen flag clicked\nshow\nif <(backdrop [number v]) = [4]> then\n    show\nend\n\nwhen this sprite clicked\nhide\nswitch backdrop to (backdrop1 v)\n\n