GPT007/Scratch-platformers-10k huggingface dataset:
Go To School Platformer / #Games

Instructions: Left or Right Arrows to Move. Up or W to jump.

@Stage\n\nwhen flag clicked\nforever\n    play sound [Relaxed Scene - Creator Marketplace v] until done\nend\n\n@Player\n\ndefine Run Game\nchange [speed y v] by (-1)\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    point in direction (-90)\n    change [speed x v] by (-2)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\n    change [speed x v] by (2)\nend\nset [speed x v] to ((Speed X) * (0.7))\nchange x by (Speed X)\nif <touching (ground v)?> then\n    change y by (1)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (1)\n                            if <touching (ground v)?> then\n                                change y by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nif <touching (ground v)?> then\n    change y by (-8)\n    repeat until <not <touching (ground v)?>>\n        change x by ((Speed X) * (-1))\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        set [speed y v] to [10]\n        if <(Speed X) < [0]> then\n            set [speed x v] to [16]\n        else\n            set [speed x v] to [-16]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nchange y by (Speed Y)\nif <touching (ground v)?> then\n    repeat until <not <touching (ground v)?>>\n        change y by ((Speed Y) * (-1))\n    end\n    set [speed y v] to [0]\nend\nchange y by (-1)\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <touching (ground v)?>> then\n    set [speed y v] to [14]\nend\nchange y by (1)\n\nwhen flag clicked\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-200) y: (0)\nset rotation style [left-right v]\nforever\n    Run Game\n    if <(y position) < [-200]> then\n        death\n    end\nend\n\nwhen I receive [next v]\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-200) y: (0)\nset rotation style [left-right v]\n\ndefine death\nset [speed y v] to [0]\nset [speed x v] to [0]\ngo to x: (-200) y: (0)\nset rotation style [left-right v]\n\n@Ground\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Next\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    if <touching (player v)?> then\n        broadcast (Next v)\n    end\nend\n\n@Thumb\n\nwhen flag clicked\nshow\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\n\n
Platformer Made Easy (Tutorial)

Instructions: Use the arrow keys to navigate slides

@Stage\n\nwhen I receive [message1 v]\nclear graphic effects\nstop [other scripts in stage v]\n\nwhen flag clicked\nswitch backdrop to (backdrop11 v)\nforever\n    if <key (right arrow v) pressed?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        next backdrop\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        wait until <not <key (right arrow v) pressed?>>\n        clear graphic effects\n    end\n    if <key (left arrow v) pressed?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        switch backdrop to ((backdrop [number v]) - (1))\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        wait until <not <key (right arrow v) pressed?>>\n        clear graphic effects\n    end\nend\n\n@Sprite1\n\nwhen backdrop switches to [backdrop12 v]\ngo to x: (-186) y: (-99)\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop12 v]\nbroadcast (message1 v)\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 [15]\n        end\n    end\n    change y by (1)\nend\n\n
Purple land platformer 

Instructions: arrow keys\nCheck out the sequel, Red Land https://scratch.mit.edu/projects/957504952

@Stage\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume3 v)\n\nwhen I receive [change level v]\nnext costume\n\n@Sprite1\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-213) y: (7)\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\npoint in direction (90)\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> and <not <(x position) < [-224]>>> 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    if <(x position) < [-224]> then\n        change [x v] by (1.1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (sprite2 v)?> then\n        change y by (1)\n    end\n    if <touching (sprite2 v)?> then\n        change y by (1)\n    end\n    if <touching (sprite2 v)?> then\n        change y by (1)\n    end\n    if <touching (sprite2 v)?> then\n        change y by (1)\n    end\n    if <touching (sprite2 v)?> 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    go to [front v] layer\n    change y by (y)\n    if <touching (sprite2 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?> and <touching (sprite2 v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching (sprite3 v)?> then\n        go to x: (-213) y: (7)\n    end\n    if <(x position) > [201]> then\n        go to x: (-213) y: (7)\n        broadcast (change level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n        wait (0.5) seconds\n        switch costume to (costume2 v)\n        wait (0.5) seconds\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume3 v)\n        wait (0.5) seconds\n        switch costume to (costume4 v)\n        wait (0.5) seconds\n        switch costume to (costume3 v)\n    end\nend\n\nrepeat until \n\nwait (0.2) seconds\n\nrepeat until <(costume [number v]) = [1]>\n    wait (0.5) seconds\n    next costume\n    if <(costume [number v]) = [1]> then\n        switch costume to (costume3 v)\n    end\nend\n\nrepeat until <(costume [number v]) = [3]>\n\nif <(costume [number v]) = [3]> then\n    switch costume to (costume1 v)\nend\n\nnext costume\n\nswitch costume to (costume2 v)\n\nswitch costume to (costume1 v)\n\n@Sprite3\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume4 v)\n\nwhen I receive [change level v]\ngo to [back v] layer\nnext costume\n\n
2D Platformer

Instructions: Adventure through and to get to the yellow squares! Arrow keys to move. Up arrow= jump, left arrow= left, right arrow= right. Avoid red and try to get to the yellow square

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [next level v]\nnext backdrop\nwait (1) seconds\n\n@Sprite2\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        change x by (-2)\n    end\n    if <key (right arrow v) pressed?> then\n        change x by (2)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <color (#666666) is touching (#00ff55)?>> then\n        change y by (-3)\n    else\n        if <key (up arrow v) pressed?> then\n            start sound [boing v]\n            repeat (20)\n                change y by (3)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        broadcast (next level v)\n        go to x: (217) y: (-64)\n    end\nend\n\nwhen flag clicked\ngo to x: (194) y: (-83)\n\nwhen flag clicked\nforever\n    if <touching color (#cc0099)?> then\n        go to x: (200) y: (43)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        go to x: (212) y: (-88)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (217) y: (-64)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff00bf)?> then\n        go to x: (-164) y: (106)\n    end\nend\n\n
Midnight - A Platformer

Instructions: Help Ninja find his way back to Tokyo!\n\n-Use the arrow keys to move the ninja.\n-Avoid falling into the darkness.\n-Don't touch the red!\n\nPlease love, favourite and even remix if you want to.\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset [ghost v] effect to (100)\nrepeat (33)\n    change [ghost v] effect by (-3)\nend\nwait (1) seconds\nswitch backdrop to (backdrop3 v)\n\nwhen flag clicked\nforever\n    play sound [Epic Adventure Music - Shadow Ninja.mp3 v] until done\nend\n\n@Ninja\n\nwhen flag clicked\ngo to x: (-200) y: (-100)\npoint in direction (90)\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\nwhen flag clicked\nforever\n    if <(y position) < [-179]> then\n        go to x: (-200) y: (-100)\n        set [speed y v] to [0]\n    end\n    if <touching color (#680303)?> then\n        go to x: (-200) y: (-100)\n        set [speed y v] to [0]\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (-200) y: (-100)\nset [speed y v] to [0]\nforever\n    change [speed y v] by (-1)\n    change y by (speed y)\n    Touch Ground <(speed y) > [0]>\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    if <key (left arrow v) pressed?> then\n        Walk (-90) (-8)\n    end\n    if <key (right arrow v) pressed?> then\n        Walk (90) (8)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <(falling?) < [3]>> then\n        set [speed y v] to [12]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(backdrop [name v]) = [backdrop18]>> then\n        if <(x position) = [248]> then\n            go to x: (-200) y: (-100)\n            switch backdrop to (next backdrop v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#686803)?> then\n        set [speed y v] to [25]\n    end\nend\n\ndefine None\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching color (#b2b2b2)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\ndefine Touch Ground <>\nchange [falling? v] by (1)\nrepeat until <not <touching color (#b2b2b2)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop17]> then\n        show\n        go to [front v] layer\n    else\n        hide\n    end\nend\n\n
The Cave - A Platformer


@Stage\n\n@Objeto1\n\nwhen I receive [next level v]\ngo to x: (-187) y: (-17)\n\nwhen flag clicked\nhide\nwait (1.5) seconds\ngo to x: (-187) 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 (#232957)?> then\n        change y by (1)\n    end\n    if <touching color (#232957)?> then\n        change y by (1)\n    end\n    if <touching color (#232957)?> then\n        change y by (1)\n    end\n    if <touching color (#232957)?> then\n        change y by (1)\n    end\n    if <touching color (#232957)?> 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 (#232957)?> 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 (#232957)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff6666)?> then\n        go to x: (-187) y: (-17)\n    end\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen [r v] key pressed\ngo to x: (-187) y: (-17)\n\nwhen flag clicked\nforever\n    play sound [forest-1 v] until done\nend\n\n@Objeto2\n\nwhen flag clicked\nwait (0.25) seconds\nshow\n\nwhen I receive [next level v]\nnext costume\n\n@Objeto3\n\nwhen flag clicked\nshow\nwait (0.25) seconds\nhide\n\n
Mystic Valley || multiplayer platformer   #games #stratfordjames

Instructions: The grassland ◈ A mulitplayer platformer\n\nArrow keys or tap (mobile) to move\nDon't fall into the water\n\nto chat, press t and then select one of the 11 phrases\n\nas long as you are not "New Scratcher" you can see other players and chat with them\n\nif you stay inactive longer than 60 seconds or your FPS drops lower than 10, the system will kick you out

@Stage\n\nwhen flag clicked\nswitch backdrop to (tutorial {2} v)\nrepeat (10)\n    play sound [Village Vibe \(online-audio-converter v] until done\nend\n\n@Level\n\nwhen I receive [tick v]\ngo to x: (0) y: (0)\nswitch costume to (LEVEL)\n\nwhen flag clicked\nshow\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n@Player\n\nwhen flag clicked\nshow\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    Reset\n    repeat until <(EXIT) > []>\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [die]> then\nend\n\nwhen I receive [tick v]\nTick\n\ndefine Tick\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(in air) < [4]>> then\n    set [yv v] to [12]\nend\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [xv v] by (-2)\n    point in direction (-90)\nelse\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [xv v] by (2)\n        point in direction (90)\n    end\nend\nif <(yv) > [-12]> then\n    change [yv v] by (-1)\nend\nMove Y (yv)\nMove X (xv)\nset [xv v] to ((xv) * (.8))\nif <touching (danger v)?> then\n    set [exit v] to [die]\nend\nif <(x position) > [230]> then\n    set [exit v] to [win]\nend\n\ndefine Reset\ngo to x: (-200) y: (-75)\npoint in direction (90)\nset [exit v] to []\n\ndefine Move Y (y)\nchange [in air v] by (1)\nchange y by (y)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        if <(yv) > [0]> then\n            change y by (-1)\n        else\n            change y by (1)\n        end\n    end\n    set [yv v] to [0]\n    change y by (-5)\n    if <touching (level v)?> then\n        set [in air v] to [0]\n    end\n    change y by (5)\nend\n\ndefine Move X (x)\nchange x by (x)\nif <touching (level v)?> then\n    repeat (10)\n        change y by (1)\n        if <not <touching (level v)?>> then\n            stop [this script v]\n        end\n    end\n    change y by (-10)\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <(x) > [0]> then\n            set [xv v] to [-16]\n        else\n            set [xv v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [xv v] to [0]\n    end\n    set [n v] to [0]\n    repeat until <<not <touching (level v)?>> or <(n) = [50]>>\n        if <(x) > [0]> then\n            change x by (-1)\n        else\n            change x by (1)\n        end\n        change [n v] by (1)\n    end\nend\n\nwhen flag clicked\nshow\n\n
Midnight || A Mobile Friendly Platformer


@Stage\n\n@Sprite1\n\nwhen [r v] key pressed\ngo to x: (-196) y: (-17)\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nhide\nwait (1.5) seconds\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 (#252118)?> then\n        change y by (1)\n    end\n    if <touching color (#252118)?> then\n        change y by (1)\n    end\n    if <touching color (#252118)?> then\n        change y by (1)\n    end\n    if <touching color (#252118)?> then\n        change y by (1)\n    end\n    if <touching color (#252118)?> 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)> 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 (#252118)?> 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 (#252118)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff8383)?> then\n        go to x: (-196) y: (-17)\n    end\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-196) y: (-17)\n\n@Sprite2\n\nwhen I receive [next level v]\nnext costume\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    play sound [Jazzy Frenchy v] until done\nend\n\n
Long!!! platformer! 長編!! プラットフォーマー! #All #games

Instructions: https://scratch.mit.edu/projects/791697224\n新作音ゲー！　みて！\n\n【シリーズ作】\nPlatformer Minecraft Quiz!! 【1】⇩\nhttps://scratch.mit.edu/projects/791453235\n\nPlatformer Minecraft Quiz!! 【3】⇩\nhttps://scratch.mit.edu/projects/793254183\n\nPlatformer Minecraft Quiz!! 【4】⇩\nhttps://scratch.mit.edu/projects/794509823\n\nプラットフォーマーmusicクイズ⇩\nhttps://scratch.mit.edu/projects/623183608\n\nプラットフォーマー雑学クイズ⇩\nhttps://scratch.mit.edu/projects/662290105\n\n【連絡】\n傾向1Ｐに載れば続編を作ります！\n♡と☆お願いします！\nフォローもお願いしますm(_ _"m)\nあなたのフォローが力になります、、\n\n【操作方法】\n矢印キーで操作(PC)\n左下の円で操作(モバイル)\n\n【How to play】\nOperate with arrow keys (PC)\nOperate with the lower left circle (mobile)

@Stage\n\n@Sprite2\n\nwhen I receive [next level v]\nnext costume\n\n@Sprite1\n\nwhen I receive [next level v]\ngo to x: (-196) y: (-17)\n\nwhen [r v] key pressed\ngo to x: (-196) y: (-17)\n\nwhen I receive [end v]\nhide\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 (#5e4221)?> then\n        change y by (1)\n    end\n    if <touching color (#5e4221)?> then\n        change y by (1)\n    end\n    if <touching color (#5e4221)?> then\n        change y by (1)\n    end\n    if <touching color (#5e4221)?> then\n        change y by (1)\n    end\n    if <touching color (#5e4221)?> 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 (#5e4221)?> 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 (#5e4221)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff5757)?> then\n        go to x: (-196) y: (-17)\n    end\n    if <<(x position) = [240]> or <(x position) > [240]>> then\n        broadcast (next level v)\n    end\n    if <touching color (#ffff00)?> then\n        set [y v] to [20]\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n