GPT007/Scratch-platformers-10k huggingface dataset:
Terrain (A platformer)

Instructions: Arrow keys to move\nDon't touch the spikes\n\nInspired by @-Handle-\n

@Stage\n\n@Tiles\n\ndefine Render\nshow\ngo to x: (-232) y: (-172)\nerase all\nset [h v] to (pick random (7) to (9))\nrepeat (30)\n    switch costume to (stone v)\n    repeat (h)\n        switch costume to (pick random (2) to (pick random (2) to (pick random (2) to (pick random (3) to (6)))))\n        stamp\n        change y by (16)\n    end\n    switch costume to (dirt v)\n    repeat (3)\n        stamp\n        change y by (16)\n    end\n    switch costume to (grass v)\n    stamp\n    change y by (16)\n    if <(pick random (1) to (25)) = [1]> then\n        switch costume to (wood v)\n        stamp\n    else\n        if <(pick random (1) to (10)) = [1]> then\n            switch costume to (spike v)\n            stamp\n        else\n        end\n    end\n    change x by (16)\n    set y to (-172)\n    set [h v] to ((h) + (pick random (-1) to (1)))\n    if <(h) > [15]> then\n        set [h v] to [15]\n    end\nend\nhide\n\nwhen I receive [message1 v]\nset size to (105) %\nRender\n\n@Player\n\nwhen flag clicked\nbroadcast (message1 v)\n\nwhen I receive [message1 v]\nset [speed x v] to [0]\nshow\nset size to (100) %\ngo to x: (-231) y: (170)\nset [speed y v] to [0]\nforever\n    switch costume to (costume2 v)\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume3 v)\n        set [speed x v] to [5]\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume4 v)\n        set [speed x v] to [-5]\n    end\n    set [speed x v] to ((speed x) * (0.9))\n    change x by (speed x)\n    if <touching color (#55c055)?> then\n        change y by (1)\n        if <touching color (#55c055)?> then\n            change y by (1)\n            if <touching color (#55c055)?> then\n                change y by (1)\n                if <touching color (#55c055)?> then\n                    change x by ((speed x) * (-1))\n                    change y by (-3)\n                end\n            end\n        end\n    end\n    Gravity <>\n    if <key (up arrow v) pressed?> then\n        if <(falling?) < [3]> then\n            set [speed y v] to [10]\n            set [falling? v] to [6]\n            set [jumping? v] to [1]\n        end\n    end\n    if <touching color (#7c7c7c)?> then\n        go to x: (-231) y: (170)\n    end\n    if <(x position) > [240]> then\n        broadcast (message1 v)\n    end\nend\n\ndefine Gravity <up?>\nchange [falling? v] by (1)\nif <<(speed y) < [4]> or <key (up arrow v) pressed?>> then\n    change [speed y v] by (-1)\nelse\n    change [speed y v] by (-2)\nend\nchange y by (speed y)\nrepeat until <not <touching color (#55c055)?>>\n    change y by (1)\n    set [speed y v] to [0]\n    set [falling? v] to [0]\nend\n\n@Untitled drawing\n\nwhen flag clicked\nhide\n\n
Platformer Script

Instructions: This is a platformer script!! 

@Stage\n\n@Cat1\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 (#009933)?> then\n        change y by (1)\n    end\n    if <touching color (#009933)?> then\n        change y by (1)\n    end\n    if <touching color (#009933)?> then\n        change y by (1)\n    end\n    if <touching color (#009933)?> then\n        change y by (1)\n    end\n    if <touching color (#009933)?> 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 (#009933)?> 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 (#009933)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> 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\n
-Short- A Platformer 

Instructions: Look at this~ https://scratch.mit.edu/projects/179963222/

@Stage\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nswitch costume to (costume2 v)\nshow\ngo to x: (-230) y: (-141)\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 (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> 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 (#000008)?> 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 (#000008)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-227) y: (41)\n    end\n    if <(x position) > [222]> then\n        next backdrop\n        go to x: (-230) y: (-141)\n    end\nend\n\n@Sprite2\n\n
Just Your Ordinary Platformer...


@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite3\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [start v]\nset [times died v] to [0]\nhide variable [times died v]\nshow\nswitch costume to (costume1 v)\nhide\ngo to x: (0) y: (0)\nshow\nforever\n    play sound [Itro - Panda \[NCS Release\].mp3 v] until done\nend\n\nchange [levels completed v] by (1)\n\nbroadcast (start v)\n\nwhen I receive [message1 v]\n\nforever\n    if <(levels completed) = [15]> then\n        show variable [times died v]\n    end\nend\n\n@Sprite1\n\nwhen I receive [message1 v]\ngo to x: (-175) y: (-95)\n\nwhen I receive [start v]\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-175) y: (-95)\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow 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 (#009933)?> then\n        change y by (1)\n        if <touching color (#009933)?> then\n            change y by (1)\n            if <touching color (#009933)?> then\n                change y by (1)\n                if <touching color (#009933)?> then\n                    change y by (1)\n                    if <touching color (#009933)?> then\n                        change y by (1)\n                        if <touching color (#009933)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow 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 [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 [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#009933)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#009933)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [13]\n        end\n    end\n    change y by (1)\n    if <touching (_edge_ v)?> then\n        broadcast (message1 v)\n        change [levels completed v] by (1)\n    end\nend\n\nwhen flag clicked\n\nwait (0.02) seconds\n\nwhen I receive [start v]\nshow\nset [times died v] to [0]\nset [levels completed v] to [0]\nset [amount of lost lives v] to [0]\nstop all sounds\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [start v]\nforever\n    if <touching color (#000000)?> then\n        go to x: (-175) y: (-95)\n    end\nend\n\nif  then\n    go to x: (-175) y: (-95)\nend\n\nbroadcast (message1 v)\n\n
Hello, cube a platformer 

Instructions: Arrow keys

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [message1 v]\nnext backdrop\n\n@Q\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-193) y: (-102)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow 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 (#7f7f7f)?> then\n        change y by (1)\n        if <touching color (#7f7f7f)?> then\n            change y by (1)\n            if <touching color (#7f7f7f)?> then\n                change y by (1)\n                if <touching color (#7f7f7f)?> then\n                    change y by (1)\n                    if <touching color (#7f7f7f)?> then\n                        change y by (1)\n                        if <touching color (#7f7f7f)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow 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 [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 [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#7f7f7f)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#7f7f7f)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nset size to (50) %\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-195) y: (-116)\n        broadcast (dead v)\n    end\n    if <color (#000000) is touching (#00fffd)?> then\n        broadcast (message1 v)\n        go to x: (-195) y: (-116)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Movie 2 v] until done\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.3)\ngo to [front v] layer\nshow\nstop [all v]\n\n
Purple Platformer


@Stage\n\n@Sprite1\n\ndefine Platform Physics (jump height) (gravity) (friction) (movement speed) (wall jump vm) (wall jump hm)\nchange y by (yv)\nif <touching (ground v)?> then\n    repeat ([abs v] of (yv) )\n        if <touching (ground v)?> then\n            change y by ((-1) * (([abs v] of (yv) ) / (yv)))\n        end\n    end\n    if <<key (up arrow v) pressed?> and <not <(yv) > [0]>>> then\n        set [yv v] to (jump height)\n    else\n        set [yv v] to [0]\n    end\nelse\n    change [yv v] by (gravity)\nend\nif <key (right arrow v) pressed?> then\n    change [xv v] by (movement speed)\n    switch costume to (right v)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by ((-1) * (movement speed))\n    switch costume to (left v)\nend\nchange x by (xv)\nif <touching (ground v)?> then\n    set [old y v] to (y position)\n    repeat (([abs v] of (xv) ) + (1))\n        if <touching (ground v)?> then\n            if <touching (ground v)?> then\n                change y by (1)\n            end\n        end\n    end\n    if <touching (ground v)?> then\n        set y to (old y)\n        repeat ([ceiling v] of ([abs v] of (xv) ) )\n            if <touching (ground v)?> then\n                change x by ((-1) * (([abs v] of (xv) ) / (xv)))\n            end\n        end\n    end\n    if <key (up arrow v) pressed?> then\n        if <(xv) < [0]> then\n            set [xv v] to [0]\n            if <key (left arrow v) pressed?> then\n                set [xv v] to (wall jump hm)\n                set [yv v] to (wall jump vm)\n            end\n        else\n            if <key (right arrow v) pressed?> then\n                set [xv v] to ((-1) * (wall jump hm))\n                set [yv v] to (wall jump vm)\n            end\n        end\n    end\nend\nset [xv v] to ((xv) * (friction))\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    Platform Physics [12] [-1] [0.9] [1] [8] [8]\n    Level Detection\n    if <touching (bad v)?> then\n        go to x: (-205) y: (-46)\n        start sound [pop v]\n    end\nend\n\ndefine Level Detection\nif <(x position) > [248]> then\n    broadcast (next level v)\nend\n\nwhen I receive [next level v]\ngo to x: (-205) y: (-46)\n\n@instructions\n\ndefine set correct tip\nswitch costume to (join [level] ([costume # v] of [ground v]))\n\nwhen flag clicked\nforever\n    glide (0.8) secs to x: (-42) y: (2)\n    glide (0.8) secs to x: (-42) y: (-2)\n    set correct tip\nend\n\n@Ground\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [8]>> then\n    next costume\nend\nif <(costume [number v]) = [8]> then\n    broadcast (win v)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@win\n\nwhen flag clicked\nhide\n\nwhen I receive [win v]\nshow\n\n
Block ~ A Platformer

Instructions: - Arrow Keys to move.

@Stage\n\nwhen flag clicked\nforever\n    play sound [Sometime v] until done\nend\n\n@Block\n\nwhen flag clicked\nhide\ngo to x: (-178) y: (-65)\nswitch costume to (dinosaur4-a v)\n\nwhen [space v] key pressed\nswitch costume to (dinosaur4-c v)\nwait (.1) seconds\nswitch costume to (dinosaur4-d v)\nwait (.1) seconds\nswitch costume to (dinosaur4-a v)\n\nwhen backdrop switches to [backdrop1 v]\nshow\nforever\n    change [y v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> 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    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?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nforever\n    if <touching color (#8dff4a)?> then\n        next backdrop\n        go to x: (-178) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff6464)?> then\n        go to x: (-178) y: (-65)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff80ec)?> then\n        set [y v] to [15]\n    end\nend\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (-178) y: (114)\n\n@AY\n\nwhen flag clicked\npoint in direction (90)\nshow\ngo to [front v] layer\nshow\nrepeat (144)\n    turn right (5) degrees\nend\nwait (1) seconds\nnext backdrop\nhide\n\nwhen flag clicked\ngo to x: (-15) y: (-13)\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to x: (89) y: (-19)\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\nwhen this sprite clicked\nnext backdrop\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n
Red a platformer

Instructions: Use the arrow keys to move. Everything is red. Please share this with everybody you know. Scroll down to find out how to beat level 4. Part 3 is out! https://scratch.mit.edu/projects/297113788/\nPart 4 will be made after 115 loves or favourites or 7000 views.\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\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\nTo beat level 4:\nHold right until you are by the wall. Keep holding right and wall jump once. You will go over the hole but keep on holding right.

@Stage\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\ngo to x: (-214) y: (115)\nswitch costume to (costume1 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    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 (#ff3333)?> then\n        change y by (1)\n    end\n    if <touching color (#ff3333)?> then\n        change y by (1)\n    end\n    if <touching color (#ff3333)?> then\n        change y by (1)\n    end\n    if <touching color (#ff3333)?> then\n        change y by (1)\n    end\n    if <touching color (#ff3333)?> 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 (#ff3333)?> 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 (#ff3333)?>> 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) > [275]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n    end\n    if <touching color (#ff8080)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [recording1 v] until done\nend\n\n
orange--a platformer

Instructions: use arrow keys to move\navoid dark orange\n\nfor some, this doesn't work\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Xylo2 v] until done\nend\n\n@Hit Box\n\ndefine Platform (jump height) (gravity) (friction) (runing speed)\nif <key (d v) pressed?> then\n    change [x velocity v] by (runing speed)\nend\nif <key (a v) pressed?> then\n    change [x velocity v] by ((runing speed) * (-1))\nend\nset [x velocity v] to ((X Velocity) * (friction))\nchange x by ((X Velocity) * (1))\nif  then\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not >>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <touching color (#ce6f24)?> then\n        change y by ((Slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (X Velocity) ) )\n            if <touching color (#ce6f24)?> then\n                change x by ((([abs v] of (X Velocity) ) / (X Velocity)) * (-1))\n            end\n        end\n        set [x velocity v] to [0]\n    end\nend\nchange y by (Y Velocity)\nif <touching color (#ce6f24)?> then\n    repeat ([ceiling v] of ([abs v] of (Y Velocity) ) )\n        if <touching color (#ce6f24)?> then\n            change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n        end\n    end\n    if <<(([abs v] of (Y Velocity) ) / (Y Velocity)) = [-1]> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to (jump height)\n    else\n        set [y velocity v] to [0]\n    end\nelse\n    change [y velocity v] by (-1)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff7b4c)?> then\n        go to x: (-181) y: (-96)\n        next backdrop\n        play sound [Coin v] until done\n        set [xv v] to [0]\n        set [yv v] to [0]\n        set [slope v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ce5124)?> then\n        go to x: (-181) y: (-96)\n        start sound [Alien Creak2 v]\n        set [xv v] to [0]\n        set [yv v] to [0]\n        set [slope v] to [0]\n    end\nend\n\nwhen I receive [message1 v]\nswitch backdrop to (backdrop1 v)\ngo to x: (-181) y: (-96)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nset [slope v] to [0]\nforever\n    Platform [12] [-1] [0.7] [2]\nend\n\n@Sprite1\n\n@thumnail\n\nwhen flag clicked\nhide\nbroadcast (message1 v)\n\ngo to x: (-6) y: (23)\ngo to [front v] layer\nshow\n\n@Sprite2\n\n