Roblox Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Roblox song 2 v] until done\n    play sound [Roblox Song v] until done\nend\n\n@Roblox Player\n\ngo to x: (-193) y: (0)\n\nwhen I receive [message1 v]\ngo to x: (-193) y: (0)\n\nwhen flag clicked\nset [deaths v] to [0]\nshow variable [level v]\nshow\nset [level v] to [1]\nswitch backdrop to (level 1 v)\nset rotation style [left-right v]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        move (-5) steps\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        move (5) steps\n    end\n    if <touching color (#35ff00)?> then\n        next backdrop\n        change [level v] by (1)\n        go to x: (-193) y: (0)\n    end\n    if <touching color (#ff0000)?> then\n        start sound [Oof Sound v]\n        go to x: (-193) y: (0)\n        change [deaths v] by (1)\n    end\n    if <touching color (#ca00ff)?> then\n        change y by (5)\n    end\nend\n\nwhen flag clicked\ngo to x: (-193) y: (0)\nset [velocity v] to [0]\nset [gravity v] to [-0.3]\nforever\n    set [velocity v] to ((velocity) + (gravity))\n    set y to ((y position) + (velocity))\n    if <<touching color (#000000)?> and <(velocity) < [0.01]>> then\n        set [velocity v] to [0.3]\n    end\n    if <<<key (space v) pressed?> or <key (up arrow v) pressed?>> and <touching color (#000000)?>> then\n        set [velocity v] to [9]\n    end\nend\n\nwhen flag clicked\n\n@Goal\n\nwhen backdrop switches to [level 1 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 2 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 4 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 3 v]\ngo to x: (-49) y: (241)\n\nwhen backdrop switches to [level 5 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 6 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 7 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 8 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 10 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 9 v]\ngo to x: (209) y: (9)\n\nwhen backdrop switches to [level 11 v]\ngo to x: (-153) y: (286)\n\nwhen backdrop switches to [you won! v]\nhide\nhide variable [level v]\n\nwhen flag clicked\nshow variable [level v]\nshow\n\n@Skip\n\nwhen flag clicked\nhide\nforever\n    if <(Deaths) = [5]> then\n        show\n        broadcast (message1 v)\n    end\nend\n\nwhen this sprite clicked\nnext backdrop\nhide\nset [deaths v] to [0]\n\n
a or the left button to go to the left.\nd or the right button to go to the right.\nthe Space bar or the up button to go jump.\nWatch out for red! Green is your goal. There are 11 levels total!