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

Instructions: Instructions are in the game.\n\nOnly 4 levels. I could add more levels but they would just be walls getting higher and higher and you'll have to up your jump height more and more and it would just be boring.

@Stage\n\n@Player\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-200) y: (-75)\nshow\nforever\n    switch costume to (hitbox v)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (Speed)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by ((Speed) * (-1))\n    end\n    set [xv v] to ((xV) * (0.9))\n    change x by (xV)\n    if <touching (levels v)?> then\n        change y by (2)\n        if <touching (levels v)?> then\n            change y by (2)\n            if <touching (levels v)?> then\n                change y by (2)\n                if <touching (levels v)?> then\n                    change y by (-6)\n                    change x by ((xV) * (-1))\n                    set [xv v] to [0]\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (yV)\n    if <touching (levels v)?> then\n        change y by ((yV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (levels v)?> and <key (up arrow v) pressed?>> then\n        set [yv v] to (Jump Height)\n    end\n    change y by (1)\n    switch costume to (cat v)\n    if <(x position) > [239]> then\n        broadcast (Next level v)\n        go to x: (-200) y: (-75)\n    end\n    if <(y position) < [-175]> then\n        go to x: (-200) y: (-75)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\nend\n\n@Levels\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [level v] to [1]\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\n@Speed Upgrade\n\nwhen flag clicked\nset [speed v] to [0]\ngo to x: (-30) y: (145)\nset [brightness v] effect to (0)\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [brightness v] effect to (10)\n        set size to (110) %\n        change [speed v] by (0.01)\n        wait until <not <mouse down?>>\n        set size to (100) %\n        set [brightness v] effect to (0)\n    end\nend\n\n@Jump Upgrade\n\nwhen flag clicked\nset [jump height v] to [0]\ngo to x: (90) y: (145)\nset [brightness v] effect to (0)\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [brightness v] effect to (10)\n        set size to (110) %\n        change [jump height v] by (0.1)\n        wait until <not <mouse down?>>\n        set size to (100) %\n        set [brightness v] effect to (0)\n    end\nend\n\nset [speed v] to [2]\n\n
Avengers Platformer!!!

Instructions: Can we get 1000 views?\n\n\n\nyes sirrrrrrrrrr

@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 (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> 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 [6]\n            if <(x) > [0]> then\n                set [x v] to [-3]\n            else\n                set [x v] to [3]\n            end\n        else\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) - ((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 (#000000)?>> then\n        set [y v] to [12]\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) > [245]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n    end\nend\n\nwhen [space v] key pressed\nnext costume\n\nwhen flag clicked\nforever\n    play sound [Marvel Studios' Avengers End Game - Trailer Music \(Soundtrack\)2 v] until done\nend\n\n@download-2\n\nwhen flag clicked\nhide\n\n
GROW- a platformer

Instructions: Part 2 is out!!!!!! https://scratch.mit.edu/projects/313088908/\nWelcome to GROW- a platformer.\nINSTRUCTIONS\nLeft arrow key- move left\nRight arrow key- move right\nUp arrow key- jump\nHold up and left/right to wall jump\nRed respawns you\nYellow bounces you

@Stage\n\n@Penguin\n\nwhen flag clicked\nswitch backdrop to (blue sky v)\ngo to x: (-214) y: (115)\nswitch costume to (penguin-b 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]\nset size to (20) %\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        switch costume to (costume1 v)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        switch costume to (penguin-b v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#663b00)?> then\n        change y by (1)\n    end\n    if <touching color (#663b00)?> then\n        change y by (1)\n    end\n    if <touching color (#663b00)?> then\n        change y by (1)\n    end\n    if <touching color (#663b00)?> then\n        change y by (1)\n    end\n    if <touching color (#663b00)?> 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 (#663b00)?> 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 (#663b00)?>> 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) > [225]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n        change size by (5)\n    end\n    if <touching color (#ccff00)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen backdrop switches to [blue sky10 v]\nwait until <(x position) > [-1]>\nbroadcast (message1 v)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\ngo to x: (300) y: (0)\nshow\nglide (5) secs to x: (128) y: (0)\n\n
Rexus Platformer Engine


@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch backdrop to (Level)\nend\n\n@Player\n\ndefine Place Player: (x) (y) Set Size To: (size)\ngo to x: (x) y: (y)\nset size to (size) %\n\nwhen flag clicked\nset [level v] to [1]\nshow\nPlace Player: [-173] [-122] Set Size To: [40]\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    Gravity, Platform Detection, Physics....\nend\n\ndefine Gravity, Platform Detection, Physics....\nforever\n    change [y v] by (-1)\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow 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 (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> 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 (level 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?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> and <touching (level v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<<touching (obstacles v)?> or <(y position) < [-175]>> or <key (r v) pressed?>> then\n        Place Player: [-173] [-122] Set Size To: [40]\n    end\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        Place Player: [-173] [-122] Set Size To: [40]\n    end\n    if <touching color (#fff27b)?> then\n        set [y v] to [20]\n    end\nend\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Obstacles\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@TN\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n
Eevee platformer!

Instructions: the land with the Jolteon (first one) is a basic tutorial\navoid what the different narrators tell you to

@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\nforever\n    play sound [Fade v] until done\nend\n\nwhen I receive [you did it! v]\nstop [other scripts in sprite v]\nstart sound [Yay! v]\nrepeat (100)\n    change [whirl v] effect by (5)\nend\nrepeat (200)\n    change [whirl v] effect by (-5)\nend\nrepeat (100)\n    change [whirl v] effect by (5)\nend\nrepeat (20)\n    change [pixelate v] effect by (5)\nend\nswitch backdrop to (backdrop1 v)\nrepeat (20)\n    change [pixelate v] effect by (-5)\nend\nforever\n    play sound [Spectre v] until done\nend\n\n@Eebwee\n\nwhen flag clicked\ngo to x: (-217) y: (120)\nshow\nMovement Script\n\ndefine Movement Script\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 (#000000)?> or <touching color (#00ff55)?>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <touching color (#00ff55)?>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <touching color (#00ff55)?>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <touching color (#00ff55)?>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <touching color (#00ff55)?>> 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 <(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 (#000000)?> or <touching color (#00ff55)?>> 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 (#000000)?> or <touching color (#00ff55)?>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching color (#ff0000)?> or <touching color (#00661d)?>> then\n        go to x: (-217) y: (-81)\n    end\n    if <(x position) > [222]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-81)\n    end\nend\n\nwhen I receive [you did it! v]\nhide\n\n@Pikachu\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [55 v]\nshow\nwait until <touching (eebwee v)?>\nbroadcast (you did it! v)\nhide\n\n@Thumbnail\n\nwhen [timer v] > (.1)\nshow\n\nwhen flag clicked\ngo to [front v] layer\ngo [forward v] (10000000000000000000000000000000) layers\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nhide\nforever\n    reset timer\nend\n\nwhen flag clicked\nhide\n\n
scrolling platformer engine

Instructions: arrow keys

@Stage\n\n@Player\n\nwhen flag clicked\nset rotation style [left-right v]\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\nend\n\ndefine go\nswitch costume to (hitbox v)\nchange [yv v] by (-1)\nchange y by (YV)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (YV) ) / (YV)) * (-1))\n    end\n    set [yv v] to (<<key (up arrow v) pressed?> and <(([abs v] of (YV) ) / (YV)) = [-1]>> * (12))\nend\nchange x by ((<key (right arrow v) pressed?> * (6)) + (<key (left arrow v) pressed?> * (-6)))\nset [slope v] to [0]\nrepeat until <<(slope) = [-8]> 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 ((<key (right arrow v) pressed?> * (-6)) + (<key (left arrow v) pressed?> * (6)))\n    end\nend\nchange [sx v] by (x position)\nchange [sy v] by (y position)\ngo to x: (0) y: (0)\nif <(sy) < [-500]> then\n    set [yv v] to [0]\n    set [sx v] to [0]\n    set [sy v] to [0]\nend\nswitch costume to (state)\n\nwhen flag clicked\nset [sx v] to [0]\nset [sy v] to [0]\nset [yv v] to [0]\ngo to x: (0) y: (100)\nforever\n    go\nend\n\nwhen flag clicked\nset [state v] to [3]\nforever\n    if <not <(YV) = [0]>> then\n        if <(YV) > [0]> then\n            set [state v] to [11]\n        else\n            set [state v] to [12]\n        end\n    else\n        if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n            change [state v] by (1)\n            if <(state) > [10]> then\n                set [state v] to [3]\n            end\n            wait (.05) seconds\n        else\n            set [state v] to [2]\n        end\n    end\nend\n\n@level\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nset [level x v] to [0]\nrepeat (3)\n    create clone of (_myself_ v)\n    change [level x v] by (470)\n    next costume\nend\n\nwhen I start as a clone\nshow\nforever\n    go to x: (((sx) * (-1)) + (level X)) y: ((sy) * (-1))\nend\n\n@frame\n\nwhen flag clicked\nswitch costume to (frame v)\nforever\n    if <key (space v) pressed?> then\n        next costume\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\nhide\n\nwhen [8 v] key pressed\ngo to [front v] layer\nshow\n\n
Galaxies (A Platformer)

Instructions: https://www.youtube.com/channel/UCgidyiUnT3sJkP6w7SfFTLA/?sub_confirmation=1

@Stage\n\n@Sprite1\n\nwhen I receive [next level v]\nnext costume\n\n@Sprite2\n\nwhen [r v] key pressed\ngo to x: (-200) y: (-70)\n\nwhen I receive [end v]\nhide\n\nwhen I receive [next level v]\ngo to x: (-200) y: (-70)\n\nwhen flag clicked\nhide\nwait (1.5) seconds\ngo to x: (-200) y: (-70)\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 (#a849bb)?> then\n        change y by (1)\n    end\n    if <touching color (#a849bb)?> then\n        change y by (1)\n    end\n    if <touching color (#a849bb)?> then\n        change y by (1)\n    end\n    if <touching color (#a849bb)?> then\n        change y by (1)\n    end\n    if <touching color (#a849bb)?> 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 (#a849bb)?> 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 (#a849bb)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff6666)?> then\n        go to x: (-200) y: (-70)\n    end\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        broadcast (next level v)\n    end\n    if <touching color (#49baa3)?> then\n        set [y v] to [20]\n    end\n    if <touching color (#ccd8ff)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n        else\n            set [y v] to [-1]\n        end\n        if <key (down arrow v) pressed?> then\n            set [y v] to [-5]\n        end\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n
Wings of Fire platformer!

Instructions: Use the arrow keys to move.\nLove, favorite, and follow me!\nAll levels are tested and possible.

@Stage\n\n@CricketTemplate\n\nwhen flag clicked\nshow\nswitch backdrop to (lvl1 v)\ngo to x: (-195) y: (-65)\nset y to (-63)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    set [xv v] to [0]\n    set [yv v] to [0]\n    forever\n        change [yv v] by (-0.5)\n        if <key (right arrow v) pressed?> then\n            change [xv v] by (0.7)\n            point in direction (90)\n        end\n        if <key (left arrow v) pressed?> then\n            change [xv v] by (-0.7)\n            point in direction (90)\n        end\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\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                            if <touching color (#000000)?> then\n                                change x by ((Xv) * (-1))\n                                change x by (-1)\n                                change y by (-5)\n                                change x by (1)\n                                if <key (up arrow v) pressed?> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\n                                    end\n                                else\n                                    set [yv v] to [12]\n                                end\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (Yv)\n        if <touching color (#000000)?> then\n            change y by ((Yv) * (-1))\n            set [yv 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 [yv v] to [12]\n            end\n        end\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [195]> then\n        next backdrop\n        go to x: (-195) y: (-65)\n        set y to (-63)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-195) y: (-65)\n        set y to (-63)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\n@page-turning-book-animation-17\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\nswitch costume to (page-turning-book-animation-17 v)\ngo to x: (-18) y: (-27)\nset size to (50) %\nforever\n    wait (0.05) seconds\n    next costume\nend\n\n
Arctic || Platformer

Instructions: More levels will be added if I get enough support.\nPlease love and favorite\n=========================================\nUse the arrow keys to move.

@Stage\n\n@Player\n\nwhen flag clicked\nshow\nset [level v] to [1]\ngo to x: (-220) y: (-75)\nset [yvel v] to [0]\nforever\n    create clone of (_myself_ v)\n    if <(LEVEL) = [7]> then\n        hide\n    else\n        show\n        switch costume to (player v)\n        change [yvel v] by (-1)\n        change y by (yvel)\n        Touch Ground <(yvel) > [0]>\n        set [xvel v] to ((xvel) * (0.7))\n        if <key (right arrow v) pressed?> then\n            change [xvel v] by (2)\n        end\n        if <key (left arrow v) pressed?> then\n            change [xvel v] by (-2)\n        end\n        Walk (xvel)\n        if <<key (up arrow v) pressed?> and <(airtime) < [3]>> then\n            set [yvel v] to [16]\n            set [airtime v] to [6]\n        end\n        Check Stuff\n    end\nend\n\ndefine Touch Ground <up?>\nchange [airtime 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 [airtime v] to [0]\n    end\n    set [yvel 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 ((speed) * (-1))\n    change y by ((slope) * (-1))\nend\n\ndefine Check Stuff\nif <touching (spikes v)?> then\n    set [xvel v] to [0]\n    set [yvel v] to [0]\n    set [airtime v] to [6]\n    go to x: (-220) y: (-75)\nend\nif <(y position) < [-180]> then\n    set [xvel v] to [0]\n    set [yvel v] to [0]\n    set [airtime v] to [6]\n    go to x: (-220) y: (-75)\nend\nif <touching (ice v)?> then\n    change [xvel v] by (15)\nend\nif <(x position) > [239]> then\n    set [xvel v] to [0]\n    set [yvel v] to [0]\n    set [airtime v] to [6]\n    go to x: (-220) y: (-75)\n    change [level v] by (1)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\n@Effect\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    go to x: (0) y: (([y position v] of [player v]) / (-10))\nend\n\n@Spikes\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    switch costume to (LEVEL)\nend\n\n@Ice\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    switch costume to (LEVEL)\nend\n\n@Snow\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nset size to (pick random (20) to (100)) %\nset [ghost v] effect to (pick random (70) to (100))\ngo to x: (pick random (-240.) to (240.)) y: (1800)\nglide (pick random (3) to (6)) secs to x: (pick random (-240.) to (240.)) y: (-180)\nrepeat (20)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\n@TN\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\n\n@Skip\n\n