GPT007/Scratch-platformers-10k huggingface dataset:
400 follower platformer contest!

Instructions: i forgot to say that it has to be a remix!!

@Stage\n\n@Slides\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nswitch costume to (1 v)\npoint in direction (90)\ngo to x: (0) y: (0)\nclear graphic effects\nshow\nforever\n    play sound [Monsters Inc theme \(full\).mp3 v] until done\nend\n\nwhen this sprite clicked\nstart sound [Bonk v]\nrepeat (50)\n    change [ghost v] effect by (10)\n    turn left (15) degrees\n    change y by (10)\n    change x by (-10)\nend\npoint in direction (90)\nnext costume\nclear graphic effects\nglide (0.5) secs to x: (0) y: (0)\n\nwait (0) seconds\n\nrepeat (43)\n    change [ghost v] effect by (-10)\nend\ngo to x: (0) y: (0)\n\nturn left (-15) degrees\n\nwhen [any v] key pressed\nstart sound [Bonk v]\nrepeat (50)\n    change [ghost v] effect by (10)\n    turn left (15) degrees\n    change y by (10)\n    change x by (-10)\nend\npoint in direction (90)\nnext costume\nclear graphic effects\nglide (0.5) secs to x: (0) y: (0)\n\n@intro\n\nwhen flag clicked\npoint in direction (90)\nclear graphic effects\ngo to x: (0) y: (0)\nhide\nswitch costume to (back v)\ncreate clone of (_myself_ v)\nwait (.1) seconds\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    go to x: (0) y: (0)\n    show\n    forever\n        repeat (10)\n            change [brightness v] effect by (1)\n        end\n        repeat (10)\n            change [brightness v] effect by (-1)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    go to x: (0) y: (0)\n    set size to (200) %\n    show\n    set [ghost v] effect to (100)\n    repeat (20)\n        change size by (-5)\n        change [ghost v] effect by (-5)\n    end\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nplay sound [avengers v] until done\nstart sound [Crunch v]\nswitch costume to (block v)\ncreate clone of (_myself_ v)\nplay sound [Revenge v] until done\nwait (.5) seconds\nbroadcast (start v)\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    go to x: (0) y: (0)\n    show\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    wait (2) seconds\n    forever\n        repeat (10)\n            change y by (1)\n        end\n        repeat (10)\n            change y by (-1)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    go to x: (0) y: (0)\n    show\n    forever\n        repeat (10)\n            change y by (1)\n        end\n        repeat (10)\n            change y by (-1)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    wait (2) seconds\n    forever\n        repeat (10)\n            turn right (1) degrees\n        end\n        repeat (20)\n            turn left (1) degrees\n        end\n        repeat (10)\n            turn right (1) degrees\n        end\n    end\nend\n\nwhen I receive [start v]\ndelete this clone\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n
Rainbow Platformer

Instructions: Not going to be adding more level s.\n\nINSTRUCTIONS\nArrow keys\nR to respawn

@Stage\n\n@Sprite2\n\nwhen I receive [next level v]\nnext costume\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n@Sprite1\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\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 (#44a63f)?> then\n        change y by (1)\n    end\n    if <touching color (#44a63f)?> then\n        change y by (1)\n    end\n    if <touching color (#44a63f)?> then\n        change y by (1)\n    end\n    if <touching color (#44a63f)?> then\n        change y by (1)\n    end\n    if <touching color (#44a63f)?> 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 (#44a63f)?> 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 (#44a63f)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff6666)?> 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 [r v] key pressed\ngo to x: (-196) y: (-17)\n\n
Candyland- A Platformer

Instructions:  ヽ(〃･ω･)ﾉ  When radishes start appearing in Candyland, you need to help Candy get back home!\n\nArrow keys to move! ヾ(･ω･｡)ｼ\n\n♡ ,☆ αη∂ ғσℓℓσω, thank you! \n\n#games #platformer #candyland

@Stage\n\n@Sprite1\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 (#ffdafe)?> then\n        change y by (1)\n    end\n    if <touching color (#ffdafe)?> then\n        change y by (1)\n    end\n    if <touching color (#ffdafe)?> then\n        change y by (1)\n    end\n    if <touching color (#ffdafe)?> then\n        change y by (1)\n    end\n    if <touching color (#ffdafe)?> 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 (#ffdafe)?> 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 (#ffdafe)?>> 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) > [250]> then\n        if <(backdrop [number v]) = [14]> then\n            switch backdrop to (backdrop2 v)\n        else\n            next backdrop\n        end\n        go to x: (-217) y: (-20)\n    end\nend\n\nwhen flag clicked\ngo to x: (-152) y: (-20)\nswitch backdrop to (backdrop2 v)\nbroadcast (go v)\n\nwhen flag clicked\nforever\n    play sound [MusicbyAden - Me & You \(Vlog No Copyright Music\) v] until done\nend\n\n
Snow- A Platformer

Instructions:  ヽ(〃･ω･)ﾉ  Snow is melting! Please help Snowy get back home! Arrow keys to move! ヾ(･ω･｡)ｼ\n\nEnjoyed it? ♡ & ☆ \nFollow me: @duck--\n\nNote: if it glitches at any time, press the up key, and it should work! (Sorry, I am still trying to find why it glitches.) if it still does not work, please tell in in the comments! \n\nCheck out my other platformer!\nhttps://scratch.mit.edu/projects/385072760/ ヽ(^。^)丿\n\nCredits:\nCode: @duck--\nMusic: https://youtu.be/UfAIa2zuQNE\nIgloo picture: pngimg.com\n\n\nTags:\n#scratch #platformer #snow #snowplatformer #games #game #@duck--\n

@Stage\n\n@Sprite1\n\nwhen flag clicked\nshow variable [time: v]\nset [time: v] to [0]\nswitch costume to (costume1 v)\ngo to x: (-200) y: (-20)\nswitch backdrop to (backdrop1 v)\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        switch costume to (costume2 v)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        switch costume to (costume1 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> then\n        change y by (1)\n    end\n    if <touching color (#ffffff)?> 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 (#ffffff)?> 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 (#ffffff)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<(y position) < [-180]> or <touching color (#f7ff00)?>> then\n        go to x: (-217) y: (-20)\n    end\n    if <(x position) > [246]> then\n        if <(backdrop [number v]) = [14]> then\n            switch backdrop to (backdrop2 v)\n        else\n            next backdrop\n        end\n        go to x: (-217) y: (-20)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Hovering_Thoughts v] until done\nend\n\nwhen flag clicked\nrepeat until <(backdrop [number v]) = [14]>\n    wait (1) seconds\n    change [time: v] by (1)\nend\n\nwhen backdrop switches to [backdrop14 v]\nif <(Time:) > [50]> then\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    wait (0.3) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\ngo to x: (pick random (-500) to (500)) y: (172)\nglide (5) secs to (random position v)\ndelete this clone\n\n@Sprite3\n\nhide variable [time: v]\n\nwhen flag clicked\nhide\n\nshow\n\n
Complete Platformer Engine (92 Blocks)


@Stage\n\n@Player\n\nwhen flag clicked\nswitch backdrop to (level 1 v)\nReset\nforever\n    Run\nend\n\ndefine Run\nrepeat (10)\n    change x by (xvel)\n    if <touching color (#ff0000)?> then\n        Reset\n    end\n    change y by <touching color (#000000)?>\n    if <touching color (#000000)?> then\n        change y by (-1)\n        change x by ((-1) * (xvel))\n    end\n    if <((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) / (xvel)) < [0]> then\n        change x by (xvel)\n        set [tmp v] to (xvel)\n        if <touching color (#000000)?> then\n            change y by (10)\n            if <touching color (#000000)?> then\n                set [xvel v] to ((-2) * (xvel))\n                set [yvel v] to <key (up arrow v) pressed?>\n            end\n            change y by (-10)\n        end\n        change x by ((-1) * (tmp))\n    end\n    change y by (yvel)\n    if <<touching color (#ff0000)?> or <(y position) < [-178]>> then\n        Reset\n    end\n    if <touching color (#000000)?> then\n        change x by (-1)\n        if <touching color (#000000)?> then\n            change x by (2)\n            if <touching color (#000000)?> then\n                change x by (-1)\n                change y by ((-1) * (yvel))\n                set [yvel v] to (<(yvel) < [0]> * <key (up arrow v) pressed?>)\n            end\n        end\n    end\n    if <touching color (#fd00ff)?> then\n        set [yvel v] to [1.8]\n    end\nend\nset [xvel v] to ((0.75) * ((xvel) + ((0.2) * (<key (right arrow v) pressed?> - <key (left arrow v) pressed?>))))\nchange [yvel v] by (-0.08)\nif <touching color (#10ff00)?> then\n    next backdrop\n    Reset\nend\n\ndefine Reset\nset [xvel v] to [0]\nset [yvel v] to [0]\ngo to x: (-220) y: (-120)\n\nwhen [r v] key pressed\nReset\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen [t v] key pressed\nThumbnail\n\ndefine Thumbnail\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nstop [all v]\n\n
- Platformer -

Instructions: Use the arrow keys to move. Don't touch the color red. \nAll levels are possible!!!\nPlease love, fave, and follow!!!

@Stage\n\n@player\n\nwhen flag clicked\nshow\nset [y velocity v] to [0]\nset [x velocity v] to [0]\ngo to x: (-214) y: (-90)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n    end\n    set [x velocity v] to ((x velocity) * (.9))\n    change x by (x velocity)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n            end\n            if <touching (level v)?> then\n                change y by (1)\n            end\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change x by ((x velocity) * (-1))\n                    change y by (-5)\n                    if <key (up arrow v) pressed?> then\n                        if <(x velocity) > [0]> then\n                            set [x velocity v] to [-5]\n                        else\n                            set [x velocity v] to [5]\n                        end\n                        set [y velocity v] to [10]\n                    else\n                        set [x velocity v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (y velocity)\n    if <touching (level v)?> then\n        change y by ((y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <key (up arrow v) pressed?> then\n            change [y velocity v] by (15)\n        end\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        broadcast (message 1 v)\n        set [y velocity v] to [0]\n        set [x velocity v] to [0]\n        go to x: (-214) y: (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        go to x: (-214) y: (-90)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Dance Energetic v] until done\nend\n\n@level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\nif <(x position) > [230]> then\n    change [level v] by (1)\n    set [y velocity v] to [0]\n    set [x velocity v] to [0]\n    go to x: (-214) y: (-90)\nend\n\n@message 1\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [message 1 v]\nnext costume\n\n@Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\n@Sprite1\n\n@Sprite2\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\nend\n\n
Fish ~ A Platformer

Instructions: Welcome to Fish ~ A Platformer! Use the arrow keys to move forward. Help this fish to complete all levels, and don't touch any plastic! Plastic is bad for the environment. I want to ask everyone to use as little plastic as possible. And of course to enjoy my platformer which I have had a lot of work on! ;D\n\nOh, and all levels are possible, so keep it up!

@Stage\n\nwhen I receive [next v]\nnext backdrop\n\nwhen I receive [start v]\nwait (1) seconds\nforever\n    play sound [relaxing v] until done\n    wait (1) seconds\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nwait (1) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nhide\nbroadcast (Start v)\n\n@Fish\n\nwhen I receive [start v]\nset size to (80) %\nshow\ngo to x: (-180) y: (2)\nset [speedx v] to [0]\nset [speedy v] to [0]\nforever\n    if <touching (next v)?> then\n        broadcast (Next v)\n        go to x: (-180) y: (2)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching color (#b3b3b3)?> then\n        go to x: (-180) y: (2)\n        start sound [Lose v]\n    end\n    if <touching color (#ff4d4d)?> then\n        set [speedy v] to [16]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <key (right arrow v) pressed?> then\n        change [speedx v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [speedx v] by (-1)\n    end\n    change x by (SpeedX)\n    if <<touching (levels v)?> and <touching color (#ffd966)?>> then\n        change x by ((SpeedX) * (-1))\n        set [speedx v] to [0]\n    else\n        set [speedx v] to ((SpeedX) * (0.9))\n    end\n    change y by (SpeedY)\n    if <<touching (levels v)?> and <touching color (#ffd966)?>> then\n        change y by ((SpeedY) * (-1))\n        set [speedy v] to [0]\n        if <(lock) = [0]> then\n            if <key (up arrow v) pressed?> then\n                set [speedy v] to [15]\n                set [lock v] to [1]\n            end\n        end\n    else\n        change [speedy v] by (-1)\n        set [lock v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\n@Levels\n\nwhen flag clicked\nswitch costume to (level1 v)\n\nwhen I receive [next v]\nnext costume\n\n@Next\n\nwhen flag clicked\ngo to x: (229) y: (13)\nshow\nset [ghost v] effect to (100)\n\n@Effects\n\nwhen I start as a clone\nset size to (pick random (50) to (100)) %\nshow\nrepeat (pick random (10) to (30))\n    change y by (2)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (1.5)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen I receive [start v]\nhide\nforever\n    go to x: (pick random (-200) to (200)) y: (pick random (20) to (40))\n    create clone of (_myself_ v)\n    wait (pick random (1) to (2)) seconds\nend\n\n
covid platformer

Instructions: Hello! make sure to check out the new version of covid platformer!!!!\nhttps://scratch.mit.edu/projects/534440062/\n- this is very outdated, thus I will be creating an updated version~ right now im focusing more on platformers although i tried to move on to animations, but this is from like 2021, so it is very very very very outdated-

@Stage\n\nwhen flag clicked\nforever\n\nplay sound [yt1s v] until done\n\n@Player\n\nwhen flag clicked\ngo to x: (-214) y: (115)\npoint in direction (90)\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop 1 v)\nshow\ngo to x: (-217) y: (-20)\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        if <(backdrop [name v]) = [backdrop18]> then\n            switch costume to (costume4 v)\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        if <(backdrop [name v]) = [backdrop18]> then\n            switch costume to (costume5 v)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#676767)?> or <touching color (#131313)?>> then\n        change y by (1)\n    end\n    if <<touching color (#676767)?> or <touching color (#131313)?>> then\n        change y by (1)\n    end\n    if <<touching color (#676767)?> or <touching color (#131313)?>> then\n        change y by (1)\n    end\n    if <<touching color (#676767)?> or <touching color (#131313)?>> then\n        change y by (1)\n    end\n    if <<touching color (#676767)?> or <touching color (#131313)?>> 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 <([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 (#676767)?> 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 (#676767)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#bdff77)?> 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    end\nend\n\nwhen [space v] key pressed\nnext costume\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n
2.5d platformer engine (remixable)

Instructions: Arrow keys to move, this is an engine, not a full game.\nPlease don't comment that you can fall forehttps://scratch.mit.edu/mystuff/ver. This is just an engine. I didn't know if the people who were going to remix this would actually want you to die if you fell, and it's quite simple to add.

@Stage\n\n@Sprite2\n\nwhen flag clicked\nset [scrolly v] to [0]\nset [scrollx v] to [0]\nset [fd v] to [0]\ngo to x: (0) y: (0)\nset [yvel v] to [0]\n\ndefine land\nset [up v] to [0]\nrepeat until <<not <touching (hitbox v)?>> or >\n    change y by ((0) - ((yvel) / ([abs v] of (yvel) )))\n    change [up v] by (1)\nend\nset [yvel v] to [0]\n\ndefine wall\nchange x by ((xvel) / ([abs v] of (xvel) ))\nrepeat (8)\n    change y by (1)\n    if <not <touching (hitbox v)?>> then\n        stop [this script v]\n    end\nend\nchange y by (-8)\nchange y by (0)\nset [up v] to [0]\nrepeat until \n    change x by ((0) - ((xvel) / ([abs v] of (xvel) )))\n    change [up v] by (1)\nend\nif <key (up arrow v) pressed?> then\n    set [yvel v] to [13]\n    set [xvel v] to ((0) - (((xvel) / ([abs v] of (xvel) )) * (10)))\nelse\n    set [xvel v] to [0]\nend\n\nwhen I receive [message1 v]\nchange [fd v] by (1)\nchange [yvel v] by (-1)\nchange y by (yvel)\nif <touching (hitbox v)?> then\n    if <(yvel) < [0]> then\n        set [fd v] to [0]\n    end\n    land\nend\nif <<key (up arrow v) pressed?> and <(fd) < [6]>> then\n    set [yvel v] to [12]\nend\nset [xvel v] to ((xvel) * (0.9))\nif <key (right arrow v) pressed?> then\n    change [xvel v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [xvel v] by (-1)\nend\nchange x by (round (xvel))\nif <touching (hitbox v)?> then\n    wall\nend\nchange [scrolly v] by ((y position) - (0))\nchange [scrollx v] by (x position)\nset y to (0)\nset x to (0)\n\n@platforms\n\nwhen flag clicked\nforever\n    erase all\n    switch costume to (costume1 v)\n    set size to (9999) %\n    switch costume to (costume1 v)\n    go to x: ((0) - (scrollx)) y: ((0) - (scrolly))\n    xy\n    set size to (100) %\n    set [brightness v] effect to (-61)\n    stamp\n    change [brightness v] effect by (0)\n    broadcast (message1 v)\nend\n\ndefine stamp\nrepeat (16)\n    stamp\n    change [brightness v] effect by (2)\n    set size to ((size) * (1.01)) %\n    set x to ((x position) * (1.01))\n    set y to ((y position) * (1.01))\nend\nset [bot c v] to (x position)\nset [skin b v] to (y position)\nset [skin c v] to (size)\nrepeat (17)\n    stamp\n    change [brightness v] effect by (2)\n    set size to ((size) * (1.01)) %\n    set x to ((x position) * (1.01))\n    set y to ((y position) * (1.01))\nend\n\nmove (10) steps\n\ndefine xy\nrepeat (16)\n    set x to ((x position) / (1.01))\n    set y to ((y position) / (1.01))\nend\n\n@hitbox\n\nwhen flag clicked\nforever\n    switch costume to (cheat v)\n    set size to (9999) %\n    switch costume to (costume1 v)\n    go to x: ((0) - (scrollx)) y: ((0) - (scrolly))\n    change y by (0)\n    set size to (116) %\n    set [ghost v] effect to (100)\nend\n\n