GPT007/Scratch-platformers-10k huggingface dataset:
Rotating platformer

Instructions: Left and right arrow keys to move, up arrow to jump\n\n"S" to skip stage\n\nPlease propose this to be featured at: https://scratch.mit.edu/studios/4228481/comments/\n\nI'll make more levels if we reach 100 likes and favorites!

@Stage\n\nwhen flag clicked\nforever\n    play sound [Clarv & Arkis - Polar \[Bass Rebels Release\]  v] until done\nend\n\nbroadcast (Thumbnail v)\n\nwhen [s v] key pressed\nif <not <(Stage) = [10]>> then\n    broadcast (New stage v)\nend\n\nwhen flag clicked\nforever\n    switch costume to (Stage)\nend\n\nwhen I receive [thumbnail v]\nstop [other scripts in sprite v]\nswitch backdrop to (thumbnail v)\nwait (.1) seconds\nstop [all v]\n\n@Stage\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Stage)\nend\n\nbroadcast (Thumbnail v)\n\nwhen I receive [thumbnail v]\nhide\n\n@Player\n\nwhen I receive [new stage v]\nchange [stage v] by (1)\nreset\n\nwhen flag clicked\nshow\nset [stage v] to [1]\nreset\nforever\n    physics\nend\n\ndefine reset\ngo to x: (0) y: (150)\nset [x v] to [0]\nset [y v] to [150]\nset [xv v] to [0]\nset [yv v] to [0]\n\ndefine physics\nchange [xv v] by ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) * ((<(y) > [0]> * (1.5)) - (0.75)))\nset [xv v] to ((xv) * (0.9))\nchange [y v] by (2)\ngo to x: (([sin v] of (x) ) * (y)) y: (([cos v] of (x) ) * (y))\nif <touching (stage v)?> then\n    change [y v] by (-4)\nend\ngo to x: (([sin v] of (x) ) * (y)) y: (([cos v] of (x) ) * (y))\nchange [x v] by ((xv) / ((distance to [stage v]) / (100)))\nif <touching (stage v)?> then\n    repeat until <not <touching (stage v)?>>\n        change [x v] by (<(xv) < [0]> - <(xv) > [0]>)\n        go to x: (([sin v] of (x) ) * (y)) y: (([cos v] of (x) ) * (y))\n    end\n    set [xv v] to [0]\nend\nchange [y v] by (-5)\nchange [yv v] by (-1)\nchange [y v] by (yv)\ngo to x: (([sin v] of (x) ) * (y)) y: (([cos v] of (x) ) * (y))\nif <touching (stage v)?> then\n    repeat until <not <touching (stage v)?>>\n        change [y v] by (<(yv) < [0]> - <(yv) > [0]>)\n        go to x: (([sin v] of (x) ) * (y)) y: (([cos v] of (x) ) * (y))\n    end\n    if <<key (up arrow v) pressed?> and <(yv) < [0]>> then\n        set [yv v] to [12]\n    else\n        set [yv v] to [0]\n    end\nend\nif <<<<touching (_edge_ v)?> and <(y) < [0]>> or <touching (death v)?>> or <touching (spinning parts v)?>> then\n    reset\nend\nif <touching (bounce v)?> then\n    set [yv v] to [16]\nend\nif <touching (win v)?> then\n    broadcast (New stage v)\nend\npoint in direction (x)\n\nwhen I receive [thumbnail v]\nhide\n\n@Death\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Stage)\nend\n\nwhen I receive [thumbnail v]\nhide\n\n@Bounce\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Stage)\nend\n\nwhen I receive [thumbnail v]\nhide\n\n@Win\n\nwhen I receive [thumbnail v]\nhide\n\nwhen flag clicked\nshow\n\n@Spinning parts\n\nwhen flag clicked\nshow\nset [dir v] to [90]\nforever\n    change [dir v] by (5)\n    point in direction (dir)\n    switch costume to (Stage)\nend\n\nwhen I receive [thumbnail v]\nhide\n\n
FOX Platformer

Instructions: Move with the arrows.\nEnjoy!<333

@Stage\n\nwhen flag clicked\nforever\n    next backdrop\n    wait (0.0.1) seconds\nend\n\nwhen flag clicked\nforever\n    play sound [Vexento - Sentimento.mp3 v] until done\nend\n\n@Lisek\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 (#49c826)?> then\n        change y by (1)\n    end\n    if <touching color (#49c826)?> then\n        change y by (1)\n    end\n    if <touching color (#49c826)?> then\n        change y by (1)\n    end\n    if <touching color (#e79aff)?> then\n        change [y v] by (10)\n    end\n    if <touching color (#49c826)?> then\n        change y by (1)\n    end\n    if <touching color (#49c826)?> 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 (#49c826)?> 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 (#49c826)?>> 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        broadcast (wiadomość1 v)\n        go to x: (-217) y: (-20)\n    end\nend\n\n@Duszek1\n\nwhen flag clicked\nswitch costume to (kostium1 v)\n\nwhen I receive [wiadomość1 v]\nnext costume\n\n@Duszek2\n\nwhen flag clicked\nhide\n\n
Ninja platformer!

Instructions: Use the arrow keys to move.

@Stage\n\nwhen stage clicked\nif <(mouse x) > [130]> then\n    next backdrop\nend\nif <(mouse x) < [-120]> then\n    switch backdrop to ((backdrop [number v]) - (1))\nend\n\nwhen flag clicked\nif <(backdrop [number v]) = [1]> then\n    next backdrop\nend\n\nif <(mouse y) < [-130]> then\n\n@Platforms\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\n\nwhen I receive [level up v]\nnext costume\n\n@HERO\n\nwhen flag clicked\ngo to x: (-222) y: (-111)\nforever\n    if <not <touching (platforms v)?>> then\n        change y by (-4)\n    end\n    Sensing\n    change y by (4)\n    if <<key (left arrow v) pressed?> or <([direction v] of [joypad v]) < [-70]>> then\n        change x by (-5)\n        Sensing\n    end\n    if <touching (platforms v)?> then\n        change x by (5)\n    end\n    if <<key (right arrow v) pressed?> or <([direction v] of [joypad v]) > [70]>> then\n        change x by (5)\n        Sensing\n    end\n    if <touching (platforms v)?> then\n        change x by (-5)\n    end\n    change y by (-4)\nend\n\nwhen [up arrow v] key pressed\nif <touching (platforms v)?> then\n    broadcast (Up v)\nend\n\ndefine Sensing\nif <touching color (#ff0000)?> then\n    go to x: (-222) y: (-111)\nend\nif <touching color (#9966ff)?> then\n    go to x: (-222) y: (-111)\n    broadcast (Level Up v)\nend\n\nwhen I receive [jump v]\nif  then\n    broadcast (Up v)\nend\n\nwhen I receive [up v]\nrepeat (14)\n    change y by (10)\nend\nchange y by (-6)\nif <touching (platforms v)?> then\n    stop [this script v]\nend\n\n@JoyPad\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (50)\n    hide\n    if <mouse down?> then\n        show\n        point towards (mouse-pointer v)\n    end\n    if <([abs v] of (direction) ) < [60]> then\n        broadcast (Jump v)\n    end\nend\n\npoint in direction (0)\n\n@Music\n\nwhen flag clicked\nhide\nforever\n    play sound [Music v] until done\nend\n\nshow\n\n
gobo - platformer

Instructions:   hello! this is gobo - platformer!\n\n- game-instructions:\n- use the arrow keys to move.\n- don´t touch the spikes!\n\n- i hope you like it!

@Stage\n\nwhen flag clicked\nforever\n    play sound [ v] until done\nend\n\n@gobo\n\ndefine physics\nset size to (50) %\nchange [yv v] by (-1)\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-1.8)\n    switch costume to (2 v)\nend\nif <key (right arrow v) pressed?> then\n    change [xv v] by (1.8)\n    switch costume to (1 v)\nend\nset [xv v] to ((xv) * (0.8))\nchange x by (xv)\nif <touching color (#ffb623)?> then\n    set [yv v] to [17.7]\nend\nif <touching (spikes v)?> then\n    go to x: (-200) y: (-10)\nend\nif <<touching color (#71a360)?> or <touching color (#675f51)?>> then\n    change y by (1)\nend\nif <<touching color (#71a360)?> or <touching color (#675f51)?>> then\n    change y by (1)\nend\nif <<touching color (#71a360)?> or <touching color (#675f51)?>> then\n    change y by (1)\nend\nif <<touching color (#71a360)?> or <touching color (#675f51)?>> then\n    change y by (1)\nend\nif <<touching color (#71a360)?> or <touching color (#675f51)?>> then\n    change y by (1)\nend\nif <(x position) > [230]> then\n    go to x: (-200) y: (-10)\n    broadcast (next level v)\nend\nif <(y position) < [-180]> then\n    go to x: (-200) y: (-10)\nend\nif <<touching color (#71a360)?> or <touching color (#675f51)?>> then\n    change y by (-4)\n    change x by ((xv) * (-1))\nend\nchange y by (yv)\nif <<touching color (#71a360)?> or <touching color (#675f51)?>> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> and <<touching color (#71a360)?> or <touching color (#675f51)?>>> then\n    set [yv v] to [14]\nend\n\nwhen I receive [next level v]\ngo to x: (-200) y: (-10)\n\nwhen flag clicked\npoint in direction (90)\nshow\nswitch costume to (1 v)\nswitch backdrop to (1 v)\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-200) y: (-10)\nforever\n    physics\nend\n\n@level\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\nswitch costume to (level1 v)\n\n@spikes\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\ngo to [back v] layer\nswitch costume to (1 v)\n\nwhen I receive [next level v]\ngo to [back v] layer\nnext costume\n\n@thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\n\n
The Golden City (Platformer) #all #games 

Instructions: PART TWO IS OUT!! https://scratch.mit.edu/projects/398231037/\n\nIM SO SORRY!!! I ACCIDENTALLY RESHARED!!!\nYeah, I just remixed a random project 2 years ago and I just found it in my trash can. So, I thought I'd share it. Hope you enjoy...?\nCheck out this AWESOME remix made by @Simero https://scratch.mit.edu/projects/932003311/

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nif <key (space v) pressed?> then\n    wait (0.25) seconds\n    next backdrop\nend\n\nwhen flag clicked\nforever\n    play sound [trailer v] until done\nend\n\n@Player\n\nwhen flag clicked\nswitch costume to (costume2 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) = [-181]> 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 (#c8c8c8)?> 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\nwhen flag clicked\nforever\n    if <(x position) = [242]> then\n        next backdrop\n        go to x: (-207) y: (-5)\n    end\nend\n\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    wait until <key (r v) pressed?>\n    go to x: (-207) y: (100)\nend\n\n@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nhide\n\n
Platformer Tutorial

Instructions: Here is an easy to understand tutorial on how to create your very own platformer!\n\nClick, space, left arrow, right arrow for next slide.

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Sprite1\n\nwhen flag clicked\nshow\nswitch costume to (introduction v)\n\nwhen this sprite clicked\nNext\n\ndefine Next\nrepeat (16)\n    change [ghost v] effect by (6.25)\n    change [pixelate v] effect by (5)\nend\nnext costume\nrepeat (16)\n    change [ghost v] effect by (-6.25)\n    change [pixelate v] effect by (-5)\nend\nclear graphic effects\n\nwhen [space v] key pressed\nNext\n\ndefine Previous\nrepeat (20)\n    change [ghost v] effect by (5)\n    change [pixelate v] effect by (5)\nend\nswitch costume to ((costume [number v]) - (1))\nrepeat (16)\n    change [ghost v] effect by (-6.25)\n    change [pixelate v] effect by (-5)\nend\nclear graphic effects\n\nwhen [right arrow v] key pressed\nNext\n\nwhen [left arrow v] key pressed\nPrevious\n\nswitch backdrop to (backdrop2 v)\nhide\n\n
platformer

Instructions: Use arrow keys to move and avoid spikes and lava.\nThis game is not finished I just need to add more levels but the game works.people try to get this on trending and tell me when this is on trending

@Stage\n\n@Sprite1\n\nwhen flag clicked\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 (#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            end\n        end\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 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    change [yv v] by (-1)\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 [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-150) y: (79)\n    end\n    if <(x position) > [220]> then\n        go to x: (-155) y: (134)\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\ngo to x: (-132) y: (79)\n\n
Platformer Template

Instructions: You can change the ground sprite colours, the player sprite design and add music.\nPlease credit.\nAll other instructions are in the game.\nConstructive Criticism is valued.\n                              -Love, Fav, Follow-\n________________________________________\npropose to be featured here:\nhttps://scratch.mit.edu/studios/28715018/

@Stage\n\n@player\n\ndefine walk (steps)\nchange x by (steps)\nset [ground lift v] to [0]\nrepeat until <<not <touching (ground v)?>> or <(ground lift) = [8]>>\n    change y by (1)\n    change [ground lift v] by (1)\nend\nif <(ground lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nset [y velocity v] to [0]\nforever\n    change [y velocity v] by (-2)\n    change y by (y velocity)\n    change [in air v] by (1)\n    handle ground <(y velocity) > [0]>\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <(in air) < [8]>> then\n        set [y velocity v] to [14]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        walk [6]\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        walk [-6]\n    end\nend\n\ndefine handle ground <moving up>\nswitch costume to (costume2 v)\nrepeat until <not <touching (ground v)?>>\n    if <moving up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [in air v] to [0]\n    end\n    set [y velocity v] to [0]\nend\nswitch costume to (costume1 v)\n\nwhen flag clicked\nset [deaths v] to [0]\nforever\n    if <(y position) < [-170]> then\n        set [y velocity v] to [0]\n        set x to (-230)\n        if <(y position) < [-100]> then\n            set y to (-100)\n        end\n        change [deaths v] by (1)\n        change [lives v] by (-1)\n        broadcast (reboot level v)\n    end\nend\n\ndefine die / next level\nif <(x position) > [230]> then\n    set x to (-230)\n    if <(y position) < [-100]> then\n        set y to (-100)\n    else\n        if <[-5] < (y position)> then\n            set y to (-5)\n        end\n    end\n    broadcast (next level v)\nend\n\nwhen flag clicked\nforever\n    die / next level\nend\n\nwhen flag clicked\ngo to x: (-230) y: (5)\n\n@ground\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@instructions on how to customize this game\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n
i removed the platformer

Instructions: \n\n\noriginal description:\n\ncheck out the sequel I made!\nremember to LIKE AND FAVORITE\nhttps://scratch.mit.edu/projects/484261543/\nhttps://scratch.mit.edu/projects/484261543/\nhttps://scratch.mit.edu/projects/484261543/\nhttps://scratch.mit.edu/projects/484261543/\nhttps://scratch.mit.edu/projects/484261543/\n\n\n\n_-TᕼE ᗷEᗩᑕᕼ=-_ ᗩ ᑭᒪᗩTᖴᖇOᗰEᖇ\nThis fun game includes a lot of features, like ground, spikes and a timer! Like and favorite!

@Stage\n\n
Game platformer - winter 2

Instructions: STEROWANIE:\nstrzałki \n\nuważaj na czerwony.

@Stage\n\nwhen flag clicked\nswitch backdrop to (tło1 v)\n\nwhen flag clicked\nforever\n    play sound [01-Eliza_Lumley-High_And_Dry v] until done\nend\n\n@Duszek1\n\nwhen flag clicked\ngo to x: (-203) y: (-109)\nset rotation style [don't rotate v]\nforever\n    if <touching color (#ffffff)?> then\n        set [w górę v] to [0]\n        if <key (up arrow v) pressed?> then\n            change [w górę v] by (8)\n        end\n    else\n        change [w górę v] by (-0.5)\n    end\n    change y by (w górę)\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        move (5) steps\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        move (5) steps\n    end\n    if <touching color (#9efff1)?> then\n        move (-5) steps\n    end\n    if <touching (portal v)?> then\n        next backdrop\n        go to x: (-203) y: (-109)\n    end\n    if <touching color (#fb0000)?> then\n        go to x: (-203) y: (-109)\n        start sound [Squeaky Toy v]\n    end\n    if <touching (duszek2 v)?> then\n        go to x: (-203) y: (-109)\n        start sound [Squeaky Toy v]\n    end\nend\n\nwhen backdrop switches to [tło6 v]\nplay sound [Tada v] until done\nstop [all v]\n\n@portal\n\n@Duszek2\n\nwhen backdrop switches to [tło2 v]\nshow\nset rotation style [left-right v]\nforever\n    move (10) steps\n    if on edge, bounce\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [tło6 v]\nhide\n\n@Duszek3\n\nwhen flag clicked\nswitch costume to (kostium1 v)\n\nwhen this sprite clicked\nnext costume\nforever\n    stop all sounds\nend\n\n
Earth || A 360º Scrolling Platformer

Instructions: ★════ Earth 360º platformer ════★\nHello! After days of hard work, I present to you my first 360º platformer\n\nArrow keys to move\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [Everdream v] until done\nend\n\n@blank\n\n@Background\n\nwhen flag clicked\nswitch costume to (mercury v)\nset x to (0)\nset y to (0)\nforever\n    if <key (right arrow v) pressed?> then\n        glide (0.2) secs to x: (2) y: (0)\n    else\n        if <key (left arrow v) pressed?> then\n            glide (0.2) secs to x: (-2) y: (0)\n        else\n            glide (0.1) secs to x: (0) y: (0)\n        end\n    end\n    go to [back v] layer\nend\n\n@Earth\n\nwhen flag clicked\nswitch costume to (earth v)\nbroadcast (respawn v)\nforever\n    change [y vel v] by (0.6)\n    if <key (right arrow v) pressed?> then\n        change [dir vel v] by (-0.2)\n    end\n    if <key (left arrow v) pressed?> then\n        change [dir vel v] by (0.2)\n    end\n    set [dir vel v] to ((Dir Vel) * (0.8))\n    turn right (Dir Vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (4)\n                        turn right ((Dir Vel) * (-1)) degrees\n                        set [dir vel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (Y Vel)\n    if <touching (player v)?> then\n        change y by ((Y Vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <key (up arrow v) pressed?> then\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [dir vel v] to [0]\nset [y vel v] to [0]\n\n@player\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen I receive [respawn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#ff0000)?> then\n        broadcast (respawn v)\n    end\n    show\n    change y by (5)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (respawn v)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\nclear graphic effects\ngo to [front v] layer\nshow\ngo to x: (0) y: (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n