Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen backdrop switches to [backdrop23 v]\nstop [all v]\n\nwhen flag clicked\nforever\n\n@Player\n\nwhen flag clicked\ngo to x: (-210) y: (-150)\nswitch costume to (costume1 v)\nset [level v] to [1]\nset [deaths v] to [0]\nhide variable [deaths v]\nset [level select v] to [2]\ngo to [front v] layer\nforever\n    change [y v] by (-0.5)\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 (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\ngo to x: (-210) y: (-150)\n\nwhen flag clicked\nforever\n    if <touching color (#170000)?> then\n        go to x: (-210) y: (-150)\n    end\nend\n\nwhen I receive [message1 v]\ngo to x: (-210) y: (-150)\n\nwhen flag clicked\nforever\n    if <(x position) > [238]> then\n        go to x: (-210) y: (-150)\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-210) y: (-150)\n    end\nend\n\nwhen flag clicked\nforever\n    change [color v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-210) y: (-150)\n    end\nend\n\nwhen backdrop switches to [backdrop23 v]\nhide\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        wait (0.2) seconds\n        go to x: (-210) y: (-150)\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (p v) pressed?> then\n        wait (0.2) seconds\n        go to x: (-210) y: (-150)\n        switch backdrop to (previous backdrop v)\n    end\nend\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen backdrop switches to [backdrop23 v]\nset [time v] to (Time)\n\nwhen flag clicked\nset [☁ world record v] to (☁ World Record)\n\nwhen backdrop switches to [backdrop23 v]\nif <(Time) < (☁ World Record)> then\n    set [☁ world record v] to (Time)\nend\n\nwhen [s v] key pressed\nwait (0.25) seconds\nchange [time v] by (50)\n\nwhen backdrop switches to [backdrop23 v]\nstop [all v]\n\n@Button\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen flag clicked\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (28)\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen flag clicked\npoint in direction (90)\nforever\n    wait (1) seconds\n    go to x: (100) y: (28)\n    wait (1) seconds\n    go to x: (0) y: (28)\nend\n\n@Sprite2\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop15 v]\nshow\n\nwhen backdrop switches to [backdrop16 v]\nhide\n\nwhen backdrop switches to [backdrop14 v]\nhide\n\nwhen backdrop switches to [backdrop15 v]\nforever\n    go to [front v] layer\n    say [Click Me] for (2.5) seconds\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            say [Haha, tricked you!] for (5) seconds\n        end\n    end\nend\n\n
Arrow keys to move.\nR to restart level\nS to skip level (time changes by 50)\nP to go to previous level\nPart 2 is out (click on my username)\nThis is my first platformer.\n20 Levels\nSorry if it's laggy