GPT007/Scratch-platformers-10k huggingface dataset:
Bob the Platformer

Instructions: use the arrows keys to move Bob around\nand don't fall off the platforms :)\nunless you want to see what happens\n

@Stage\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\n\nwhen I receive [change scene v]\nswitch costume to (join [Scene] (SCENE #))\n\n@Bob\n\nwhen flag clicked\nset [gravity v] to [-1.28]\nset [jump force v] to [15]\nset [acceleration v] to [1.5]\nset [resistance v] to [0.8]\nReset and Begin Level\n\ndefine move -in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    Check Touching Solid\n    if <(touching) > [0]> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    Check Touching Solid\n    if <(touching) > [0]> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [recording3 v] until done\nend\n\ndefine Check Touching Solid\nif <touching (level v)?> then\n    set [touching v] to [1]\nelse\n    set [touching v] to [0]\nend\n\nwhen I receive [tick-player v]\nControls - Up and Down\nControls - Left and Right\nmove -in steps (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\n\ndefine Controls - Up and Down\nif <key (up arrow v) pressed?> then\n    if <(falling) < [3]> then\n        set [speed y v] to (JUMP FORCE)\n    end\nend\nchange [speed y v] by (GRAVITY)\n\ndefine Controls - Left and Right\nif <key (left arrow v) pressed?> then\n    change [speed x v] by ((0) - (ACCELERATION))\nend\nif <key (right arrow v) pressed?> then\n    change [speed x v] by (ACCELERATION)\nend\nset [speed x v] to ((speed x) * (RESISTANCE))\n\ndefine Reset and Begin Level\nset [scene # v] to [1]\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [falling v] to [99]\ngo to x: (-150) y: (50)\nbroadcast (Change Scene v)\nbroadcast (Game Loop v)\n\nwhen I receive [game loop v]\nforever\n    broadcast (Tick-Player v)\n    broadcast (Tick-Last v)\nend\n\nwhen I receive [tick-last v]\nif <(x position) > [235]> then\n    change [scene # v] by (1)\n    broadcast (Change Scene v)\n    set x to (-235)\nend\n\nif <(x position) < [235]> then\n    change [scene # v] by (-1)\n    broadcast (Change Scene v)\n    set x to (-235)\nend\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    wait (0.1) seconds\n    change [time v] by (0.1)\n    if <(Time) < [0.1]> then\n        if <touching color (#a07171)?> then\n            set [time v] to (Time)\n        end\n        stop [all v]\n    end\nend\n\n@Spawn\n\nwhen flag clicked\ngo to x: (-200) y: (0)\nhide\n\n
The Egg Platformer

Instructions: Use arrow keys to move the egg: Left/Right and Up to jump over the chicks.\n\nHave Fun!

@Stage\n\n@Player\n\nwhen flag clicked\nshow\nset [level v] to [1]\nswitch costume to (right v)\nforever\n    set [x vel v] to [0]\n    set [y vel v] to [0]\n    set [jump v] to [0]\n    go to x: (-210) y: (-55)\n    repeat until <<(x position) > [220]> or <touching (danger v)?>>\n        change [x vel v] by (<key (right arrow v) pressed?> - <key (left arrow v) pressed?>)\n        set [x vel v] to ((X Vel) * (0.9))\n        create clone of (_myself_ v)\n        change x by (round (X Vel))\n        if <touching (platform v)?> then\n            change x by (round ((X Vel) * (-1)))\n            if <key (up arrow v) pressed?> then\n                if <(X Vel) > [0]> then\n                    set [x vel v] to [-8]\n                else\n                    set [x vel v] to [8]\n                end\n                set [jump v] to [0]\n            else\n                set [x vel v] to [0]\n            end\n        end\n        change [y vel v] by (-1)\n        change y by (Y Vel)\n        if <touching (platform v)?> then\n            change y by ((Y Vel) * (-1))\n            if <(Y Vel) < [0]> then\n                set [jump v] to [0]\n            end\n            set [y vel v] to [0]\n        end\n        if <key (up arrow v) pressed?> then\n            if <(Jump) = [0]> then\n                set [y vel v] to [15]\n                set [jump v] to [1]\n            end\n        end\n        if <(x position) > [220]> then\n            broadcast (New map v)\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (trail v)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\n    change [color v] effect by (25)\nend\ndelete this clone\n\nwhen flag clicked\nset drag mode [draggable v]\nset size to (70) %\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (right v)\n    else\n        if <key (left arrow v) pressed?> then\n            switch costume to (left v)\n        end\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen flag clicked\nforever\n    play sound [china-town-13501 \(1\) v] until done\nend\n\n@Platform\n\nwhen I receive [new map v]\nswitch costume to (Level)\n\nwhen flag clicked\nshow\nswitch costume to (Level)\n\nwhen I receive [game over v]\nhide\n\n@Danger\n\nwhen flag clicked\nshow\nswitch costume to (Level)\ngo to [back v] layer\nshow\n\nwhen I receive [new map v]\nswitch costume to (Level)\n\nwhen I receive [game over v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Settings\n\nwhen I receive [game over v]\nswitch backdrop to (game over v)\n\nwhen flag clicked\nset [level v] to [1]\nswitch backdrop to (play v)\n\nwhen I receive [new map v]\nchange [level v] by (1)\nif <(Level) > [6]> then\n    broadcast (Game Over v)\nend\n\n
Glow - A Roblox Platformer

Instructions: \nMusic is Candyland - Tobu\n@Zachary281 for the Roblox Platformer code lol\nflamingtext.com for the fonts on the thumbnail!\n#trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #platformer #trending #games #all #roblox #

@Stage\n\nwhen flag clicked\nforever\n    play sound [Tobu - Candyland \[NCS Release\].mp3 v] until done\nend\n\nnext backdrop\n\nwhen flag clicked\n\nswitch backdrop to (backdrop1 v)\n\n@Splash\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Player\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (main look \(right\) v)\n        Walk [7.5]\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n        Walk [-7.5]\n    end\n    if <<key (up arrow v) pressed?> and <(In Air?) < [8]>> then\n        set [y vel v] to [13]\n    end\n    if <<[235] < (x position)> or <(x position) = [235]>> then\n        go to x: (-192) y: (-49)\n        next backdrop\n    end\n    if <touching color (#35ff00)?> then\n        go to x: (-192) y: (-49)\n    end\n    if <touching color (#0012ff)?> then\n        set [y vel v] to [32]\n    end\nend\n\nif  then\nend\n\nswitch backdrop to (backdrop7 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nshow\ngo to x: (-192) y: (-50)\nset rotation style [left-right v]\nset [y vel v] to [0]\nforever\n    change [y vel v] by (-2)\n    change y by (Y Vel)\n    change [in air? v] by (1)\n    Handle Ground <[0] < (Y Vel)>\nend\n\ndefine Walk (steps)\nchange x by (steps)\nset [ground lift v] to [0]\nrepeat until <<not <touching color (#ff0000)?>> or <(Ground lift) = [8]>>\n    change y by (1)\n    change [ground lift v] by (1)\nend\nif <(Ground lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\ndefine Handle Ground <moving up>\nrepeat until <not <touching color (#ff0000)?>>\n    if <moving up> then\n        change y by (-5)\n    else\n        change y by (1)\n        set [in air? v] to [0]\n    end\n    set [y vel v] to [0]\nend\n\nwhen flag clicked\nswitch costume to (main look \(right\) v)\n\n
Perfect Platformer Script

Instructions: Arrow Keys to move\nWall jumping possible\nRed kills you\nGreen is bouncy\nYellow is next level (if you make more)\nYou can jump through the orange, but it's a platform\nHold Space to move faster

@Stage\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-235) y: (100)\nswitch backdrop to (1 v)\nset [lives v] to [3]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        if <key (space v) pressed?> then\n            change [xv v] by (1)\n        else\n            change [xv v] by (0.5)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        if <key (space v) pressed?> then\n            change [xv v] by (-1)\n        else\n            change [xv v] by (-0.5)\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n        change y by (1)\n        if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n            change y by (1)\n            if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n                change y by (1)\n                if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n                    change y by (1)\n                    if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n                        change y by (1)\n                    end\n                    if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n                        change x by ((Xv) * (-1))\n                        change x by (-1)\n                        change y by (-5)\n                        change x by (1)\n                        if <key (up arrow v) pressed?> then\n                            if <(Xv) < [0]> then\n                                set [yv v] to [10]\n                                set [xv v] to [10]\n                            else\n                                set [yv v] to [10]\n                                set [xv v] to [-10]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) < [-0.0001]>>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <key (up arrow v) pressed?> then\n        if <<touching color (#000000)?> or <<touching color (#ff9400)?> and <(Yv) = [0]>>> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-183) y: (-109)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ff55)?> then\n        set [yv v] to [16]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        go to x: (-183) y: (-109)\n        switch backdrop to (next backdrop v)\n    end\nend\n\n@Sprite2\n\n
Every platformer be like | A Platformer #games

Instructions: ALL BY ME\narrow keys\nthis is meant to be a joke\ncheck out the prequel https://scratch.mit.edu/projects/847144544

@Stage\n\n@Sprite1\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-213) y: (7)\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?> and <not <(x position) < [-224]>>> 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    if <(x position) < [-224]> then\n        change [x v] by (1.1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (sprite2 v)?> then\n        change y by (1)\n    end\n    if <touching (sprite2 v)?> then\n        change y by (1)\n    end\n    if <touching (sprite2 v)?> then\n        change y by (1)\n    end\n    if <touching (sprite2 v)?> then\n        change y by (1)\n    end\n    if <touching (sprite2 v)?> 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    go to [front v] layer\n    change y by (y)\n    if <touching (sprite2 v)?> 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 (sprite2 v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching (sprite3 v)?> then\n        go to x: (-213) y: (7)\n    end\n    if <(x position) > [218]> then\n        go to x: (-213) y: (7)\n        broadcast (change level v)\n    end\nend\n\n@Sprite2\n\nwhen I receive [change level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [change level v]\nnext costume\n\n@Sprite4\n\nwhen I receive [change level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Sprite5\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
Platformer


@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [message1 v]\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [start v]\nswitch backdrop to (dark blue v)\n\n@Bat\n\ndefine platform (gravity)\nchange [yvelocity v] by (gravity)\nchange y by (yVelocity)\nif <<touching (under ground v)?> or <touching (under ground2 v)?>> then\n    repeat until <not <<touching (under ground v)?> or <touching (under ground2 v)?>>>\n        change y by ((([abs v] of (yVelocity) ) / (yVelocity)) * (-1))\n    end\n    set [yvelocity v] to [0]\n    if <<key (up arrow v) pressed?> or > then\n        set [yvelocity v] to [15]\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (-201) y: (0)\npoint in direction (90)\nset size to (50) %\nstart sound [bootup v]\nwait (1) seconds\nerase all\nset [jump v] to [30]\nrepeat (50)\n    change [jump v] by (1)\n    play note ((jump)) for (0.1) beats\nend\nrepeat (50)\n    change [jump v] by (-1)\n    play note ((jump)) for (0.1) beats\nend\nbroadcast (Start v)\nshow\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        play note (66) for (0.01) beats\n        move (10) steps\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        play note (54) for (0.01) beats\n        move (10) steps\n    end\n    platform [-1]\n    if  then\n        play note (((yVelocity) * (5))) for (0.01) beats\n    end\nend\n\nbroadcast (message1 v)\nplay note (66) for (0.25) beats\nplay note (66) for (0.25) beats\nplay note (68) for (0.25) beats\nplay note (66) for (0.25) beats\nplay note (70) for (0.25) beats\nplay note (68) for (0.25) beats\nwait (0.3) seconds\nplay note (68) for (0.25) beats\nplay note (66) for (0.25) beats\nwait (0.3) seconds\nplay note (66) for (0.25) beats\nplay note (70) for (0.25) beats\nwait (0.1) seconds\nplay note (54) for (0.25) beats\n\nwhen flag clicked\nset tempo to (90)\nset [score v] to [0]\n\nwhen flag clicked\n\n@under ground\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\n\n
Chess 2 - A Platformer Game          #Games #All #Trending  #Games #All  #Games #All #Trending 

Instructions: Make to the end\n\nHEART AND STAR AND COMMENT DONE FOR A CHANCE FOR A FREE FOLLOW!\n\n

@Stage\n\n@Sprite3\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    switch costume to (level)\nend\n\n@Player2\n\nwhen flag clicked\ngo to x: (-216) y: (100)\nset [level v] to [1]\nshow\nforever\n    go to [back v] layer\n    set [y v] to [0]\n    set [x v] to [0]\n    forever\n        change [y v] by (-1)\n        set [x v] to ((x) * (0.9))\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        change x by (x)\n        if <touching (platforms v)?> then\n            change y by (1)\n        end\n        if <touching (platforms v)?> then\n            change y by (1)\n        end\n        if <touching (platforms v)?> then\n            change y by (1)\n        end\n        if <touching (platforms v)?> then\n            change y by (1)\n        end\n        if <touching (platforms v)?> 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 [10]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-4]\n                else\n                    set [x v] to [4]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n        change y by (y)\n        if <touching (platforms v)?> 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 (platforms v)?>> then\n            set [y v] to [15]\n        end\n        change y by (1)\n        if <touching (bounce pads v)?> then\n            set [y v] to [19]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (danger v)?> or <touching (lava v)?>> then\n        go to x: (-216) y: (100)\n    end\n    if <(x position) = [253]> then\n        broadcast (Next Level v)\n        change [level v] by (1)\n        go to x: (-216) y: (100)\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen I receive [the end v]\nhide\n\nwhen flag clicked\nforever\n    play sound [song v] until done\nend\n\n@Platforms\n\nwhen flag clicked\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@Danger\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <(level) = [14]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <(level) = [14]> then\n        broadcast (done v)\n        wait (1) seconds\n        stop [all v]\n    else\n    end\nend\n\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [done v]\nwait (.9) seconds\nforever\n    go to [front v] layer\n    show\nend\n\n
Woods - Platformer

Instructions: Press the green flag to play the platformer. Use the arrow keys on your keyboard to move the player. There are 10 levels. Try to pass through all of them. Stay away from the spikes and the green enemy! I hope you enjoy! 

@Stage\n\n@Player\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nshow\ngo to x: (-211) y: (-106)\nset rotation style [left-right v]\nset [y vel v] to [0]\nforever\n    change [y vel v] by (-2)\n    change y by (Y Vel)\n    change [in air? v] by (1)\n    handle ground <[0] < (Y Vel)>\nend\n\ndefine handle ground <moving up>\nrepeat until <not <touching color (#663b00)?>>\n    if <moving up> then\n        change y by (-5)\n    else\n        change y by (1)\n        set [in air? v] to [0]\n    end\n    set [y vel v] to [0]\nend\n\nwhen flag clicked\ngo to x: (-211) y: (-106)\nforever\n    if <key (left arrow v) pressed?> then\n        Walk [-5]\n    end\n    if <key (right arrow v) pressed?> then\n        Walk [5]\n    end\n    if <<key (up arrow v) pressed?> and <(In air?) < [8]>> then\n        set [y vel v] to [14]\n    end\n    if <touching (next v)?> then\n        go to x: (-211) y: (-106)\n        next backdrop\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-211) y: (-106)\n    end\n    if <touching (enemy v)?> then\n        go to x: (-211) y: (-106)\n    end\nend\n\ndefine Walk (steps)\nchange x by (steps)\nset [ground lift v] to [0]\nrepeat until <not <<touching color (#663b00)?> or <(Ground Lift) = [8]>>>\n    change y by (1)\n    change [ground lift v] by (1)\nend\nif <(Ground Lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (-211) y: (-106)\n\n@Enemy\n\nwhen flag clicked\nforever\n    if <<(backdrop [number v]) = [2]> or <(backdrop [number v]) = [6]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (239) y: (-78)\nforever\n    glide (3) secs to x: (-210) y: (-78)\n    glide (3) secs to x: (239) y: (-78)\nend\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (239) y: (-78)\nforever\n    glide (3) secs to x: (-210) y: (-78)\n    glide (3) secs to x: (239) y: (-78)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (44) y: (-29)\nshow\nforever\n    glide (2) secs to x: (163) y: (-29)\n    glide (2) secs to x: (44) y: (-29)\nend\n\n@Woods - Platformer Thumbnail\n\nwhen flag clicked\nhide\n\n@Next\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [backdrop11 v]\nstop [all v]\n\n