GPT007/Scratch-platformers-10k huggingface dataset:
Google Platformer

Instructions: INSTRUCTIONS\n\nArrow keys to move\nS to skip a level\n\nVote for my next platformers here! https://www.strawpoll.me/20228316 Tomorrow I will check and the most voted two options will be my next platformers. This poll is only for animal platformers. 

@Stage\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen I receive [next level v]\nnext costume\n\nwhen [s v] key pressed\nnext costume\n\n@Sprite2\n\nwhen I receive [end v]\nhide\n\nwhen I receive [next level v]\ngo to x: (-196) y: (-17)\n\nwhen flag clicked\nhide\nwait (1.5) seconds\nshow\ngo to [front v] layer\ngo to x: (-196) y: (-17)\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 (#474747)?> then\n        change y by (1)\n    end\n    if <touching color (#474747)?> then\n        change y by (1)\n    end\n    if <touching color (#474747)?> then\n        change y by (1)\n    end\n    if <touching color (#474747)?> then\n        change y by (1)\n    end\n    if <touching color (#474747)?> 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 (#474747)?> 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 (#474747)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ffa5a5)?> 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 flag clicked\nforever\n    play sound [Electric by bubblebee3 v] until done\nend\n\nwhen [s v] key pressed\ngo to x: (-196) y: (-17)\n\nwhen [s v] key pressed\ngo to x: (-196) y: (-17)\n\n
A Non-Generic Platformer

Instructions: What? You thought the title would be ______- A Platformer?\nI told you, this is unique.\n( ͡° ͜ʖ ͡°)\nNote: This project isn’t meant to target generic platformers, it’s just a joke that you all seem to like for some reason.

@Stage\n\n@why are\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [veloocity v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [veloocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change [veloocity v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(veloocity) = [0]>> then\n        wait (0) seconds\n        change [veloocity v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    move (veloocity) steps\nend\n\nwhen flag clicked\nforever\n    if <[10] < (veloocity)> then\n        set [veloocity v] to [10]\n    end\nend\n\nwhen flag clicked\ngo to x: (-200) y: (-105)\nset [jump v] to [yes]\nset [y vello v] to [0]\nforever\n    change y by (y vello)\n    change [y vello v] by (-1)\nend\n\nwhen flag clicked\nforever\n    if <(y position) < [-105]> then\n        set y to (-105)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <<key (up arrow v) pressed?> and <(Jump) = [yes]>> then\n        set [jump v] to [no]\n        set [my variable v] to [15]\n        set [y vello v] to [0]\n        repeat (30)\n            set [y vello v] to (my variable)\n            change [my variable v] by (-1)\n        end\n        set [jump v] to [yes]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [218]> then\n        broadcast (message1 v)\n        set x to (-99999)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (commit die v)\n        switch costume to (costume2 v)\n    end\nend\n\nhide\n\n@you here\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [message1 v]\nif <not <(costume [number v]) = [21]>> then\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [21]> then\n        wait until <touching (why are v)?>\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [21]> then\n        repeat (999999999999999999)\n            change y by (-1)\n        end\n    end\nend\n\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nshow\n\n
popsicle • platformer


@Stage\n\n@character\n\nwhen I receive [start v]\nswitch backdrop to (level1 v)\nhide variable [y v]\nhide variable [x v]\nset [x v] to [0]\nset [y v] to [0]\nshow\ngo to x: (-215) y: (-70)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    if <key (left 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            end\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change x by ((X) * (-1))\n                    if <key (up arrow v) pressed?> then\n                        if <(X) > [0]> then\n                            set [x v] to [-5]\n                        else\n                            set [x v] to [5]\n                        end\n                        set [y v] to [10]\n                    else\n                        change [y v] by (0)\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\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 (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [238]> then\n        next backdrop\n        go to x: (-215) y: (-70)\n        change [level v] by (1)\n    end\n    if <(y position) < [-178]> then\n        go to x: (-215) y: (-70)\n    end\n    if <touching color (#c65f55)?> then\n        go to x: (-215) y: (-70)\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nbroadcast (start v)\nhide\n\nwhen flag clicked\nforever\n    play sound [Nekomimi Switch by Hatsune Miku v] until done\nend\n\n
~platformer~ a platformer

Instructions: this took me like 15 minutes.\n\nif this somehow gets on the front page or gets popular i will have lost hope in scratch\n\n(lol for real i wanna see this put on the front page and  see everyone who makes platforms for followers get mad at me and get tRiGgErEd)\n\n\nguys platformers are dumb make original and good content for one.

@Stage\n\nwhen flag clicked\nstart sound [Unity.mp3 v]\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [5]> then\n        stop all sounds\n        forever\n            play sound [Avengers Theme Kazoo Orchestra v] until done\n        end\n    end\nend\n\n@USE DIS2\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\nset size to (20) %\nforever\n    Physics\nend\n\ndefine Physics\nif <key (right arrow v) pressed?> then\n    change [xmovement v] by (1.56)\nelse\n    if <key (left arrow v) pressed?> then\n        change [xmovement v] by (-1.56)\n    end\nend\nset [xmovement v] to ((Xmovement) * ((0.88) - (Friction)))\nchange x by (Xmovement)\nchange [yv v] by (-1.2)\nif <touching color (#000000)?> then\n    change y by (1)\nend\nif <touching color (#000000)?> then\n    change y by (1)\nend\nif <touching color (#000000)?> then\n    change y by (1)\nend\nif <touching color (#000000)?> then\n    change y by (1)\nend\nif <touching color (#000000)?> then\n    change x by ((Xmovement) * (-1))\n    if <key (up arrow v) pressed?> then\n        set [yv v] to [15]\n        if <(Xmovement) > [0]> then\n            set [xmovement v] to [-7]\n        else\n            set [xmovement v] to [7]\n        end\n    else\n        set [xmovement v] to [0]\n    end\nend\nchange y by (Yv)\nif <touching color (#000000)?> then\n    change y by ((Yv) - ((Yv) * (2)))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> and <touching color (#000000)?>> then\n    set [yv v] to [15]\nend\nif <touching color (#ff0000)?> then\n    go to x: (-198) y: (-45)\nend\n\nwhen flag clicked\nforever\n    if <(x position) = [240]> then\n        next backdrop\n        go to x: (-198) y: (-45)\n    end\nend\n\n
Platformer Assests

Instructions: Use with credit!\nITS NOT A GAME!!! :|\nSo i made some platformer assets because apparently everyone is doing it now..\nLove and fave if you like it!

@Stage\n\n@Sprite1\n\nwhen flag clicked\nforever\n    switch costume to (hitbox v)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume2 v)\n    else\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\nend\n\n
Platformer Starter


@Stage\n\nwhen I receive [tick v]\nswitch costume to (LEVEL)\n\n@Player\n\nwhen flag clicked\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    Reset\n    repeat until <(EXIT) > []>\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [die]> then\nend\n\nwhen I receive [tick v]\nTick\n\ndefine Tick\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(in air) < [4]>> then\n    set [yv v] to [12]\nend\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [xv v] by (-2)\n    point in direction (-90)\nelse\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [xv v] by (2)\n        point in direction (90)\n    end\nend\nif <(yv) > [-12]> then\n    change [yv v] by (-1)\nend\nMove Y (yv)\nMove X (xv)\nset [xv v] to ((xv) * (.8))\nif <touching (danger v)?> then\n    set [exit v] to [die]\nend\nif <(x position) > [230]> then\n    set [exit v] to [win]\nend\n\ndefine Reset\ngo to x: (-200) y: (-75)\npoint in direction (90)\nset [exit v] to []\n\ndefine Move Y (y)\nchange [in air v] by (1)\nchange y by (y)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        if <(yv) > [0]> then\n            change y by (-1)\n        else\n            change y by (1)\n        end\n    end\n    set [yv v] to [0]\n    change y by (-5)\n    if <touching (level v)?> then\n        set [in air v] to [0]\n    end\n    change y by (5)\nend\n\ndefine Move X (x)\nchange x by (x)\nif <touching (level v)?> then\n    repeat (10)\n        change y by (1)\n        if <not <touching (level v)?>> then\n            stop [this script v]\n        end\n    end\n    change y by (-10)\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <(x) > [0]> then\n            set [xv v] to [-16]\n        else\n            set [xv v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [xv v] to [0]\n    end\n    set [n v] to [0]\n    repeat until <<not <touching (level v)?>> or <(n) = [50]>>\n        if <(x) > [0]> then\n            change x by (-1)\n        else\n            change x by (1)\n        end\n        change [n v] by (1)\n    end\nend\n\n@Level\n\nwhen I receive [tick v]\ngo to x: (0) y: (0)\nswitch costume to (LEVEL)\n\n@Danger\n\nwhen I receive [tick v]\ngo to x: (0) y: (0)\nswitch costume to (LEVEL)\n\n
200 follower platformer contest! (AMAZING PRIZES!)

Instructions: SORRY, BUT YOUR ENTRY HAS TO BE A REMIX! \n-I am hosting a platformer contest!\n-All info is in the project! :)\n-If you have any questions ask in the comments \n-Btw, you have to be following me to enter :/\nDEADLINE JULY 10th\n

@Stage\n\n@Sprite1\n\nwhen I start as a clone\nswitch costume to (costume1 v)\ngo to x: (-396) y: (0)\nset [indiv. xv v] to [59.28]\nif <key (left arrow v) pressed?> then\n    go to x: (396) y: (0)\n    set [indiv. xv v] to [-59.28]\nend\nhide\nwait (0.2) seconds\nset [ghost v] effect to (100)\nshow\nforever\n    switch costume to (costume1 v)\n    change x by (indiv. Xv)\n    switch costume to ((indiv. Costume) + (1))\n    set [indiv. xv v] to ((indiv. Xv) * (0.85))\n    change [ghost v] effect by (-5)\nend\n\nwhen I start as a clone\nwait until <<not <key (right arrow v) pressed?>> and <not <key (left arrow v) pressed?>>>\nforever\n    if <key (right arrow v) pressed?> then\n        change [indiv. costume v] by (1)\n        create clone of (_myself_ v)\n        change [indiv. costume v] by (-1)\n        set [indiv. xv v] to [59.28]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\n    if <key (left arrow v) pressed?> then\n        change [indiv. costume v] by (-1)\n        create clone of (_myself_ v)\n        change [indiv. costume v] by (1)\n        set [indiv. xv v] to [-59.28]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\nrepeat (10)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nhide\nset [indiv. costume v] to [1]\ncreate clone of (_myself_ v)\n\nset [indiv. costume v] to [1]\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nclear graphic effects\nset size to (100) %\nswitch costume to (thumbnail v)\n\n
OPEN 100 follower platformer contest!

Instructions:               100 follower platformer contest!\n    Every thing you need to know is in the project!\n\nDEADLINE DELAYED TO JULY 2. RESULTS WILL BE OUT A FEW DAYS LATER\n\nLink to the studio:\nhttps://scratch.mit.edu/studios/26963454/projects/\n\nOnce you remixed this project with your platformer, I will add you to the official studio. We will only judge the platformers that were shared before the deadline (June 26).\n\nIf you want to be a judge, go to the official studio and ask in the comments. We only need 3 more judges. Judges also can not add projects\n\nI'm looking forward to many great platformers!

@Stage\n\n@Sprite1\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (costume1 v)\n\nwhen [space v] key pressed\nset size to (100) %\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by (-5)\nend\nnext costume\nrepeat (20)\n    change [ghost v] effect by (-5)\n    change size by (5)\nend\n\nforever\n    point in direction (85)\n    repeat (20)\n        turn right (0.5) degrees\n    end\n    repeat (20)\n        turn left (0.5) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <mouse down?> then\n        set size to (100) %\n        repeat (20)\n            change [ghost v] effect by (5)\n            change size by (-5)\n        end\n        next costume\n        repeat (20)\n            change [ghost v] effect by (-5)\n            change size by (5)\n        end\n    end\nend\n\n@Effec\n\nwhen I start as a clone\nset [ghost v] effect to (0)\ngo to [back v] layer\nif <(CloneID) = [1]> then\n    hide\n    set [color v] effect to (0)\n    set [coloreffec v] to (pick random (2) to (3))\n    go to x: (pick random (-200) to (200)) y: (-185)\n    set [y v] to (pick random (-320) to (-180))\n    fly\n    boom\nelse\n    change [color v] effect by (pick random (0) to (45))\n    set [xv v] to (pick random (-12) to (12))\n    set [yv v] to (pick random (0) to (20))\n    show\n    repeat until <(y position) < [-170]>\n        Physics\n    end\nend\ndelete this clone\n\ndefine boom\nbroadcast (boom v)\nset [cloneid v] to [2]\nrepeat (10)\n    create clone of (_myself_ v)\nend\n\ndefine Physics\nset size to ((190) + ((Yv) * (8))) %\nchange [yv v] by (-1)\nset [xv v] to ((Xv) * (0.92))\nset [yv v] to ((Yv) * (0.92))\nchange x by (Xv)\nchange y by (Yv)\n\nwhen I start as a clone\nif <(CloneID) = [2]> then\n    wait (0.5) seconds\n    repeat (25)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nhide\ndelete this clone\n\ndefine fly\nrepeat (16)\n    change [y v] by (14)\n    set y to (Y)\n    if <(y position) > [-175]> then\n        show\n    end\nend\n\nwhen flag clicked\nset [cloneid v] to [1]\nforever\n    repeat (4)\n        create clone of (_myself_ v)\n        wait (0.1) seconds\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
my first platformer

Instructions: Use the arrow keys to move. Find your way back home!\nLike and fave to reduce lag.rgmogbgbkrikiosvphkpioutnaunftfdiosvgbgbiouqunmtlpmtcsiwftiogbioiosvikkriomoiomogbgbiogbiogbiogbiogbiogbiogbiogbiogbiogbiomoiogbiogbiomoiogbiogbiogbiogbiogbiogbiogbiogbiogbiomoiogbiogbiomoiogbiogbio\n

@Stage\n\n@Sprite1\n\nwhen flag clicked\nshow\nswitch backdrop to (blue sky 2  v)\ngo to x: (-212) y: (-116)\nset [falling? v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (70) %\nforever\n    phycics\nend\n\ndefine phycics\nchange [yv v] by (-1)\nchange y by (yv)\nchange [falling? v] by (1)\ntouch ground <(yv) > [0]>\nif <<<key (up arrow v) pressed?> and <(falling?) < [3]>> or <<<mouse down?> and <(mouse y) > (y position)>> and <(falling?) < [3]>>> then\n    set [yv v] to [10]\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [xv v] by (-1.5)\nend\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xv v] by (1.5)\nend\nset [xv v] to ((xv) * (0.85))\nchange x by (xv)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching color (#00ff15)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((xv) * (-1))\n    change y by ((slope) * (-1))\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(xv) > [0]> then\n            set [xv v] to ((-15) * (0.8))\n        else\n            set [xv v] to ((15) * (0.8))\n        end\n        set [yv v] to ((15) * (0.8))\n    end\nend\nif <<<touching color (#ff0000)?> or <touching color (#9e0000)?>> or <touching color (#000000)?>> then\n    go to x: (-212) y: (-123)\nend\nif <(x position) > [238]> then\n    switch backdrop to (next backdrop v)\n    go to x: (-212) y: (-116)\nend\n\ndefine touch ground <up?>\nrepeat until <not <<touching color (#00ff15)?> or <touching color (#565656)?>>>\n    if <up?> then\n        change y by (-1)\n    else\n        set [falling? v] to [0]\n        change y by (1)\n    end\n    set [yv v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [11]> then\n        hide\n        stop [all v]\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to [front v] layer\nshow\nhide\n\n
PLATFORMER TUTORIAL part1

Instructions: PLATFORMER TUTORIAL\nI hope this tutorial can let you know how to make a platformer, and even scroll! If you like, love and fav plz!

@Stage\n\nwhen flag clicked\nif <not <(username) = [gravityv]>> then\n    set [☁ views v] to ((☁ views) + (1))\nend\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@SLIDES\n\nwhen flag clicked\nswitch costume to (costume1 v)\nglide\nforever\n    if <<mouse down?> or <key (any v) pressed?>> then\n        wait until <not <<mouse down?> or <key (any v) pressed?>>>\n        next costume\n        glide\n    end\nend\n\ndefine glide\ngo to x: (435) y: (0)\nrepeat until <<(round (x position)) = [0]> and <(round (y position)) = [0]>>\n    change x by (((0) - (x position)) / (5))\n    change y by (((0) - (y position)) / (5))\nend\n\n@scripts\n\nwhen flag clicked\nhide\n\nshow\ngo to x: (-184) y: (8)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    change x by (Xv)\n    if <touching (level v)?> then\n        change x by ((Xv) * (-1))\n        set [xv v] to [0]\n    else\n        set [xv v] to ((Xv) * (0.8))\n    end\n    change y by (Yv)\n    if <touching (level v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n        if <key (up arrow v) pressed?> then\n            if <(jumped?) = [0]> then\n                set [yv v] to [11]\n                set [jumped? v] to [1]\n            end\n        end\n    else\n        change [yv v] by (-1)\n        set [jumped? v] to [0]\n    end\nend\n\n
Dungeons || A Platformer

Instructions: Controls:\nArrows, WASD or click the screen.\n\nThe background is actually part of the ground so I had to make the player do (if touching colour {colour}) in the script.

@Stage\n\n@Player\n\ndefine Reset Level\nswitch costume to (player v)\nclear graphic effects\ngo to x: (-200) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (300) %\ngo to [front v] layer\nshow\n\ndefine Die\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\nReset Level\n\nwhen flag clicked\npoint in direction (90)\nset [level v] to [1]\nReset Level\nforever\n    change [yv v] by (-1)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (.8)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [xv v] by (-.8)\n    end\n    set [xv v] to ((xv) * (.9))\n    change x by (xv)\n    if <touching color (#aaaaaa)?> then\n        change y by (1)\n    end\n    if <touching color (#aaaaaa)?> then\n        change y by (1)\n    end\n    if <touching color (#aaaaaa)?> then\n        change y by (1)\n    end\n    if <touching color (#aaaaaa)?> then\n        change y by (1)\n    end\n    if <touching color (#aaaaaa)?> then\n        change y by (-4)\n        change x by ((xv) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n            set [yv v] to [13]\n            if <(xv) > [0]> then\n                set [xv v] to [-5]\n            else\n                set [xv v] to [5]\n            end\n        else\n            set [xv v] to [0]\n        end\n    end\n    change y by (yv)\n    if <touching color (#aaaaaa)?> then\n        change y by ((yv) - ((yv) * (2)))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#aaaaaa)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <<<(y position) < [-211]> or <touching (spikes v)?>> or <touching color (#a32323)?>> then\n        Die\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [238]> then\n        Reset Level\n        change [level v] by (1)\n    end\nend\n\n@Ground\n\nwhen flag clicked\nswitch costume to (ground1 v)\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (Level)\nend\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (spikes1 v)\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nforever\n    switch costume to (Level)\nend\n\n@TN\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n