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

Instructions: 100% possible\nfirst 3 levels by @joshuaDeuel\n\n\n

@Stage\n\n@hit box\n\nwhen flag clicked\nset rotation style [left-right v]\nrepeat (4)\n    change [ghost v] effect by (25)\nend\nforever\n    set [direction v] to (direction)\nend\n\nwhen flag clicked\nshow\ngo to x: (-205) y: (-146)\npoint in direction (90)\nset [level v] to [1]\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [xv v] by (0.7)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000008)?> then\n        change y by (1)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            if <touching (_edge_ v)?> then\n                                change x by (Change)\n                            end\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000008)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000008)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [10]\n        end\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-208) y: (-77)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        point in direction (90)\n    end\n    if <(x position) > [235]> then\n        broadcast (nextlevel v)\n        go to x: (-208) y: (-77)\n        next backdrop\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    play sound [Mii theme NINTENDO \(trap remix\) v] until done\nend\n\n@Cat\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    point in direction (direction)\nend\n\nwhen flag clicked\nforever\n    go to (hit box v)\nend\n\n
Yellow -  Platformer 

Instructions: Yellow is bouncy, and yellow respawns you. Use the arrow keys to steer your yellow circle around the world of yellow! (An entire world made out of yellow things.) 

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nforever\n    play sound [Kaze ni Naru from The Cat Returns \(music box\) v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-214) y: (115)\nswitch costume to (costume1 v)\nshow\ngo to x: (-177) y: (12)\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 (#f6ff00)?> then\n        change y by (1)\n    end\n    if <touching color (#f6ff00)?> then\n        change y by (1)\n    end\n    if <touching color (#f6ff00)?> then\n        change y by (1)\n    end\n    if <touching color (#f6ff00)?> then\n        change y by (1)\n    end\n    if <touching color (#f6ff00)?> 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 (#f6ff00)?> 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 (#f6ff00)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#fcffa3)?> then\n        change [deaths v] by (1)\n        go to x: (-177) y: (12)\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 flag clicked\nforever\n    if <touching color (#a1a600)?> then\n        set [y v] to [20]\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\n
Red (For SDS) Story Platformer

Instructions: in game Yay got in SDS \nI fixed the end glitch

@Stage\n\nwhen flag clicked\nswitch backdrop to (red v)\nforever\n    play sound [Faded v] until done\nend\n\n@Ground\n\nwhen flag clicked\nrepeat until <(Level) = [9]>\n    switch costume to (Level)\nend\n\n@Player\n\nwhen flag clicked\ngo to x: (-224) y: (0)\nset [level v] to [1]\nset [sy v] to [0]\nset [falling v] to [10]\nforever\n    change [sy v] by (-1)\n    change y by (SY)\n    Touch Ground <(SY) > [0]>\n    if <key (up arrow v) pressed?> then\n        if <<(Jump Key) = [0]> and <(Falling) < [3]>> then\n            set [sy v] to [14]\n            set [falling v] to [5]\n            set [jump key v] to [1]\n        end\n    else\n        set [jump key v] to [0]\n    end\n    if <key (left arrow v) pressed?> then\n        Walk [-4]\n    end\n    if <key (right arrow v) pressed?> then\n        Walk [4]\n    end\n    if <<(y position) < [-180]> or <touching color (#d2cccc)?>> then\n        go to x: (-269) y: (0)\n        set [sy v] to [0]\n    end\n    if <[219] < (x position)> then\n        go to x: (-269) y: (0)\n        change [level v] by (1)\n    end\nend\n\ndefine Touch Ground <up?>\nchange [falling v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [sy v] to [0]\nend\n\ndefine Walk (speed)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(Slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(Slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (Slope))\nend\n\n@Thumb\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\n@Special Ground\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (Level)\n    if <(costume [number v]) = [9]> then\n        broadcast (message1 v)\n    end\nend\n\n@Special Ground2\n\nwhen I receive [message1 v]\nshow\n\nwhen flag clicked\nhide\n\n
Another Platformer

Instructions: Arrow keys or WAD.\n\nAll 20 levels are 100% possible.

@Stage\n\nwhen flag clicked\nforever\n    play sound [/ v] until done\nend\n\n@Player\n\nwhen flag clicked\nforever\n    if <touching color (#ce7dff)?> then\n        set [yv v] to [20]\n    end\n    if <touching color (#ffa446)?> then\n        set [xv v] to [15]\n    end\n    if <touching color (#000000)?> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-220) y: (0)\n    end\n    if <(y position) < [-180]> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-220) y: (0)\n    end\n    if <(x position) > [240]> then\n        broadcast (Next Level v)\n        go to x: (-220) y: (0)\n        set [yv v] to [0]\n        set [xv v] to [0]\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\ngo to x: (-220) y: (0)\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#ffe013)?> then\n        change y by (1)\n        if <touching color (#ffe013)?> then\n            change y by (1)\n            if <touching color (#ffe013)?> then\n                change y by (1)\n                if <touching color (#ffe013)?> then\n                    change y by (1)\n                end\n                if <touching color (#ffe013)?> then\n                    change y by (1)\n                    if <touching color (#ffe013)?> then\n                        change x by ((Xv) * (-1))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [12]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#ffe013)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#ffe013)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\nend\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Thumb Nail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n
No Control or Event Blocks: Platformer Engine


@Stage\n\n@Sprite1\n\ndefine physics\nswitch backdrop to (l)\nchange [xv v] by (<key (right arrow v) pressed?> * (2))\nchange [xv v] by (<key (left arrow v) pressed?> * (-2))\nset [xv v] to ((xv) * (0.7))\nchange x by (xv)\nset [a v] to <touching color (#000000)?>\nchange x by (() - ((a) * (xv)))\nchange [xv v] by (() - ((a) * (xv)))\nchange [yv v] by (-0.5)\nchange y by (yv)\nset [a v] to <touching color (#000000)?>\nchange y by (() - ((a) * (yv)))\nchange [yv v] by (() - ((a) * (yv)))\nchange y by (-1)\nchange [yv v] by (<<key (up arrow v) pressed?> and <touching color (#000000)?>> * ((10) - (yv)))\nchange y by (1)\nchange [l v] by <(x position) > [240]>\nset [a v] to <<(y position) < [-180]> or <<(x position) > [240]> or <touching color (#ff0000)?>>>\nchange [xv v] by (() - ((a) * (xv)))\nchange [yv v] by (() - ((a) * (yv)))\ngo to x: ((x position) - (((x position) + (130)) * (a))) y: ((y position) - ((y position) * (a)))\nphysics\n\nwhen video motion > (-9999)\nturn video (off v)\nset [xv v] to [0]\nset [yv v] to [0]\nset [l v] to [1]\ngo to x: (-130) y: (0)\nphysics\n\n@Sprite2\n\nwhen video motion > (-9999)\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
No Variable, Control, or Event Blocks Platformer Engine

Instructions: A fully featured platforming engine that doesn't use a single block from any of the variables, control, or events sections of Scratch. Everything you would expect is there: controls, collision, velocity, levels, death, ...

@Stage\n\n@Sprite1\n\ndefine physics\nchange tempo by (<key (right arrow v) pressed?> * (2))\nchange tempo by (<key (left arrow v) pressed?> * (-2))\nset tempo to ((((tempo) - (100)) * (.7)) + (100))\nchange x by ((tempo) - (100))\nset size to (100) %\nchange size by <touching color (#000000)?>\nchange x by (() - (<(size) = [101]> * ((tempo) - (100))))\nchange tempo by (() - (<(size) = [101]> * ((tempo) - (100))))\nset size to (100) %\npoint in direction ((direction) - (.5))\nchange y by (direction)\nchange size by <touching color (#000000)?>\nchange y by (() - (<(size) = [101]> * (direction)))\npoint in direction ((direction) - (<(size) = [101]> * (direction)))\nset size to (100) %\nchange y by (-1)\npoint in direction ((direction) + (<<key (up arrow v) pressed?> and <touching color (#000000)?>> * ((10) - (direction))))\nchange y by (1)\nswitch backdrop to ((backdrop [number v]) + <(x position) > [240]>)\nchange size by <<(y position) < [-180]> or <<(x position) > [240]> or <touching color (#ff0000)?>>>\nchange tempo by (() - (<(size) = [101]> * ((tempo) - (100))))\npoint in direction ((direction) - (<(size) = [101]> * (direction)))\ngo to x: ((x position) - (((x position) + (130)) * <(size) = [101]>)) y: ((y position) - ((y position) * <(size) = [101]>))\nset size to (100) %\nphysics\n\nwhen video motion > (-9999)\nturn video (off v)\ngo to x: (-130) y: (0)\npoint in direction (0)\nswitch backdrop to (backdrop1 v)\nset size to (100) %\nphysics\n\n@Sprite2\n\nwhen video motion > (-9999)\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
Grey-scale - A platformer

Instructions: 1000 VIEWS THANK YOU GUYS SO MUCH!\nALL LEVELS ARE POSSIBLE!\n The winner of the name competition was @Mrcakeyman89 with the name Ash. Well done!\nThere is a glitch to make him jump really high.The first one to get it was @97Scratch Go check them out!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nYou wasted 5 seconds of your life scrolling down. Hit the follow button to get those 5 seconds back!

@Stage\n\nwhen flag clicked\nforever\n    play sound [Flying-in-stuff v] until done\nend\n\n@Player\n\nwhen I receive [begin platformer v]\nforever\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            change x by ((x) * (-1))\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [8]\n    end\n    change y by (0.5)\n    if <touching color (#ff0000)?> then\n        broadcast (sorry! v)\n    end\n    change [y v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\nend\n\nwhen I receive [sorry! v]\ngo to x: (-192) y: (-39)\n\nwhen I receive [begin platformer v]\nforever\n    if <<(x position) = [237]> or <(x position) > [237]>> then\n        go to x: (-224) y: (-74)\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen this sprite clicked\nif <(backdrop [name v]) = [backdrop1]> then\n    broadcast (platformer v)\n    stop [other scripts in sprite v]\n    set rotation style [don't rotate v]\n    point in direction (-75)\n    broadcast (begin platformer v)\nend\n\nwhen flag clicked\nswitch costume to (right v)\nswitch backdrop to (backdrop1 v)\nshow\npoint in direction (90)\nset size to (70) %\ngo to x: (0) y: (-50)\nbroadcast (begin platformer v)\n\n@THUMBNAIL\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    show\nend\n\n
platformer in the life

Instructions: use arrow keys to move\navoid red\n\nhope you like it

@Stage\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\ngo to x: (-138) y: (-42)\nforever\n    change [y v] by (-0.5)\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 (#000008)?> then\n        change y by (1)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change y by (1)\n                            if <touching color (#000008)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000008)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000008)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#2400ff)?> then\n        next backdrop\n        go to x: (-138) y: (-42)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-138) y: (-42)\n    end\nend\n\nwhen backdrop switches to [backdrop15 v]\nsay (join (join [thanks for playing ] (username)) [!])\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nshow\n\n
Platformer Engine!

Instructions: Welcome to my platformer engine!  You can use this code in your projects.  Just throw the code in your backpack and you're ready to go!

@Stage\n\n@Player\n\nwhen flag clicked\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\ngo to x: (-207) y: (-5)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <(y position) = [-176]> then\n        go to x: (-207) y: (-5)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\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) * (.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\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 v] by (-.5)\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)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (1)\n    if <touching color (#ff1818)?> then\n        go to x: (-207) y: (-5)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <touching color (#ff922c)?> then\n        set [y v] to [13]\n    end\nend\n\ngo to x: (128) y: (-180)\n\nset [x v] to [5]\n\n\n\n@Splash Screen!\n\nwhen flag clicked\nshow\nclear graphic effects\nwait (.1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n
NoControl Platformer

Instructions: Here is a platformer script made with no control blocks.\n\nThis means I didn't use "Forever", "If", "Wait" or anyother block like that. If you don't believe me, click see inside.\n\nMy entry for NON-CONTROL CHALLENGE!\n\nI might add levels later.

@Stage\n\n@Sprite1\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (0) y: (0)\npoint in direction (90)\nshow\nLoop\n\nset [xv v] to [5]\n\ndefine Loop\nchange [xv v] by <<key (right arrow v) pressed?> or <key (d v) pressed?>>\nchange [xv v] by (() - <<key (left arrow v) pressed?> or <key (a v) pressed?>>)\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nchange y by <touching color (#000000)?>\nchange y by <touching color (#000000)?>\nchange y by <touching color (#000000)?>\nchange y by <touching color (#000000)?>\nchange y by <touching color (#000000)?>\nchange y by <touching color (#000000)?>\nWall Jump <touching color (#000000)?>\nchange [yv v] by (((20) - (Yv)) * <touching color (#faff00)?>)\nchange [yv v] by (-1)\nchange y by (Yv)\nset [i v] to <not <touching color (#000000)?>>\nchange y by (((Yv) * (-1)) * <touching color (#000000)?>)\nset [yv v] to ((Yv) * (i))\nchange y by (-5)\nchange [yv v] by (((15) - (Yv)) * <<touching color (#000000)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>>)\nchange y by (5)\nLoop\n\ndefine Wall Jump <touching black>\nchange x by (<touching black> * ((Xv) * (-1)))\nchange y by (<touching black> * (-6))\nchange [xv v] by (((-8) - (Xv)) * <<touching black> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(Xv) > [0]>>>)\nchange [xv v] by (((8) - (Xv)) * <<touching black> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(Xv) > [0]>>>>)\nchange [yv v] by (<touching black> * (<<key (up arrow v) pressed?> or <key (w v) pressed?>> * ((12) - (Yv))))\nset [xv v] to ((Xv) * <not <<not <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <touching black>>>)\n\nwhen flag clicked\nLoop 2\n\ndefine Loop 2\ngo to x: ((x position) + (((0) - (x position)) * <touching color (#d20000)?>)) y: ((y position) + (((0) - (y position)) * <touching color (#d20000)?>))\nLoop 2\n\n