GPT007/Scratch-platformers-10k huggingface dataset:
Watermelon Platformer

Instructions: Arrow keys to move.\n

@Stage\n\nwhen I receive [next v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen flag clicked\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 (#666666)?> then\n        change y by (1)\n        if <touching color (#666666)?> then\n            change y by (1)\n            if <touching color (#666666)?> then\n                change y by (1)\n                if <touching color (#666666)?> then\n                    change y by (1)\n                    if <touching color (#666666)?> then\n                        change y by (1)\n                        if <touching color (#666666)?> 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 (#666666)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#666666)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [20]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\ngo to x: (-60) y: (-155)\nforever\n    wait until <touching (sprite2 v)?>\n    broadcast (Next v)\n    go to x: (-60) y: (-155)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-60) y: (-155)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ff55)?> then\n        set [yv v] to [26]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        set [xv v] to [13]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff9400)?> then\n        set [xv v] to [-13]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#c96fff)?> then\n        set [yv v] to [-13]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#7f00ff)?> then\n        set [yv v] to [13]\n    end\nend\n\n@Sprite2\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n
platformer

Instructions: arrow keys and get to portal

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    play sound [dance magic v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nset [kills v] to [0]\n\nwhen flag clicked\nforever\n    next costume\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [color v] effect by (25)\nend\n\nwhen flag clicked\nforever\n    change y by (Gravity)\n    change [gravity v] by (-1)\n    if <touching color (#00ff55)?> then\n        change [gravity v] by (1)\n        set [gravity v] to [0]\n        if <key (up arrow v) pressed?> then\n            change [gravity v] by (10)\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        change x by (10)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-10)\n    end\n    if <touching color (#00cccc)?> then\n        next backdrop\n        go to x: (-214) y: (-94)\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-214) y: (-94)\n        change [kills v] by (1)\n    end\nend\n\n
Star Wars platformer

Instructions: In the game.

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [03-main-title.mp3 v] until done\n    if <(backdrop [name v]) = [13]> then\n        broadcast (порука1 v)\n    end\nend\n\n@Obi Van Kenobi\n\nwhen flag clicked\nhide variable [☁ highscore holder v]\ngo to x: (-191) y: (-120)\nset [x v] to [0]\nset [y v] to [0]\nset [deaths v] to [0]\nshow\nforever\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) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        change x by ((x) * (-1))\n                        if <key (up arrow v) pressed?> then\n                            if <(x) > [0]> then\n                                set [x v] to [-5]\n                            else\n                                set [x v] to [5]\n                            end\n                            set [y v] to [10]\n                        else\n                            set [x v] to [0]\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 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)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        change [deaths v] by (1)\n        go to x: (-191) y: (-115)\n    end\n    if <touching color (#003fff)?> then\n        set [y v] to [23]\n    end\n    if <key (r v) pressed?> then\n        go to x: (-191) y: (-115)\n    end\n    if <touching color (#ccffff)?> then\n        switch backdrop to (next backdrop v)\n        go to x: (-191) y: (-115)\n    end\nend\n\nwhen I receive [порука1 v]\nhide\n\nwhen flag clicked\nset [score v] to [0]\nforever\n    if <(backdrop [name v]) = [13]> then\n        show variable [score v]\n    end\n    if <(Score) < (☁ Highscore)> then\n        set [☁ highscore v] to (Score)\n        set [☁ highscore holder v] to (username)\n    end\nend\n\nwhen flag clicked\nforever\n    change [score v] by (1)\n    wait (1) seconds\n    if <(backdrop [name v]) = [13]> then\n        stop [this script v]\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nshow\nforever\n    wait (0.2) seconds\n    change [ghost v] effect by (25)\nend\n\ngo to x: (0) y: (0)\n\nshow\n\n
Platformer Sample

Instructions: Arrow keys to move, spacebar to jump.

@Stage\n\n@player\n\nwhen flag clicked\nset [gravity v] to [0]\nset [coins v] to [0]\nhide variable [gravity v]\nset x to (-200)\nset y to (-60)\nforever\n    if <(gravity) > [-10]> then\n        change [gravity v] by (-1)\n    end\n    if <touching (ground v)?> then\n        set [gravity v] to [0]\n        switch costume to (p1_stand v)\n    else\n        change y by (gravity)\n        switch costume to (p1_jump v)\n    end\n    if <key (right arrow v) pressed?> then\n        change x by (5)\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-5)\n        point in direction (-90)\n    end\n    if <(y position) < [-150]> then\n        start sound [gameover v]\n        switch costume to (p1_hurt v)\n        wait (1) seconds\n        stop [all v]\n    end\n    if <color (#6ec3a8) is touching (#80be1f)?> then\n        change y by (5)\n    end\n    if <<touching color (#c99869)?> or <touching color (#c58f5c)?>> then\n        if <key (right arrow v) pressed?> then\n            change x by (-5)\n        end\n        if <key (left arrow v) pressed?> then\n            change x by (5)\n        end\n    end\nend\n\nwhen [space v] key pressed\nif <touching (ground v)?> then\n    set [gravity v] to [15]\n    change y by (10)\n    start sound [jump v]\nend\n\ndefine the meaning of life\nsay [42]\n\n@ground\n\n@coin\n\nwhen flag clicked\nshow\nforever\n    if <touching (player v)?> then\n        change [coins v] by (1)\n        hide\n        start sound [coin v]\n    end\nend\n\n
How to make a platformer

Instructions: space for next step

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [other v]\nnext backdrop\n\nswitch backdrop to (backdrop4 v)\n\nnext backdrop\n\nrepeat (1)\nend\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen this sprite clicked\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\n\nwhen flag clicked\ngo to [front v] layer\nshow\n\nbroadcast (message1 v)\n\n@Sprite2\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo [backward v] (2) layers\n\nwhen [space v] key pressed\nrepeat (50)\n    change [ghost v] effect by (1)\nend\nnext costume\nrepeat (50)\n    change [ghost v] effect by (-1)\nend\nshow\nwait (1) seconds\n\nwhen [space v] key pressed\n\nrepeat (50)\n    change [ghost v] effect by (1)\nend\nchange [ghost v] effect by (-50)\nnext costume\nshow\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        wait (2) seconds\n        hide\n        broadcast (message1 v)\n    end\nend\n\n@Screenshot 2016-05-05 at 1.20.01 PM\n\nset [color v] effect to (0)\n\nchange [ghost v] effect by (-50)\nchange [ghost v] effect by (-50)\nnext costume\nshow\n\nwhen [space v] key pressed\nrepeat (50)\n    change [ghost v] effect by (1)\nend\nnext costume\nrepeat (50)\n    change [ghost v] effect by (-1)\nend\nshow\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        wait (2) seconds\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nswitch costume to (screenshot 2016-05-05 at 1.32.41 pm v)\n\n@Dog2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-143) y: (-86)\n    end\nend\n\nwhen I receive [message1 v]\nforever\n    if <touching color (#ff00bf)?> then\n        broadcast (other v)\n        go to x: (-143) y: (-86)\n    end\nend\n\ngo to x: (-158) y: (-101)\n\nwhen I receive [message1 v]\nshow\nforever\n    if <not <touching color (#666666)?>> then\n        change y by (-2)\n    end\nend\n\nwhen I receive [message1 v]\nforever\n    switch costume to (dog2-a v)\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        move (4.6) steps\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        move (4.6) steps\n    end\nend\n\nwhen I receive [message1 v]\nforever\n    forever\n        if <<touching color (#666666)?> and <key (up arrow v) pressed?>> then\n            set [gravity v] to [7]\n            change y by (gravity)\n            repeat until <<touching color (#666666)?> or <touching color (#ec1c2c)?>>\n                change [gravity v] by (-0.2)\n                change y by (gravity)\n            end\n        end\n    end\nend\n\n
Diversity - A Platformer


@Stage\n\nwhen I receive [jnjojh v]\nnext backdrop\n\nwhen backdrop switches to [end v]\nstop [all v]\n\nwhen flag clicked\nforever\n    play sound [Vexento - Nostalgia v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen flag clicked\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 (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000008)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> 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)?> or <<touching color (#009933)?> or <touching color (#660000)?>>> 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)?> or <<touching color (#009933)?> or <touching color (#660000)?>>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#cc0000)?> then\n        go to x: (-196) y: (-17)\n    end\n    if <<(x position) = [238]> or <(x position) > [238]>> then\n        go to x: (-196) y: (-17)\n        broadcast (jnjojh v)\n    end\nend\n\nwhen backdrop switches to [end v]\nhide\n\n
Sushiformer ♥


@Stage\n\nwhen flag clicked\nforever\n    play sound [lion's theme - steven universe ost v] until done\nend\n\nwhen I receive [message1 v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (-199) y: (41)\nforever\n    if <key (right arrow v) pressed?> then\n        turn right (5) degrees\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        turn left (5) degrees\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 (#fff9aa)?> then\n        change y by (1)\n        if <touching color (#fff9aa)?> then\n            change y by (1)\n            if <touching color (#fff9aa)?> then\n                change y by (1)\n                if <touching color (#fff9aa)?> then\n                    change y by (1)\n                    if <touching color (#fff9aa)?> then\n                        change y by (1)\n                        if <touching color (#fff9aa)?> 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 (#fff9aa)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#fff9aa)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#a0c9ff)?> then\n        go to x: (-209) y: (31)\n    end\n    if <touching color (#eeff77)?> then\n        broadcast (message1 v) and wait\n        go to x: (-209) y: (31)\n    end\nend\n\nwhen [space v] key pressed\ngo to x: (-209) y: (31)\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nshow\n\ngo to [front v] layer\n\n
Platformer Starter

Instructions: Use arrows

@Stage\n\n@Sprite1\n\ndefine Pull myself out of the ceiling and fall\nif <touching color (#000000)?> then\n    repeat until <not <touching color (#000000)?>>\n        change y by ((-1) * (Gravity))\n    end\nend\nset [y_vel v] to [-.1]\n\nwhen flag clicked\nInitiailize\nforever\n    Do Y Movement\n    Do X Movement\nend\n\ndefine If hovering then JUMP\nchange y by ((-1) * (Gravity))\nif <touching color (#000000)?> then\n    set [y_vel v] to [6]\nend\nchange y by ((1) * (Gravity))\n\nwhen [timer v] > (4)\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        set [x_vel v] to [3]\n    else\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            set [x_vel v] to [-3]\n        end\n    end\n    if <key (up arrow v) pressed?> then\n        If hovering then JUMP\n    end\nend\n\ndefine Do Y Movement\nif <not <touching color (#000000)?>> then\n    change y by ((Y_vel) * (Gravity))\n    if <touching color (#000000)?> then\n        change y by (((Y_vel) * (Gravity)) / (-2))\n        if <(Y_vel) < [0]> then\n            Stop falling and hover\n        else\n            Pull myself out of the ceiling and fall\n        end\n    end\n    if <(Y_vel) > [-5]> then\n        change [y_vel v] by (-0.3)\n    end\nend\n\ndefine Do X Movement\nchange x by (X_vel)\nWrap around the screen\nif <touching color (#000000)?> then\n    Pull myself out of the wall\n    Wrap around the screen\nend\nset [x_vel v] to ((X_vel) * (0.9))\n\ndefine Stop falling and hover\nif <touching color (#000000)?> then\n    repeat until <not <touching color (#000000)?>>\n        change y by ((1) * (Gravity))\n    end\nelse\n    repeat until <touching color (#000000)?>\n        change y by ((-1) * (Gravity))\n    end\n    change y by ((1) * (Gravity))\nend\nset [y_vel v] to [0]\n\ndefine Pull myself out of the wall\nchange x by ((X_vel) * (-1))\nset [x_vel v] to [0]\n\ndefine Wrap around the screen\nif <(x position) > [239]> then\n    set x to (-239)\nend\nif <(x position) < [-239]> then\n    set x to (239)\nend\n\ndefine Initiailize\nshow\nclear graphic effects\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (-136) y: (11)\nset size to (30) %\nset [x_vel v] to [0]\nset [y_vel v] to [-5]\n\nwhen flag clicked\nset [gravity v] to [1]\nforever\n    wait until <touching color (#a7a8a6)?>\n    wait until <not <touching color (#a7a8a6)?>>\n    set [gravity v] to ((X_vel) / ([abs v] of (X_vel) ))\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\ngo to x: (15) y: (160)\nrepeat (8)\n    create clone of (_myself_ v)\n    wait (1) seconds\n    change x by (30)\nend\n\nwhen I start as a clone\nshow\nrepeat until <color (#000000) is touching (#000000)?>\n    change y by (-10)\nend\nrepeat until <not <color (#000000) is touching (#000000)?>>\n    change y by (1)\nend\n\nwait until <key (space v) pressed?>\n\n
The Round - Platformer - 100 blocks

Instructions: Arrows to move - Take the coin before exit - 18 levels.\nMade for the challenge - Game 100 Blocks MAX\nhttps://scratch.mit.edu/studios/31208332\n\nI know for the glitch when level change but I need 2 blocks to fix it...\nYou need to reload the whole page to play again. Playing destroy the level list.\nNot enough blocks to have mobile controls, try my remix for that :  https://scratch.mit.edu/projects/658245887/\n\nMade for the studio : Game - 100 blocks MAX\nhttps://scratch.mit.edu/studios/31208332/\n\nRound 59\nGround 7\nExit 10\nCoin 8\nDangers 16\n

@Stage\n\n@Round 59\n\ndefine move (right or left)\nswitch costume to (hitbox v)\nchange [yspeed v] by (((23) * (<(Yspeed) = [0]> * <key (up arrow v) pressed?>)) - (2))\nchange y by (Yspeed)\nif <touching (ground 7 v)?> then\n    repeat until <not <touching (ground 7 v)?>>\n        if <(Yspeed) > [0]> then\n            change y by (-1)\n            set [yspeed v] to [1]\n        else\n            change y by (1)\n            set [yspeed v] to [0]\n        end\n    end\nend\nset [xspeed v] to (((Xspeed) * (0.7)) + ((3) * (right or left)))\nchange x by (Xspeed)\nrepeat until <not <touching (ground 7 v)?>>\n    change x by ((1) - ((2) * <(Xspeed) > [0]>))\nend\nif <touching (dangers 16 v)?> then\n    start sound [Crunch v]\n    broadcast (Die v)\nend\nswitch costume to (join [costume] (right or left))\n\nwhen flag clicked\nbroadcast (nouveau niveau v)\nforever\n    change [cycle v] by (item (7) of [levels v])\n    move (<key (right arrow v) pressed?> - <key (left arrow v) pressed?>)\nend\n\nwhen I receive [die v]\ngo to x: (item (1) of [levels v]) y: (item (2) of [levels v])\n\n@ground 7\n\nwhen I receive [nouveau niveau v]\nstop all sounds\nstart sound [Magic Spell v]\nnext costume\nforever\n    play sound (backdrop [name v]) until done\nend\n\n@exit 10\n\nwhen I receive [trouvé v]\nset [ghost v] effect to (100)\nwait until <touching (round 59 v)?>\nrepeat (7)\n    delete (1) of [levels v]\nend\nnext backdrop\nset [ghost v] effect to (0)\nbroadcast (nouveau niveau v)\nbroadcast (Die v)\n\n@coins 8\n\nwhen I receive [nouveau niveau v]\nswitch costume to (item (3) of [levels v])\nwait until <touching (round 59 v)?>\nstart sound [Coin v]\nswitch costume to (trouvé v)\nbroadcast (trouvé v)\n\n@dangers 16\n\nwhen I receive [nouveau niveau v]\nswitch costume to (item (4) of [levels v])\nset [cycle v] to [0]\ngo to x: (0) y: (0)\nforever\n    change x by ((item (5) of [levels v]) * ([cos v] of (cycle) ))\n    change y by ((item (6) of [levels v]) * ([sin v] of (cycle) ))\nend\n\n
Scaled - A Platformer -

Instructions: Double click the flag! Instructions are in the game! All levels are possible! You like platformers? Check out another one, Terra, on my profile! Yay! This project reached my goal of 500 views! Thank you everybody! So close to 100 loves! Thank you!!!

@Stage\n\nwhen flag clicked\nswitch backdrop to (majesticbackground v)\nbroadcast (message1 v)\n\nwhen I receive [message1 v]\nswitch backdrop to (1 v)\nforever\n    play sound [MajesticMusic v] until done\nend\n\n@Character\n\nwhen flag clicked\nhide\nrepeat until <touching color (#00ff55)?>\nbroadcast (gate v)\n\nwhen I receive [message1 v]\nset size to (75) %\ngo to x: (-129) y: (-75)\nswitch backdrop to (1 v)\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 (#666666)?> then\n        change y by (1)\n    end\n    if <touching color (#666666)?> then\n        change y by (1)\n    end\n    if <touching color (#666666)?> then\n        change y by (1)\n    end\n    if <touching color (#666666)?> then\n        change y by (1)\n    end\n    if <touching color (#666666)?> 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 (#666666)?> 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 (#666666)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-129) y: (-75)\n    end\n    if <touching color (#ff9400)?> then\n        set size to (45) %\n        change x by (-20)\n    end\n    if <touching color (#00cccc)?> then\n        switch backdrop to (next backdrop v)\n        set size to (75) %\n        go to x: (-129) y: (-75)\n    end\nend\n\n@ScaledPic\n\nwhen flag clicked\nhide\n\n@Gate\n\nwhen flag clicked\nhide\ngo to x: (-195) y: (21)\nrepeat until <(backdrop [name v]) = [8]>\n    hide\nend\nshow\n\nwhen I receive [gate v]\nhide\n\n