Perfect Platformer Script
@Stage\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-235) y: (100)\nswitch backdrop to (1 v)\nset [lives v] to [3]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        if <key (space v) pressed?> then\n            change [xv v] by (1)\n        else\n            change [xv v] by (0.5)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        if <key (space v) pressed?> then\n            change [xv v] by (-1)\n        else\n            change [xv v] by (-0.5)\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n        change y by (1)\n        if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n            change y by (1)\n            if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n                change y by (1)\n                if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n                    change y by (1)\n                    if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n                        change y by (1)\n                    end\n                    if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n                        change x by ((Xv) * (-1))\n                        change x by (-1)\n                        change y by (-5)\n                        change x by (1)\n                        if <key (up arrow v) pressed?> then\n                            if <(Xv) < [0]> then\n                                set [yv v] to [10]\n                                set [xv v] to [10]\n                            else\n                                set [yv v] to [10]\n                                set [xv v] to [-10]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> 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?> then\n        if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) = [0]>>> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-183) y: (-109)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ff55)?> then\n        set [yv v] to [16]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-183) y: (-109)\n        switch backdrop to (next backdrop v)\n    end\nend\n\n@Sprite2\n\n
Arrow Keys to move\nWall jumping possible\nRed kills you\nGreen is bouncy\nYellow is next level (if you make more)\nYou can jump through the orange, but it's a platform\nHold Space to move faster