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


@Stage\n\n@Player\n\nwhen flag clicked\nset [gravity v] to [-1.5]\nset [jump force v] to [12]\nset [acceleration v] to [2]\nset [resistance v] to [0.8]\nset [speed y v] to [0]\ngo to x: (-150) y: (55)\nforever\n    if <key (up arrow v) pressed?> then\n        if <(falling) < [3]> then\n            set [speed y v] to (JUMP FORCE)\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        change [speed x v] by ((0) - (ACCELERATION))\n    end\n    if <key (right arrow v) pressed?> then\n        change [speed x v] by (ACCELERATION)\n    end\n    set [speed x v] to ((speed x) * (RESISTANCE))\n    change [speed y v] by (GRAVITY)\n    Move - in steps (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\nend\n\nstop [all v]\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching color (#9966ff)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching color (#9966ff)?> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\n
Simple Platformer Engine

Instructions: Use the left and right arrow keys to move the character around the platforms. Press the up arrow key to jump.\n\n\n\n

@Stage\n\n@Sprite1\n\nwhen flag clicked\nset [x motion v] to [0]\nset [y motion v] to [0]\ngo to x: (-214) y: (-110)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x motion v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x motion v] by (-1)\n    end\n    set [x motion v] to ((0.9) * (X motion))\n    change x by (X motion)\n    if <touching color (#ff9400)?> then\n        change y by (5)\n        if <touching color (#ff9400)?> then\n            change y by (-5)\n            change x by ((0) - (X motion))\n            set [x motion v] to [0]\n        end\n    end\n    change [y motion v] by (-1)\n    change y by (Y motion)\n    if <touching color (#ff9400)?> then\n        change y by ((0) - (Y motion))\n        set [y motion v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [y motion v] to [10]\n        end\n    end\nend\n\n
Platformer/プラットフォーマー

Instructions: 日本語は下\n『English』(Google Translate)\nIt’s recommended to press the flag twice\n\n【Method of operation】\nMove with arrow keys/wasd key/tap\n※ Mobile version is difficult\n※ Please let me know if there are any\n\n[Author's comment]\nThis is my first work!\nI spent a lot of time making it, so please press ❤️ and ⭐️??\nIf I didn't hit the ❤️ and ⭐️, I'd smash my pinky finger in the corner of the closet tomorrow……\n\n『日本語』\n旗2回押し推奨\n\n【操作方法】\n矢印キー/wasdキー/タップで移動\n※モバイル版は難しいです\n※バグがあったら教えて下さい\n\n【作者のコメント】\n初めての作品です！\n時間をかけて作ったので、❤️と⭐️を押してくださいね？？\n❤️と⭐️を押さなかった人は、明日タンスの角に小指をぶつけます……

@Stage\n\nwhen flag clicked\nplay sound [NCS Cloud9 v] until done\n\n@サムネ\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\n\n@プレイヤー\n\nwhen flag clicked\ngo to x: (-200) y: (-111)\npoint in direction (90)\nset rotation style [left-right v]\nswitch costume to (1 v)\nset [x v] to [0]\nset [y v] to [0]\nshow\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching color (#000000)?> then\n        change x by ((X) * (-1))\n        set [x v] to [0]\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?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [249]> then\n        broadcast (NEXT v)\n        リセット\n    end\n    if <<[-188] > (y position)> or <touching color (#ff0000)?>> then\n        リセット\n    end\nend\n\ndefine リセット\ngo to x: (-200) y: (-111)\npoint in direction (90)\n\nwhen I receive [end v]\nsay (join (username) (join [の記録は] (join (あなたの記録) [秒です‼︎])))\n\nwhen [timer v] > (0)\nhide\n\n@地形\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nshow\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nset [あなたの記録 v] to [0]\nhide variable [☁ 世界記録 v]\nrepeat until <(costume [number v]) = [10]>\n    wait (1) seconds\n    change [あなたの記録 v] by (1)\nend\nshow variable [☁ 世界記録 v]\nbroadcast (END v)\nif <<(☁ 世界記録) > (あなたの記録)> or <(あなたの記録) = (☁ 世界記録)>> then\n    set [☁ 世界記録 v] to (あなたの記録)\nend\n\nwhen [timer v] > (0)\nhide\n\n
✨ Xenogender | Platformer ✨ An LGBTQ+ Platformer #Xenogenders

Instructions: Hey there :)\nYou might wonder why this project is completely white and empty now. The reason is that I recently went through this project and realized that the explanations are, at least in my opinion, not that good.\nI have temporary removed everything from the project to avoid that my project, which aims to be a qualitative source to educate, is causing the contrary.\nThanks for your understanding :)\n- Mickey\n\nInstead, you can check out my other informative platformers for the first time: \nhttps://scratch.mit.edu/studios/31961099/ :)

@Stage\n\nwhen flag clicked\nswitch backdrop to (bildschirmfoto 2022-06-12 um 14 v)\n\nwhen I receive [catgender v]\nswitch backdrop to (catgender_flag v)\n\nwhen I receive [faunagender v]\nswitch backdrop to (bildschirmfoto 2022-06-26 um 19 v)\n\nwhen I receive [noungender v]\nswitch backdrop to (220px-noungender5000x3000 v)\n\nwhen I receive [aesthetigender v]\nswitch backdrop to (300px-aesthetigender_high_def v)\n\nwhen I receive [colo\(u\)rgender v]\nswitch backdrop to (bildschirmfoto 2022-07-04 um 20 v)\n\nwhen I receive [abstractgender v]\nswitch backdrop to (bildschirmfoto 2022-07-04 um 2 v)\n\nwhen I receive [stargender v]\nswitch backdrop to (bildschirmfoto 2022-07-05 um 13 v)\n\nwhen I receive [end v]\nswitch backdrop to (xeno without * v)\n\n
Platformer Assets

Instructions: High quality stuff for your platformer!\n\nYou can use with credit! \n\nRemix it and make a platformer!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#jarvin36 #jarvin #platformer #Art #color #All #remix #square #quality #assets #items

@Stage\n\n@Background\n\n@Ground\n\n@Dangers\n\n@Thumbnail\n\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nclear graphic effects\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen flag clicked\nset [turn v] to [0]\nforever\n    repeat (30)\n        change [turn v] by (0.01)\n    end\n    repeat (60)\n        change [turn v] by (-0.01)\n    end\n    repeat (30)\n        change [turn v] by (0.01)\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\npoint in direction (85)\nforever\n    turn right (turn) degrees\nend\n\nwhen flag clicked\nshow\nclear graphic effects\nset [ghost v] effect to (50)\ngo to [front v] layer\n\n@Sky\n\n@Clouds\n\nwhen flag clicked\n\nset [ghost v] effect to (25)\n\n@Player\n\n@Music\n\n@Sound Effects\n\n@ezgif\n\nwhen flag clicked\nswitch costume to (ezgif v)\ngo to x: (0) y: (0)\ngo to [back v] layer\nshow\nclear graphic effects\nset size to (192) %\nforever\n    wait (0.02) seconds\n    next costume\nend\n\n@Sprite2\n\n@coin\n\nswitch costume to (coin 1 v)\nforever\n    repeat until <(costume [number v]) = [8]>\n        next costume\n        wait (0.04) seconds\n    end\n    repeat until <(costume [number v]) = [1]>\n        switch costume to ((costume [number v]) - (1))\n        wait (0.04) seconds\n    end\nend\n\n@Water\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    change y by (Y Speed)\nend\n\nwhen flag clicked\nset [y speed v] to [0]\nforever\n    repeat (30)\n        change [y speed v] by (-0.01)\n    end\n    repeat (60)\n        change [y speed v] by (0.01)\n    end\n    repeat (30)\n        change [y speed v] by (-0.01)\n    end\nend\n\n@Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    change y by (Y Speed)\nend\n\nwhen flag clicked\nset [y speed v] to [0]\nforever\n    repeat (30)\n        change [y speed v] by (-0.01)\n    end\n    repeat (60)\n        change [y speed v] by (0.01)\n    end\n    repeat (30)\n        change [y speed v] by (-0.01)\n    end\nend\n\n@Green Water\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    change y by (Y Speed)\nend\n\nwhen flag clicked\nset [y speed v] to [0]\nforever\n    repeat (30)\n        change [y speed v] by (-0.01)\n    end\n    repeat (60)\n        change [y speed v] by (0.01)\n    end\n    repeat (30)\n        change [y speed v] by (-0.01)\n    end\nend\n\n@Particles\n\n
Cave - a Platformer

Instructions: Use the arrow keys (or tap on mobile) to get to the end, avoiding spiky crystals and using your light to guide you through! Enjoy!

@Stage\n\nwhen I receive [next! v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Ball\n\nwhen flag clicked\npoint in direction (90)\nforever\n    if <<<<mouse down?> and <(mouse y) > [-50]>> or <key (up arrow v) pressed?>> and <(y position) < [-138]>> then\n        set [up and down v] to [12]\n    else\n        change [up and down v] by (-0.7)\n    end\nend\n\nwhen flag clicked\ngo to x: (-150) y: (-50)\nset [up and down v] to [10]\nforever\n    change y by (Up and down)\nend\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        change [left and right v] by (0.6)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n        change [left and right v] by (-0.6)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Left and right) > [0]> then\n        change [left and right v] by (-0.2)\n    end\n    if <(Left and right) < [0]> then\n        change [left and right v] by (0.2)\n    end\nend\n\nwhen flag clicked\nforever\n    if on edge, bounce\n    point in direction (90)\nend\n\nwhen flag clicked\ngo to x: (-150) y: (-50)\nset [left and right v] to [0]\nforever\n    change x by (Left and right)\nend\n\nwhen I receive [go! v]\ngo to x: (-150) y: (-50)\nset [left and right v] to [0]\nset [up and down v] to [0]\n\nwhen I receive [next! v]\ngo to x: (-150) y: (-50)\nset [left and right v] to [0]\nset [up and down v] to [0]\n\n@Ouch!\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    wait (0.1) seconds\n    wait until <touching (ball v)?>\n    broadcast (Go! v)\nend\n\nwhen I receive [next! v]\nnext costume\n\n@End\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    wait until <touching (ball v)?>\n    broadcast (Next! v)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    go to (ball v)\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\nend\n\n
Platformer

Instructions: Arrow keys to move! 10 ❤️ & ⭐ for part two\n\nTake your time, the game is super hard!

@Stage\n\n@Player\n\nwhen flag clicked\nset [gravity v] to [-1]\nset [speed y v] to [0]\ngo to x: (-150) y: (55)\nforever\n    if <key (up arrow v) pressed?> then\n        if <(falling) < [3]> then\n            set [speed y v] to [13]\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        change [speed x v] by (1.5)\n    end\n    if <key (left arrow v) pressed?> then\n        change [speed x v] by (-1.5)\n    end\n    set [speed x v] to ((speed x) * (0.8))\n    change [speed y v] by (GRAVITY)\n    Move - in steps (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\nend\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching color (#000000)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching color (#000000)?> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-150) y: (-94)\n        change [lives v] by (-1)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (costume8 v)\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        go to x: (-150) y: (-94)\n        next backdrop\n        wait (2) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Remix-Maker v] until done\nend\n\nwhen flag clicked\nset [lives v] to [10]\n\nwhen flag clicked\nforever\n    if <(Lives) < [1]> then\n        switch backdrop to (scene11 v)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <mouse down?> then\n        hide\n        switch backdrop to (scene1 v)\n        wait (99999999999999999999999999) seconds\n    end\nend\n\nwhen flag clicked\nshow\n\n
Space | A platformer #games #All 

Instructions: Space is a platformer placed in space, all you have to do is win, its quite simple if you ask me\n\nShould I continue with the series?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ncredits to @MetalLightning 

@Stage\n\n@Player\n\nwhen flag clicked\nshow\nforever\n    set [x vel v] to [0]\n    set [y vel v] to [0]\n    set [jump v] to [0]\n    go to x: (-210) y: (-55)\n    repeat until <<(x position) > [240]> or <touching (sprite not good v)?>>\n        change [x vel v] by (<key (right arrow v) pressed?> - <key (left arrow v) pressed?>)\n        set [x vel v] to ((X Vel) * (0.9))\n        create clone of (_myself_ v)\n        change x by (round (X Vel))\n        if <touching (platform v)?> then\n            change x by (round ((X Vel) * (-1)))\n            if <key (up arrow v) pressed?> then\n                if <(X Vel) > [0]> then\n                    set [x vel v] to [-8]\n                else\n                    set [x vel v] to [8]\n                end\n                set [jump v] to [0]\n            else\n                set [x vel v] to [0]\n            end\n        end\n        change [y vel v] by (-1)\n        change y by (Y Vel)\n        if <touching (platform v)?> then\n            change y by ((Y Vel) * (-1))\n            if <(Y Vel) < [0]> then\n                set [jump v] to [0]\n            end\n            set [y vel v] to [0]\n        end\n        if <key (up arrow v) pressed?> then\n            if <(Jump) = [0]> then\n                set [y vel v] to [15]\n                set [jump v] to [1]\n            end\n        end\n    end\n    if <(x position) > [240]> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (10)\n    change size by (-9)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwait (10) seconds\n\nwhen flag clicked\nforever\n    if <touching (speed right v)?> then\n        change [x vel v] by (5)\n    end\nend\n\n\n\nset [x vel v] to [0]\n\nwhen flag clicked\nforever\n    if <touching (speed left v)?> then\n        change [x vel v] by (-00.9)\n    end\nend\n\nmove (10) steps\n\nwhen flag clicked\nforever\n\nhide\n\nwhen flag clicked\nshow\n\nwhen [down arrow v] key pressed\nswitch costume to (costume3 v)\nif <[] = [0]> then\n    switch costume to (costume1 v)\nend\n\n@Sprite Not Good\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nhide\n\nwhen flag clicked\nshow\n\n@Platform\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nhide\n\nwhen flag clicked\nshow\n\nchange y by (10)\n\n@Sprite1\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nhide\n\nwhen flag clicked\nshow\n\n@Tumbnal\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\nshow\n\n@Sprite2\n\n
The Wild West | A platformer #games #All

Instructions: The Wild West is a platformer placed in the desert, all you have to do is win, its quite simple if you ask me\n\nthis is the end of the series (maybe)

@Stage\n\n@Player\n\nwhen flag clicked\nshow\nforever\n    set [x vel v] to [0]\n    set [y vel v] to [0]\n    set [jump v] to [0]\n    go to x: (-210) y: (-55)\n    repeat until <<(x position) > [240]> or <touching (sprite not good v)?>>\n        change [x vel v] by (<key (right arrow v) pressed?> - <key (left arrow v) pressed?>)\n        set [x vel v] to ((X Vel) * (0.9))\n        create clone of (_myself_ v)\n        change x by (round (X Vel))\n        if <touching (platform v)?> then\n            change x by (round ((X Vel) * (-1)))\n            if <key (up arrow v) pressed?> then\n                if <(X Vel) > [0]> then\n                    set [x vel v] to [-8]\n                else\n                    set [x vel v] to [8]\n                end\n                set [jump v] to [0]\n            else\n                set [x vel v] to [0]\n            end\n        end\n        change [y vel v] by (-1)\n        change y by (Y Vel)\n        if <touching (platform v)?> then\n            change y by ((Y Vel) * (-1))\n            if <(Y Vel) < [0]> then\n                set [jump v] to [0]\n            end\n            set [y vel v] to [0]\n        end\n        if <key (up arrow v) pressed?> then\n            if <(Jump) = [0]> then\n                set [y vel v] to [15]\n                set [jump v] to [1]\n            end\n        end\n    end\n    if <(x position) > [240]> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (10)\n    change size by (-9)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwait (10) seconds\n\nwhen flag clicked\nforever\n    if <touching (speed right v)?> then\n        change [x vel v] by (5)\n    end\nend\n\n\n\nset [x vel v] to [0]\n\nwhen flag clicked\nforever\n    if <touching (speed left v)?> then\n        change [x vel v] by (-00.9)\n    end\nend\n\nmove (10) steps\n\nwhen flag clicked\nforever\n\nhide\n\nwhen flag clicked\nshow\n\nwhen [down arrow v] key pressed\nswitch costume to (costume3 v)\nif <[] = [0]> then\n    switch costume to (costume1 v)\nend\n\n@Sprite Not Good\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nhide\n\nwhen flag clicked\nshow\n\n@Platform\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen flag clicked\nswitch costume to (level3 v)\n\nwhen I receive [next level v]\nnext costume\n\nhide\n\nwhen flag clicked\nshow\n\nchange y by (10)\n\n@Sprite1\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nhide\n\nwhen flag clicked\nshow\n\n@Tumbnal\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\nshow\n\n@Sprite2\n\n
SUPA POPULAR PLATFORMER

Instructions: arrow keys bc I wrong

@Stage\n\n@Sprite1\n\nwhen flag clicked\nhide\n\ndefine platformer engine\nchange [y v] by (-1)\nif <key (right arrow v) pressed?> then\n    change [x v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [x v] by (-1)\nend\nset [x v] to ((X) * (0.9))\nchange x by (X)\nif <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 y by (-5)\n                        change x by ((X) * (-1))\n                        if <key (up arrow v) pressed?> then\n                            set [y v] to [12]\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                end\n            end\n        end\n    end\nend\nchange y by (Y)\nif <touching color (#000000)?> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-1)\nif <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n    set [y v] to [12]\nend\nchange y by (1)\nchange [scrollx v] by ((x position) * (-1))\nchange [scrolly v] by ((y position) * (-1))\ngo to x: (0) y: (0)\nif <touching color (#009dea)?> then\n    set [scrollx v] to [595]\n    set [scrolly v] to [-100]\nend\nif <(scrollY) > [700]> then\n    set [scrollx v] to [595]\n    set [scrolly v] to [-100]\nend\n\nwhen I receive [message1 v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    platformer engine\nend\n\nwhen I receive [purple v]\nswitch costume to (costume1 v)\n\nwhen I receive [red v]\nswitch costume to (costume2 v)\n\nwhen I receive [yellow v]\nswitch costume to (costume3 v)\n\n@level\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [message1 v]\nshow\nswitch costume to (costume v)\nset size to (200) %\nswitch costume to (costume1 v)\nset [scrollx v] to [595]\nset [scrolly v] to [-100]\nset [level v] to [2]\nforever\n    go to x: (scrollX) y: (scrollY)\nend\n\nwhen I receive [hi v]\nswitch costume to (costume2 v)\n\n@Sprite2\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Sprite3\n\nwhen this sprite clicked\nbroadcast (message1 v)\nhide\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    repeat (2)\n        play sound [A Elec Piano v] until done\n    end\nend\n\n