Youtube Platformer
@Stage\n\n@Sprite1\n\nwhen I receive [next level v]\ngo to x: (-196) y: (-17)\n\nwhen flag clicked\nhide\nwait (1.5) seconds\ngo to x: (-196) y: (-17)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#750000)?> then\n        change y by (1)\n    end\n    if <touching color (#750000)?> then\n        change y by (1)\n    end\n    if <touching color (#750000)?> then\n        change y by (1)\n    end\n    if <touching color (#750000)?> then\n        change y by (1)\n    end\n    if <touching color (#750000)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#750000)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#750000)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff9b9b)?> then\n        go to x: (-196) y: (-17)\n    end\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        broadcast (next level v)\n    end\nend\n\nwhen [s v] key pressed\ngo to x: (-196) y: (-17)\n\nwhen [r v] key pressed\ngo to x: (-196) y: (-17)\n\nwhen flag clicked\nforever\n    play sound [Flying by Bubblebee3 v] until done\nend\n\n@Sprite2\n\nwhen I receive [next level v]\nnext costume\n\nwhen [s v] key pressed\nnext costume\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n
INSTRUCTIONS\n\nArrow keys to move\nS to skip a level\nR to restart