Bubble Mobile Platformer #nhk_for_school


@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nshow variable [damage v]\nshow variable [language v]\nshow variable [time attack v]\n\nwhen I receive [next stage v]\nnext backdrop\nwait (0.2) seconds\n\nwhen I receive [game over v]\nswitch backdrop to (ゲームオーバー v)\nhide variable [damage v]\nhide variable [language v]\nhide variable [time attack v]\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [12]> then\n        broadcast (FINISH!! v)\n    end\nend\n\nwhen I receive [finish!! v]\nhide variable [damage v]\nhide variable [language v]\nforever\n    set [damage v] to [10000000000]\nend\n\nswitch backdrop to (ゲームオーバー v)\nhide variable [damage v]\nhide variable [language v]\n\n@シャボン玉\n\ndefine (x) (y) (%) ()\ngo to x: (x) y: (y)\nset size to (%) %\nif <() = [1]> then\n    show\nelse\n    hide\nend\n\ndefine x\nset [x v] to [0]\nforever\n    change x by (x)\nend\n\ndefine y\nset [y v] to [0]\nforever\n    change y by (y)\nend\n\ndefine ←→\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <(→) = [1]>> then\n        angle [90]\n        set [x v] to [2.15]\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <(←) = [1]>> then\n        angle [-90]\n        set [x v] to [-2.15]\n    end\n    if <touching color (#ffffff)?> then\n        set [x v] to ((x) * (0.975))\n    else\n        set [x v] to ((x) * (0.875))\n    end\n    change x by (x)\nend\n\ndefine angle (°)\nset rotation style [left-right v]\npoint in direction (°)\n\ndefine always ↓\nforever\n    if <not <touching color (#00c9ff)?>> then\n        change [y v] by (-0.125)\n    end\nend\n\ndefine ↓ (→) ー\nforever\n    if <touching color (#00c9ff)?> then\n        set [y v] to [0]\n        play sound [Glug v] until done\n    end\n    wait until <not <touching color (#00c9ff)?>>\nend\n\ndefine ↑ (Jump)\nforever\n    if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <(↑) = [1]>>> and <touching color (#00c9ff)?>> then\n        set [y v] to [3.75]\n        play sound [_sound_various_mp3_bubble-burst1 v] until done\n    end\nend\n\nwhen flag clicked\n[-200] [-50] [10] [1]\n\nwhen flag clicked\n←→\n\nwhen flag clicked\n↑ (Jump)\n\nwhen flag clicked\n↓ (→) ー\n\nwhen flag clicked\nalways ↓\n\nwhen flag clicked\nangle [90]\n\nwhen flag clicked\nx\n\nwhen flag clicked\ny\n\ndefine damage\ndelete all of [damage v]\nforever\n    if <touching color (#00c9ff)?> then\n        reset timer\n    end\n    if <touching (spikes v)?> then\n        repeat (33)\n            add [] to [damage v]\n        end\n    end\n    if <(timer) > [1]> then\n        add [] to [damage v]\n        wait (0.085) seconds\n        if <(timer) > [2]> then\n            add [] to [damage v]\n            wait (0.09) seconds\n            if <(timer) > [3]> then\n                add [] to [damage v]\n                wait (0.095) seconds\n                if <(timer) > [4]> then\n                    add [] to [damage v]\n                    wait (0.1) seconds\n                    if <(timer) > [5]> then\n                        add [] to [damage v]\n                        wait (0.105) seconds\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\ndamage\n\ndefine damage 2\nset [damage v] to [100]\nforever\n    wait (1) seconds\n    change [damage v] by ((length of [damage v]) * ((-1) * (0.2)))\n    delete all of [damage v]\nend\n\nwhen flag clicked\ndamage 2\n\ndefine Goal or Game over\nforever\n    if <touching (goal v)?> then\n        broadcast (next stage v)\n        [-200] [-50] [10] [1]\n        angle [90]\n        wait (0.1) seconds\n    end\n    if <<<(damage) < [0]> or <(damage) = [0]>> and <touching color (#00c9ff)?>> then\n        broadcast (Game over v)\n        wait (0.1) seconds\n    end\n    if <<touching (spikes v)?> or <touching (hidden trap v)?>> then\n        [-200] [-50] [10] [1]\n        angle [90]\n        play sound [Water Drop v] until done\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nGoal or Game over\n\ndefine ↓ (→) ー 2\nforever\n    if <touching color (#00c9ff)?> then\n        repeat (5)\n            next costume\n            wait (0.01) seconds\n            next costume\n            wait (0.01) seconds\n        end\n        next costume\n    else\n        switch costume to (シャボン玉 v)\n    end\n    wait until <not <touching color (#00c9ff)?>>\nend\n\nwhen flag clicked\n↓ (→) ー 2\n\nwhen I receive [reset timer v]\nset [timer v] to [0]\n\ndefine stop\nforever\n    if <touching (壁 v)?> then\n        if <<(backdrop [number v]) = [5]> or <(backdrop [number v]) = [6]>> then\n            if <(x position) < [125]> then\n                set x to (95)\n            end\n            if <(x position) > [125]> then\n                set x to (155)\n            end\n        end\n        if <(backdrop [number v]) = [9]> then\n            if <(x position) < [178]> then\n                set x to (149)\n            end\n            if <(x position) > [178]> then\n                set x to (210)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nstop\n\nwhen I receive [retry v]\nset [y v] to [0]\n[-200] [-50] [10] [1]\nangle [90]\nwait (0.1) seconds\n\ndefine sometimes ↑\nforever\n    if <touching (? v)?> then\n        set [y v] to [3]\n    end\n    wait until <not <touching (? v)?>>\nend\n\ndefine touch the jump pad\nforever\n    if <touching (the jump pad v)?> then\n        set [y v] to [7.5]\n        play sound [smoke1 v] until done\n    end\nend\n\nwhen flag clicked\ntouch the jump pad\n\nwhen flag clicked\nsometimes ↑\n\ndefine hidden trap… (2)\nforever\n    if <touching (hidden trap 2 v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        [-125] [-110] [10] [1]\n    end\nend\n\nwhen flag clicked\nhidden trap… (2)\n\ndefine sound effects\nforever\n    if <(volume) = [100]> then\n        set volume to (100) %\n    else\n        set volume to (0) %\n    end\nend\n\nwhen flag clicked\nsound effects\n\ndefine recover damage level\ndelete all of [recover v]\nforever\n    if <not <touching color (#ffffff)?>> then\n        broadcast (reset timer v)\n    else\n        set [y v] to [0]\n        wait (0.1) seconds\n    end\n    if <(timer) > [1.7]> then\n        add [] to [recover v]\n        wait (0.095) seconds\n        if <(timer) > [3]> then\n            add [] to [recover v]\n            wait (0.15) seconds\n            if <(timer) > [4.2]> then\n                add [] to [recover v]\n                wait (0.2) seconds\n            end\n        end\n    end\nend\n\nwhen I receive [next stage v]\nset [y v] to [0]\n[-200] [-50] [10] [1]\nangle [90]\nwait (0.1) seconds\n\nwhen flag clicked\nrecover damage level\n\ndefine recover2\nforever\n    wait (0.5) seconds\n    change [damage v] by ((length of [recover v]) * ((1) * (0.2)))\n    delete all of [recover v]\nend\n\nwhen flag clicked\nrecover2\n\ndefine information\nforever\n    if <(backdrop [number v]) = [8]> then\n        if <<(x position) < [-156]> and <(x position) > [-201]>> then\n            if <(language) = [English]> then\n                say [If you are on slippery soap and press space key \(or triangle button\), you can jump.] for (0.01) seconds\n            else\n                say [石けんの上にいて、スペースキー \(又は三角ボタン\) を押すと、ジャンプできます。] for (0.01) seconds\n            end\n        end\n    end\nend\n\nwhen flag clicked\ninformation\n\nwhen I receive [game over v]\nforever\n    [0] [100] [25] [1]\n    angle [90]\nend\n\nwhen flag clicked\ntimer\n\ndefine timer\nforever\n    change [timer v] by (0.1)\n    wait (0.1) seconds\nend\n\ndefine No jump\nforever\n    if <<touching color (#ffffff)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nNo jump\n\ndefine slippery jump…\nforever\n    if <<touching color (#ffffff)?> and <<key (space v) pressed?> or <(\(↑\)) = [1]>>> then\n        set [y v] to [3.75]\n        play sound [_sound_various_mp3_bubble-burst1 v] until done\n    end\nend\n\nwhen flag clicked\nslippery jump…\n\nwhen I receive [finish!! v]\nforever\n    [0] [125] [25] [1]\n    angle [90]\nend\n\n[0] [125] [25] [1]\nangle [90]\n\ndefine time attack\nshow variable [time attack v]\nset [time attack v] to [0]\nwait (1) seconds\nforever\n    if <(backdrop [number v]) = [12]> then\n    else\n        change [time attack v] by (1)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\ntime attack\n\n@music and volume\n\nwhen flag clicked\nforever\n    play sound [シャボン玉 v] until done\nend\n\nwhen flag clicked\nset [click v] to [1]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        change [click v] by (1)\n        wait (0.175) seconds\n    end\n    if <((click) mod (2)) = [0]> then\n        switch costume to (ボリュームoffアイコン \(1\) v)\n    else\n        switch costume to (ボリュームアイコン　3 \(1\) v)\n    end\n    if <(costume [number v]) = [2]> then\n        set [volume v] to [0]\n    else\n        set [volume v] to [100]\n    end\nend\n\nwhen flag clicked\ngo to x: (-150) y: (160)\nshow\n\nwhen flag clicked\nforever\n    if <(volume) = [100]> then\n        set volume to (100) %\n    else\n        set volume to (0) %\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@menu\n\nwhen flag clicked\nset [click2 v] to [0]\nset [menu v] to [0]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        change [click2 v] by (1)\n        wait (0.175) seconds\n    end\n    if <((click2) mod (2)) = [0]> then\n        set [menu v] to [0]\n    else\n        set [menu v] to [1]\n    end\nend\n\nwhen flag clicked\ngo to x: (-100) y: (160)\nshow\n\nwhen flag clicked\nswitch costume to (メニューの無料アイコン4 v)\nset size to (60) %\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@iconmonstr-language-5\n\nwhen flag clicked\nset [click3 v] to [0]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        change [click3 v] by (1)\n        wait (0.175) seconds\n    end\n    if <((click3) mod (2)) = [0]> then\n        set [language v] to [English]\n    else\n        set [language v] to [日本語]\n    end\nend\n\nwhen flag clicked\ngo to x: (-210) y: (120)\nshow\n\nwhen flag clicked\nswitch costume to (メニューの無料アイコン4 v)\nset size to (125) %\nset [language v] to [English]\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@goal\n\nwhen flag clicked\nset size to (75) %\nshow\nforever\n    if <(backdrop [number v]) = [10]> then\n        go to x: (220) y: (-98)\n    else\n        go to x: (206) y: (-98)\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@Game over\n\nwhen flag clicked\nhide\n\nwhen I receive [game over v]\ngo to x: (0) y: (-50)\nshow\nforever\n    if <(language) = [English]> then\n        switch costume to (コスチュームe v)\n    else\n        switch costume to (コスチュームj v)\n    end\nend\n\nwhen I receive [finish!! v]\nhide\n\n@Finish!!\n\nwhen flag clicked\nhide\n\nwhen I receive [finish!! v]\ngo to x: (0) y: (0)\nshow\nforever\n    if <(language) = [English]> then\n        set size to (100) %\n        switch costume to (コスチュームe v)\n    else\n        set size to (60) %\n        switch costume to (コスチュームj v)\n    end\nend\n\nwhen I receive [game over v]\nhide\n\n@spikes\n\nwhen flag clicked\nset size to (90) %\nhide\ndelete this clone\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (とげ v)\nforever\n    if <(backdrop [number v]) = [3]> then\n        x: [0] y: -110\n        show\n    end\n    if <(backdrop [number v]) = [4]> then\n        x: [0] y: -110\n        switch costume to (とげ2 v)\n        show\n    end\n    if <<(backdrop [number v]) = [5]> or <(backdrop [number v]) = [6]>> then\n        x: [-75] y: -110\n        switch costume to (とげ v)\n        show\n    end\n    if <(backdrop [number v]) = [7]> then\n        x: [0] y: -110\n        switch costume to (とげ3 v)\n        show\n    end\n    if <(backdrop [number v]) = [8]> then\n        x: [0] y: -110\n        switch costume to (とげ2 v)\n        show\n    end\n    if <(backdrop [number v]) = [9]> then\n        x: -11 y: -17\n        switch costume to (とげ4 v)\n        show\n    end\n    if <(backdrop [number v]) = [10]> then\n        x: 125 y: 20\n        switch costume to (とげ5 v)\n        show\n    end\n    if <(backdrop [number v]) = [11]> then\n        hide\n    end\nend\n\ndefine x: () y: -110\ngo to x: () y: (-110)\n\nwhen I receive [game over v]\nhide\n\ndefine x: -11 y: -17\ngo to x: (-11) y: (-17)\n\ndefine x: 125 y: 20\ngo to x: (125) y: (20)\n\nwhen I receive [finish!! v]\nhide\n\nswitch costume to (とげ v)\npoint in direction (90)\nturn right (30) degrees\nshow\n\n@壁\n\nwhen flag clicked\ngo to x: (125) y: (0)\nset size to (75) %\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    if <<(backdrop [number v]) = [2]> or <<(backdrop [number v]) = [3]> or <(backdrop [number v]) = [4]>>> then\n        hide\n    end\n    if <<(backdrop [number v]) = [5]> or <(backdrop [number v]) = [6]>> then\n        show\n    end\n    if <<(backdrop [number v]) = [7]> or <(backdrop [number v]) = [8]>> then\n        hide\n    end\n    if <(backdrop [number v]) = [9]> then\n        go to x: (180) y: (0)\n        show\n    end\n    if <(backdrop [number v]) = [10]> then\n        hide\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@矢印ボタン　左1\n\nwhen flag clicked\nshow\ngo to x: (170) y: (-160)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [← v] to [1]\n    else\n        set [← v] to [0]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@矢印ボタン　右1\n\nwhen flag clicked\nshow\ngo to x: (210) y: (-160)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [→ v] to [1]\n    else\n        set [→ v] to [0]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@矢印ボタン　上1\n\nwhen flag clicked\nshow\ngo to x: (-210) y: (-160)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [↑ v] to [1]\n    else\n        set [↑ v] to [0]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@▲ボタン\n\nwhen flag clicked\npoint in direction (90)\nshow\ngo to x: (-160) y: (-165)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [\(↑\) v] to [1]\n    else\n        set [\(↑\) v] to [0]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@information\n\nwhen flag clicked\nswitch costume to (コスチュームe1 v)\ngo to x: (0) y: (35)\nshow\nforever\n    if <(language) = [English]> then\n        if <(backdrop [number v]) = [2]> then\n            switch costume to (コスチュームe1 v)\n        end\n        if <(backdrop [number v]) = [3]> then\n            switch costume to (コスチュームe2 v)\n        end\n        if <(backdrop [number v]) = [4]> then\n            switch costume to (コスチュームe3 v)\n        end\n        if <(backdrop [number v]) = [5]> then\n            switch costume to (コスチュームe4 v)\n        end\n        if <(backdrop [number v]) = [6]> then\n            switch costume to (コスチュームe5 v)\n        end\n        if <(backdrop [number v]) = [7]> then\n            switch costume to (コスチュームe6 v)\n        end\n        if <(backdrop [number v]) = [8]> then\n            switch costume to (コスチュームe7 v)\n        end\n        if <(backdrop [number v]) = [9]> then\n            go to x: (0) y: (100)\n            switch costume to (コスチュームe8 v)\n        end\n        if <(backdrop [number v]) = [10]> then\n            go to x: (-60) y: (60)\n            switch costume to (コスチュームe9 v)\n        end\n        if <(backdrop [number v]) = [11]> then\n            go to x: (0) y: (0)\n            switch costume to (コスチュームe10 v)\n        end\n    else\n        if <(backdrop [number v]) = [2]> then\n            switch costume to (コスチュームj1 v)\n        end\n        if <(backdrop [number v]) = [3]> then\n            switch costume to (コスチュームj2 v)\n        end\n        if <(backdrop [number v]) = [4]> then\n            switch costume to (コスチュームj3 v)\n        end\n        if <(backdrop [number v]) = [5]> then\n            switch costume to (コスチュームj4 v)\n        end\n        if <(backdrop [number v]) = [6]> then\n            switch costume to (コスチュームj5 v)\n        end\n        if <(backdrop [number v]) = [7]> then\n            switch costume to (コスチュームj6 v)\n        end\n        if <(backdrop [number v]) = [8]> then\n            switch costume to (コスチュームj7 v)\n        end\n        if <(backdrop [number v]) = [9]> then\n            go to x: (0) y: (100)\n            switch costume to (コスチュームj8 v)\n        end\n        if <(backdrop [number v]) = [10]> then\n            go to x: (-60) y: (60)\n            switch costume to (コスチュームj9 v)\n        end\n        if <(backdrop [number v]) = [11]> then\n            go to x: (0) y: (0)\n            switch costume to (コスチュームj10 v)\n        end\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\ngo to x: (0) y: (-50)\n\n@早送りボタン\n\nwhen flag clicked\nforever\n    if <(menu) = [1]> then\n        set size to (55) %\n        go to x: (-55) y: (160)\n        show\n    else\n        go to x: (10000) y: (10000)\n        set size to (0) %\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (next stage v)\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@リピートボタンアイコン1\n\nwhen flag clicked\nforever\n    if <(menu) = [1]> then\n        set size to (55) %\n        go to x: (-10) y: (160)\n        show\n    else\n        go to x: (10000) y: (10000)\n        set size to (0) %\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (Retry v)\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@?\n\nwhen flag clicked\ngo to x: (0) y: (-140)\nset size to (125) %\nshow\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [finish!! v]\nhide\n\n@The jump pad\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (コスチューム1 v)\nforever\n    if <<(backdrop [number v]) = [2]> or <<(backdrop [number v]) = [3]> or <(backdrop [number v]) = [4]>>> then\n        go to x: (1000000) y: (-1000000)\n        set size to (0) %\n        hide\n    end\n    if <<(backdrop [number v]) = [5]> or <(backdrop [number v]) = [6]>> then\n        go to x: (85) y: (-105)\n        set size to (100) %\n        show\n    end\n    if <(backdrop [number v]) = [7]> then\n        go to x: (1000000) y: (-1000000)\n        set size to (0) %\n        hide\n    end\n    if <(backdrop [number v]) = [9]> then\n        go to x: (145) y: (-105)\n        set size to (100) %\n        show\n    end\n    if <(backdrop [number v]) = [10]> then\n        go to x: (1000000) y: (-1000000)\n        set size to (0) %\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (シャボン玉 v)?> then\n        repeat (6)\n            next costume\n            wait (0.075) seconds\n        end\n        switch costume to (コスチューム1 v)\n    end\nend\n\nwhen I receive [game over v]\nhide\n\ngo to x: (145) y: (-105)\nset size to (100) %\nshow\n\nwhen I receive [finish!! v]\nhide\n\nswitch costume to (コスチューム1 v)\npoint in direction (90)\nturn left (15) degrees\nset size to (100) %\nshow\n\n@hidden trap\n\nwhen flag clicked\ngo to x: (-106) y: (-125)\nforever\n    if <(backdrop [number v]) = [6]> then\n        show\n    else\n        hide\n    end\nend\n\n@hidden trap 2\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nset size to (150) %\nforever\n    if <(backdrop [number v]) = [6]> then\n        point in direction (90)\n        go to x: (175) y: (-50)\n        show\n    else\n        if <(backdrop [number v]) = [11]> then\n            switch costume to (コスチューム2 v)\n            point in direction (0)\n            go to x: (165) y: (-150)\n            show\n        else\n            hide\n        end\n    end\nend\n\n@❤️\n\nwhen flag clicked\npoint in direction (90)\nrepeat (15)\n    turn right (1) degrees\n    wait (0.01) seconds\nend\nforever\n    repeat (30)\n        turn left (1) degrees\n        wait (0.01) seconds\n    end\n    repeat (30)\n        turn right (1) degrees\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\ngo to x: (-180) y: (-15)\nforever\n    if <(backdrop [number v]) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n@⭐️\n\nwhen flag clicked\npoint in direction (90)\nrepeat (15)\n    turn right (1) degrees\n    wait (0.01) seconds\nend\nforever\n    repeat (30)\n        turn left (1) degrees\n        wait (0.01) seconds\n    end\n    repeat (30)\n        turn right (1) degrees\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\ngo to x: (180) y: (-15)\nforever\n    if <(backdrop [number v]) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n@🚶🏻‍♂️Follow\n\nwhen flag clicked\npoint in direction (90)\nrepeat (15)\n    turn right (1) degrees\n    wait (0.01) seconds\nend\nforever\n    repeat (30)\n        turn left (1) degrees\n        wait (0.01) seconds\n    end\n    repeat (30)\n        turn right (1) degrees\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nset size to (60) %\ngo to x: (0) y: (-150)\nforever\n    if <(backdrop [number v]) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n