GPT007/Scratch-platformers-10k huggingface dataset:
F4F (Platformer)

Instructions: Arrow Keys/ WAD to move\nSpace to switch between scratch cat and Gobo\nLEARN ABOUT F4F!!!

@Stage\n\n@Player\n\nwhen flag clicked\ngo to x: (-194) y: (-125)\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.8))\n    change x by (Xv)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#565656)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#565656)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [14]\n        end\n    end\n    change y by (1)\n    if <touching color (#565656)?> then\n        change y by (1)\n        if <touching color (#565656)?> then\n            change y by (1)\n            if <touching color (#565656)?> then\n                change y by (1)\n                if <touching color (#565656)?> then\n                    change y by (1)\n                    if <touching color (#565656)?> then\n                        change y by (1)\n                        if <touching color (#565656)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-194) y: (-125)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <(x position) > [235]> then\n        go to x: (-194) y: (-125)\n        broadcast (Next Level v)\n    end\nend\n\nwhen [space v] key pressed\nnext costume\n\n@Levels\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [next level v]\nnext backdrop\nnext costume\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n
Violet - A Platformer

Instructions: Welcome to Violet - a platformer!\nArrow keys to move.\nAvoid the spikes.\n20 levels.

@Stage\n\nwhen flag clicked\nstop all sounds\nstart sound (pick random (1) to (5))\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (-217) y: (-20)\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\n\nwhen flag clicked\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 (#6b179c)?> or <<touching color (#c576f2)?> or <touching color (#8b18a3)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#6b179c)?> or <<touching color (#c576f2)?> or <touching color (#8b18a3)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#6b179c)?> or <<touching color (#c576f2)?> or <touching color (#8b18a3)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#6b179c)?> or <<touching color (#c576f2)?> or <touching color (#8b18a3)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#6b179c)?> or <<touching color (#c576f2)?> or <touching color (#8b18a3)?>>> 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 [17]\n            if <(x) > [0]> 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 (#6b179c)?> or <<touching color (#c576f2)?> or <touching color (#8b18a3)?>>> 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 (#6b179c)?> or <<touching color (#c576f2)?> or <touching color (#8b18a3)?>>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#b261ff)?> then\n        go to x: (-217) y: (-20)\n    end\n    if <(x position) > [222]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n        if <(backdrop [number v]) = [11]> then\n            go to x: (-217) y: (-55)\n        end\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\n
Life - a Platformer

Instructions: Hi ===<3    (✩˙Ⱉ˙ฅ)\nIt's @Sophiaaaa- here again!\nWelcome to Life - a Platformer\n\nInstructions-\n→ Arrow keys to move\n→ Press R to restart\n\nEnJoY~~~~~\n\n#platformer #life #game #games

@Stage\n\nwhen flag clicked\nforever\n    play sound [youth v] until done\nend\n\n@Sprite1\n\ndefine Platform gravity: (gravity) Jump height: (jump height) Side Movement Speed: (side movement) Friction (friction) slope: (slope)\nchange [yv v] by (gravity)\nchange y by (Yv)\nif <touching color (#ccffd9)?> then\n    repeat until <not <touching color (#ccffd9)?>>\n        change y by ((([abs v] of (Yv) ) / (Yv)) * (-1))\n    end\n    if <<key (up arrow v) pressed?> and <(([abs v] of (Yv) ) / (Yv)) = [-1]>> then\n        set [yv v] to (jump height)\n    else\n        set [yv v] to [0]\n    end\nend\nset [xv v] to (((Xv) + ((<key (left arrow v) pressed?> * ((side movement) * (-1))) + (<key (right arrow v) pressed?> * (side movement)))) * (friction))\nchange x by (Xv)\nset [slope v] to [0]\nrepeat until <<(slope) = ((slope) * (-1))> or <not <touching color (#ccffd9)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching color (#ccffd9)?> then\n    change y by (slope)\n    repeat until <not <touching color (#ccffd9)?>>\n        change x by ((([abs v] of (Xv) ) / (Xv)) * (-1))\n    end\nend\n\nwhen I receive [message1 v]\ngo to x: (-200) y: (0)\n\nwhen flag clicked\ngo to x: (-200) y: (-50)\nswitch backdrop to (backdrop1 v)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    Platform gravity: [-1] Jump height: [14] Side Movement Speed: [3] Friction [0.8] slope: [8]\n    if <(x position) > [240]> then\n        next backdrop\n        go to x: (-200) y: (-120)\n    end\n    if <<touching color (#ffcccc)?> or <touching color (#d095ac)?>> then\n        go to x: (-200) y: (-100)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <key (r v) pressed?> then\n        go to x: (-200) y: (-100)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\nend\n\n@Sprite2\n\nwhen backdrop switches to [backdrop7 v]\nshow\nwait (8) seconds\nhide\n\nwhen flag clicked\nhide\n\n@thumbnail\n\nwhen flag clicked\nshow\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.03) seconds\nend\nhide\n\n
Scrolling Platformer tutorial

Instructions: Remix or see inside and backpack the scripts. \nCredit appreciated (@neanderthal11)\n\nLeave a ❤️ and a ⭐️ if you found this useful. Feel free to leave a link of your platformer if you used my tutorial.\n\nPost any questions in the comments.\n\nCheck out my platformers:\n\nSinking Into Darkness:\nhttps://scratch.mit.edu/projects/300568765\n\nCube Parkour (scrolling): https://scratch.mit.edu/projects/322825538\n

@Stage\n\n@player\n\ndefine Move\nset [player sx v] to ((Player Sx) * (0.8))\nchange x by (round (Player Sx))\nset [i v] to [0]\nrepeat until <<not <touching (level v)?>> or <(i) = [8]>>\n    change y by (1)\n    change [i v] by (1)\nend\nif <(i) = [8]> then\n    change x by ((0) - (round (Player Sx)))\n    change y by (-8)\n    set [player sx v] to [0]\nend\n\nwhen I receive [start v]\nshow\nset rotation style [left-right v]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [player sx v] to [0]\nset [player sy v] to [0]\nset [cam x v] to [0]\nset [cam y v] to [0]\nbroadcast (tick v) and wait\nforever\n    Physics\n    broadcast (tick v)\nend\n\ndefine Physics\nchange [player sy v] by (-1)\nchange [falling v] by (1)\nchange y by (Player Sy)\nGo Up\nControls <<key (right arrow v) pressed?> or <key (d v) pressed?>> <<key (left arrow v) pressed?> or <key (a v) pressed?>> <<key (up arrow v) pressed?> or <key (w v) pressed?>>\nMove\nchange [cam x v] by (x position)\nchange [cam y v] by (y position)\ngo to x: (0) y: (0)\nif <(Cam Y) < [-300]> then\n    set [cam x v] to (spawn x)\n    set [cam y v] to (spawn y)\nend\n\ndefine Controls <right> <left> <jump>\nif <right> then\n    change [player sx v] by (3)\n    point in direction (90)\nend\nif <left> then\n    change [player sx v] by (-3)\n    point in direction (-90)\nend\nif <<jump> and <(Falling) = [0]>> then\n    change [player sy v] by (15)\nend\n\ndefine Go Up\nset [i v] to [0]\nrepeat until <<not <touching (level v)?>> or <(i) = [16]>>\n    change [i v] by (1)\n    if <<(Player Sy) > [-1]> and <(Falling) > [0]>> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [player sy v] to [0]\nend\n\nwhen flag clicked\nbroadcast (start v)\n\n@level\n\nwhen I receive [tick v]\ntick\n\ndefine tick\ngo to x: ((x) - (Cam X)) y: ((y) - (Cam Y))\nif <<((x) - (Cam X)) = (x position)> and <((y) - (Cam Y)) = (y position)>> then\n    show\nelse\n    hide\nend\n\ndefine Create Level x (x) y (y) Costume (costume)\nswitch costume to (costume)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\n    play sound [Northern-Passage v] until done\nend\n\nwhen I receive [start v]\nCreate Level x [480] y [-100] Costume [P2]\nCreate Level x [480] y [80] Costume [P2.1]\nset [x v] to [0]\nset [y v] to [-100]\nswitch costume to (p1 v)\n\n@thumbnail\n\nwhen flag clicked\nhide\n\n
Nature Platformer

Instructions:     Nature.\n    It's the true owners of Earth, but humans are ignoring that more and more. Please help Earth restore its natural beauties, not just as a game, but also in the real world. \n    Thank you.\n\nNote: There are MANY bugs in this game, since this was my first platformer. Please understand and do not waste your time pointing them out in the comments!

@Stage\n\nwhen [up arrow v] key pressed\nbroadcast (Up v)\n\nwhen [right arrow v] key pressed\nbroadcast (Right v)\n\nwhen [left arrow v] key pressed\nbroadcast (Left v)\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (backdrop13 v)\nset drag mode [not draggable v]\ngo to x: (-50) y: (-200)\nbroadcast (go v)\n\nwhen I receive [go v]\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x 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 (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> 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 [17]\n            if <(x) > [0]> 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 (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> 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 (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-217) y: (-20)\n    end\n    if <(x position) > [345]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n    end\nend\n\nset [y v] to [10]\n\nchange y by (0.5)\nshow\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    play sound [bensound-adventure v] until done\nend\n\n
Platformer script NO GLITCHES!

Instructions: Drag the code in the player into your backpack.\nIf you use it, you don't have to credit me but you could.\nIf you use it and don't credit, just love the project.\nYou don't have to favorite. Idc

@Stage\n\n@DRAG THE CODE IN THIS\n\nwhen flag clicked\ngo to x: (-185) y: (0)\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 (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> 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 [8]\n            if <(x) > [0]> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching color (#ff0000)?> or <(y position) < [-199]>> then\n        go to x: (-185) y: (0)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [259]> then\n        go to x: (-226) y: (-41)\n        broadcast (next v)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <[-166] > (y position)> then\n        go to x: (-226) y: (-41)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\nend\n\n@Sprite2\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n
Platformer

Instructions: Hey:)\nArrow keys to move.\nAvoid lava.\nGet to the right end of the screen.\nThat's it!\n15 levels.\nAll levels are possible.

@Stage\n\nwhen flag clicked\nforever\n    play sound [All of Me \(Jon Schmidt original tune\) - The Piano Guys v] until done\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to x: (-217) y: (-20)\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\n\nwhen flag clicked\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 (#4c4c4c)?> then\n        change y by (1)\n    end\n    if <touching color (#4c4c4c)?> then\n        change y by (1)\n    end\n    if <touching color (#4c4c4c)?> then\n        change y by (1)\n    end\n    if <touching color (#4c4c4c)?> then\n        change y by (1)\n    end\n    if <touching color (#4c4c4c)?> 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 [17]\n            if <(x) > [0]> 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 (#4c4c4c)?> 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 (#4c4c4c)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-217) y: (-20)\n    end\n    if <(x position) > [222]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n        if <(backdrop [number v]) = [11]> then\n            go to x: (-217) y: (-55)\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n
Peng! - A Platformer 

Instructions: Hellllllooooo Gammmmmeeeeeerrrrssss!!!\nThis is Peng, a game where you avoid the polor bears, and spikes! There are 16 levels, can you beat them? tell me in the comments!! \nAlright, 60k loves and an easy version! :D\nNotes\n8/20/2019 - Added polar bears - shared public\n\nf to skip a level! there hard :D\n\nCredits - code - me (took 2 months O-0)\nMusic - You know who made it ( ͡° ͜ʖ ͡°)\n\nTips - jump right before the bears come! ( ͡° ͜ʖ ͡°)

@Stage\n\nwhen I receive [message1 v]\nset volume to (50) %\nplay sound [Let Me Hit It \(s v] until done\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nwait (1) seconds\nswitch costume to (costume2 v)\nplay sound [cinematic epic horn 2 SoundEffectsFactory2 v] until done\nwait (1) seconds\nswitch costume to (costume3 v)\nplay sound [cinematic epic horn 2 SoundEffectsFactory2 v] until done\nwait (1) seconds\nswitch costume to (costume4 v)\nplay sound [cinematic epic horn 2 SoundEffectsFactory2 v] until done\nswitch costume to (rickrolledd v)\nstart sound [HIS  NAME IS JOHN CENA2 v]\nbroadcast (message1 v)\nset volume to (1500) %\nforever\n    play sound [Rick Astley Never gonna give you up lyrics!!! v] until done\nend\n\nwhen I receive [message1 v]\nforever\n    go to x: (pick random (0) to (10)) y: (pick random (0) to (10))\nend\n\nstart sound [Let Me Hit It \(s v]\n\n
Coraline platformer


@Stage\n\nwhen flag clicked\nforever\n    play sound [exploration-coraline-soundtrack v] until done\nend\n\n@coraline\n\nwhen flag clicked\nswitch backdrop to (배경 2 v)\ngo to x: (-77) y: (-165)\nshow\nCoraline\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\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 x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [yv v] to [-10]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [13]\n        end\n    end\n    if <touching color (#ff0000)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.5) seconds\n        set [ghost v] effect to (0)\n        go to x: (-77) y: (-165)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <<touching color (#0021ff)?> or <touching color (#0015ff)?>> then\n        change [yv v] by (40)\n    end\n    change y by (1)\n    hide variable [yv v]\n    hide variable [xv v]\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff7b00)?> then\n        next backdrop\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-77) y: (-165)\n    end\nend\n\ndefine Coraline\nset voice to (squeak v)::tts\nset language to (en v)::tts\nspeak [Coraline]::tts\n\nwhen this sprite clicked\nCoraline\n\nwhen [a v] key pressed\nnext backdrop\ngo to x: (-77) y: (-165)\n\nwhen [r v] key pressed\ngo to x: (-77) y: (-165)\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n
Shrunk: a platformer

Instructions: Shrunk to a small ball, you must go through the giant world to find a way back, to normal size...

@Stage\n\n@Ball\n\nwhen flag clicked\ngo to x: (-184) y: (-93)\nswitch backdrop to (backdrop1 v)\nsay [Woah! Cool box] for (2) seconds\nglide (1.5) secs to x: (92) y: (-93)\nswitch backdrop to (backdrop2 v)\ngo to x: (-217) y: (-20)\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 (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> 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 [17]\n            if <(x) > [0]> 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 (#000000)?> 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 (#000000)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-217) y: (-20)\n    end\n    if <(x position) > [240]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n    end\nend\n\n