GPT007/Scratch-platformers-10k huggingface dataset:
What happened...? || A Platformer


@Stage\n\nwhen flag clicked\nforever\n    play sound [Lifeline recording \(online-audio-converter v] until done\n    wait (3) seconds\nend\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\nshow variable [level # v]\nset [level # v] to [1]\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-190) y: (0)\nset rotation style [left-right v]\nforever\n    Run Game\nend\n\ndefine Run Game\nchange [speed y v] by (-1)\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [speed x v] by (-3.5)\n    point in direction (-90)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [speed x v] by (3.5)\n    point in direction (90)\nend\nset [speed x v] to ((Speed X) * (0.7))\nchange x by (Speed X)\nif <touching (ground v)?> then\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (1)\n                            if <touching (ground v)?> then\n                                change y by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nif <touching (ground v)?> then\n    change y by (-8)\n    repeat until <not <touching (ground v)?>>\n        change x by ((Speed X) * (-1))\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        set [speed y v] to [10]\n        if <(Speed X) < [0]> then\n            set [speed x v] to [16]\n        else\n            set [speed x v] to [-16]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nchange y by (Speed Y)\nif <touching (ground v)?> then\n    repeat until <not <touching (ground v)?>>\n        change y by ((Speed Y) * (-1))\n    end\n    set [speed y v] to [0]\nend\nchange y by (-1)\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <touching (ground v)?>> then\n    set [speed y v] to [14]\nend\nchange y by (1)\nif <(x position) > [240]> then\n    go to x: (-190) y: (0)\n    change [level # v] by (1)\nend\nif <touching (danger v)?> then\n    go to x: (-190) y: (0)\nend\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (Level #)\nend\n\n@BG\n\nwhen flag clicked\nforever\n    switch costume to (Level #)\n    go to [back v] layer\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    switch costume to (Level #)\nend\n\n@TN\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n
Space Platformer v1

Instructions: NOT COMPLETE DONT ASK WHY I AM LAZY

@Stage\n\n@Sprite1\n\nwhen flag clicked\nhide\n\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\n@Sprite2\n\nwhen flag clicked\nforever\n    platform ;gravity [-.7] jump height; [13.5] side movement speed [2] friction [.859759829] slope; [8]\nend\n\ndefine platform ;gravity (gravity) jump height; (jump height) side movement speed (side movement ) friction (friction) slope; (slope)\nswitch costume to (the thing3 v)\nchange [y v v] by (gravity)\nchange y by (Y v)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y v) ) / (Y v)) * (-1))\n    end\n    set [y v v] to (<<<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> and <(([abs v] of (Y v) ) / (Y v)) = [-1]>> * (jump height))\nend\nset [x v v] to (((X v) + (((<<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> or <key (a v) pressed?>> * (side movement )) * (-1)) + (<<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> or <key (d v) pressed?>> * (side movement )))) * (friction))\nchange x by (X v)\nset [slope v] to [0]\nrepeat until <<(slope) = ((slope) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (X v) ) / (X v)) * (-1))\n    end\nend\nchange [scroll yyyy v] by ((y position) * (-1))\nchange [scroll x v] by ((x position) * (-1))\ngo to x: (0) y: (0)\nswitch costume to (the thing2 v)\n\nwhen flag clicked\nforever\n    create clone of (sprite3 v)\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    play sound [Sub Urban - Cradles \[OFFICIAL MUSIC VIDEO\] \(4\) v] until done\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\n    if <mouse down?> then\n        point towards (mouse-pointer v)\n    end\nend\n\n@level\n\nwhen flag clicked\nset [scroll x v] to [0]\nset [scroll yyyy v] to [0]\nforever\n    go to x: (scroll x) y: (scroll yyyy)\n    if <key (r v) pressed?> then\n        set [scroll x v] to [0]\n        set [scroll yyyy v] to [0]\n    end\nend\n\n@Sprite3\n\nwhen I start as a clone\nrepeat (15)\n    glide (0.6) secs to x: (scroll x) y: (scroll yyyy)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to x: (0) y: (0)\nend\n\n
Among Us platformer

Instructions: ------------Welcome To Among Us platformer------------------\nUse Arows To move And W,A,D \nMusic from @szlurp :D\nLevels 12 

@Stage\n\nwhen flag clicked\nforever\n    play sound [Hello v] until done\nend\n\n@Duszek1\n\nwhen I start as a clone\nswitch costume to (kostium2 v)\nrepeat (10)\n    change size by (-3)\n    change [ghost v] effect by (10)\n    delete this clone\nend\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (kostium1 v)\nset size to (40) %\ngo to x: (-152) y: (-55)\nforever\n    create clone of (_myself_ v)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    else\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            point in direction (90)\n            change [x v] by (1)\n        end\n    end\n    set rotation style [left-right v]\n    change x by (X)\n    set [x v] to ((X) * (.9))\n    change y by (Y)\n    set [y v] to ((Y) * (1))\n    if <touching (duszek3 v)?> then\n        play sound [Crunch v] until done\n        go to x: (-152) y: (-55)\n    end\n    if <touching (duszek4 v)?> then\n        go to x: (-152) y: (-55)\n        change [lvl v] by (1)\n    end\n    if <touching (duszek2 v)?> then\n        change y by (1)\n        if <touching (duszek2 v)?> then\n            change y by (1)\n            if <touching (duszek2 v)?> then\n                change y by (1)\n                if <touching (duszek2 v)?> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <touching (duszek2 v)?> then\n        set [y v] to [1]\n        change y by (1)\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            switch costume to (kostium4 v)\n            set [y v] to [12]\n        end\n    else\n        change [y v] by (-1)\n    end\nend\n\n@Duszek2\n\n@Duszek3\n\nwhen flag clicked\nset [lvl v] to [1]\nforever\n    switch costume to (LVL)\nend\n\n@Duszek4\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Duszek5\n\nwhen flag clicked\ncreate clone of (_myself_ v)\ngo to (random position v)\nforever\n    turn right (2) degrees\n    change x by (2)\n    if <touching (_edge_ v)?> then\n        go to (random position v)\n    end\nend\n\nwhen I start as a clone\ngo to (random position v)\nforever\n    turn right (2) degrees\n    change x by (2)\n    if <touching (_edge_ v)?> then\n        go to (random position v)\n    end\nend\n\n@Duszek6\n\nwhen flag clicked\nforever\n    switch costume to (LVL)\nend\n\n@Duszek7\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\n
Görünmez-Platformer

Instructions: Geçebildin mi hah tabiki hayır\n\nTREND 47

@Stage\n\n@Player\n\nwhen flag clicked\nshow\nswitch costume to (kostüm 1 v)\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-201) y: (-24)\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < [0]>>> then\n        change [x v] by (1)\n        switch costume to (kostüm 1 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > [0]>>> then\n        change [x v] by (-1)\n        switch costume to (kostüm 2 v)\n    end\n    change x by (X)\n    set [x v] to ((X) * (0.9))\n    if <touching (yoh v)?> then\n        change y by (1)\n        if <touching (yoh v)?> then\n            change y by (1)\n            if <touching (yoh v)?> then\n                change y by (1)\n                if <touching (yoh v)?> then\n                    change y by (1)\n                    if <touching (yoh v)?> then\n                        change y by (1)\n                        if <touching (yoh v)?> then\n                            change x by ((X) * (-1.2))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [10]\n                                else\n                                    set [x v] to [-10]\n                                end\n                                set [y v] to [15]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (yoh v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n        if <touching (yoh v)?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [215]> then\n        go to x: (-201) y: (-24)\n        broadcast (Next level v)\n    end\n    if <<touching color (#ff8500)?> or <touching color (#010101)?>> then\n        go to x: (-201) y: (-24)\n    end\n    if <touching color (#97ff73)?> then\n        set [y v] to [20]\n    end\n    if <touching color (#95ff00)?> then\n        set [x v] to [50]\n    end\nend\n\n@Platform\n\nwhen flag clicked\nshow\nswitch costume to (kostüm 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@YOH\n\nwhen flag clicked\nshow\nswitch costume to (kostüm 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Kukla 1\n\nwhen flag clicked\nhide\n\n
Platformer engine

Instructions: Platformer engine. use with credit. \n\nInstructions\n\nArrow keys to move, dodge the spikes\n\nlike and star for part two xd. Also ask if you want another animation. \n\n

@Stage\n\n@Blank\n\n@Platforms\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Player\n\nwhen flag clicked\nswitch costume to (costume2 v)\nforever\n    if <<<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> or <key (up arrow v) pressed?>> then\n        create clone of (_myself_ v)\n    end\nend\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    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) = [239]> then\n        broadcast (Next Level v)\n        change [level v] by (1)\n        go to x: (-216) y: (100)\n    end\nend\n\nwhen I start as a clone\nrepeat (100)\n    change [ghost v] effect by (15)\n    change size by (-15)\nend\ndelete this clone\n\nwhen flag clicked\nshow\n\nwhen I receive [the end v]\nhide\n\nchange y by (1)\nif <touching (bounce pads v)?> then\n    set [y v] to [19]\nend\n\nwhen flag clicked\nforever\n    if <touching color (#373737)?> then\n        go to [front v] layer\n    end\nend\n\n@Danger\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Platforms2\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n
360°platformer/360°プラットフォーマー

Instructions: 矢印、wads、タップで移動！\nゴールしてもThank you for playingって出てきて終わり。\n\n\n

@Stage\n\n@ゴボ\n\nwhen flag clicked\nset [ww v] to [1]\ngo to x: (0) y: (-1)\nshow\nforever\n    switch costume to (gobo-a v)\n    change y by (-5)\n    set size to (55) %\n    if <<touching color (#5d5d5d)?> or <<touching color (#ff0000)?> or <touching color (#979797)?>>> then\n        broadcast (respawn v)\n    end\n    if <touching color (#e2ff00)?> then\n        change [ww v] by (1)\n        broadcast (Next stage v)\n    end\n    change y by (5)\nend\n\nwhen I receive [respawn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@動くやつ\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [b v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nswitch costume to (1 v)\nshow\nbroadcast (respawn v)\nswitch costume to (サイズ調整 v)\nset size to (200) %\nswitch costume to (1 v)\nforever\n    change [y v] by (1)\n    if <<key (right arrow v) pressed?> or <<<(mouse x) > (x position)> and <mouse down?>> or <key (d v) pressed?>>> then\n        change [b v] by (-0.2)\n    end\n    if <<key (left arrow v) pressed?> or <<<(x position) > (mouse x)> and <mouse down?>> or <key (a v) pressed?>>> then\n        change [b v] by (0.2)\n    end\n    set [b v] to ((B) * (0.8))\n    turn right (B) degrees\n    if <touching (ゴボ v)?> then\n        change y by (-1)\n        if <touching (ゴボ v)?> then\n            change y by (-1)\n            if <touching (ゴボ v)?> then\n                change y by (-1)\n                if <touching (ゴボ v)?> then\n                    change y by (-1)\n                    if <touching (ゴボ v)?> then\n                        change y by (4)\n                        turn right ((B) * (-1)) degrees\n                        set [b v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (ゴボ v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (1)\n    if <touching (ゴボ v)?> then\n        if <<key (up arrow v) pressed?> or <<<(mouse y) > [50]> and <mouse down?>> or <key (w v) pressed?>>> then\n            set [y v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen I receive [next stage v]\nif <(costume [name v]) = [3]> then\n    stop [this script v]\nelse\n    switch costume to (ww)\n    point in direction (90)\n    go to x: (-10) y: (-500)\n    set [b v] to [0]\n    set [y v] to [0]\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\n
Sky-platformer

Instructions: Hi! You are on a Sky-platformer! To control, use the arrows or W-A-D

@Stage\n\nwhen flag clicked\nforever\n    play sound [Dance Around v] until done\nend\n\n@player\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (-205) y: (0)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    broadcast (Tick v)\n    if <(x position) > [230]> then\n        go to x: (-205) y: (0)\n        change [level v] by (1)\n    end\n    if <<(y position) < [-200]> or <<touching color (#b3b3b3)?> or <touching color (#7f7f7f)?>>> then\n        go to x: (-205) y: (0)\n    end\nend\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [xv v] by (-1)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [xv v] by (1)\nend\nchange x by (xv)\nset [xv v] to ((xv) * (0.9))\nif <<touching color (#29ff00)?> or <touching color (#820000)?>> then\n    change y by (1)\n    if <<touching color (#29ff00)?> or <touching color (#820000)?>> then\n        change y by (1)\n        if <<touching color (#29ff00)?> or <touching color (#820000)?>> then\n            change y by (1)\n            if <<touching color (#29ff00)?> or <touching color (#820000)?>> then\n                change y by (1)\n                if <<touching color (#29ff00)?> or <touching color (#820000)?>> then\n                    change y by (1)\n                    if <<touching color (#29ff00)?> or <touching color (#820000)?>> then\n                        change x by ((xv) * (-1))\n                        change y by (-5)\n                        if <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                            if <(xv) > [0]> then\n                                set [xv v] to [-10]\n                            else\n                                set [xv v] to [10]\n                            end\n                            set [yv v] to [15]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yv)\nif <<touching color (#29ff00)?> or <touching color (#820000)?>> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    if <<touching color (#29ff00)?> or <touching color (#820000)?>> then\n        set [yv v] to [13]\n    end\nend\nchange y by (1)\n\nwhen I receive [tick v]\nTick\n\nwhen flag clicked\nwait (1) seconds\n\nif <[] = [1]> then\nif <[] = [2]> then\n\nwhen [1 v] key pressed\nforever\n\ngo to x: (-191) y: (-185)\n\n@Levels\n\nwhen flag clicked\nforever\n    switch costume to (Level)\n    if <(Level) > [11]> then\n        set [level v] to [11]\n    end\nend\n\n@Template\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n
Sky-platformer 2

Instructions: Hi! You are on Sky-platformer 2! To control, use the arrows or W-A-D

@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch backdrop to (Level)\n    if <(Level) > [6]> then\n        set [level v] to [6]\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Dance Around v] until done\nend\n\n@player\n\nwhen flag clicked\ngo to x: (-210) y: (0)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    broadcast (Tick v)\n    if <<(y position) < [-200]> or <<touching color (#b3b3b3)?> or <touching color (#7f7f7f)?>>> then\n        go to x: (-210) y: (0)\n    end\n    if <(x position) > [229]> then\n        go to x: (-210) y: (0)\n        change [level v] by (1)\n    end\nend\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [xv v] by (-1)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [xv v] by (1)\nend\nchange x by (xv)\nset [xv v] to ((xv) * (0.9))\nif <<touching color (#29ff00)?> or <touching color (#690000)?>> then\n    change y by (1)\n    if <<touching color (#29ff00)?> or <touching color (#690000)?>> then\n        change y by (1)\n        if <<touching color (#29ff00)?> or <touching color (#690000)?>> then\n            change y by (1)\n            if <<touching color (#29ff00)?> or <touching color (#690000)?>> then\n                change y by (1)\n                if <<touching color (#29ff00)?> or <touching color (#690000)?>> then\n                    change y by (1)\n                    if <<touching color (#29ff00)?> or <touching color (#690000)?>> then\n                        change x by ((xv) * (-1))\n                        change y by (-5)\n                        if <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                            if <(xv) > [0]> then\n                                set [xv v] to [-10]\n                            else\n                                set [xv v] to [10]\n                            end\n                            set [yv v] to [15]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yv)\nif <<touching color (#29ff00)?> or <touching color (#690000)?>> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    if <<touching color (#29ff00)?> or <touching color (#690000)?>> then\n        set [yv v] to [13]\n    end\nend\nchange y by (1)\n\nwhen I receive [tick v]\nTick\n\nwhen flag clicked\nwait (1) seconds\n\nif <[] = [1]> then\nif <[] = [2]> then\n\nwhen [1 v] key pressed\nforever\n\ngo to x: (-191) y: (-185)\n\n@Template\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nshow\nstop [all v]\n\n