#Platformer l Cat adventure!!

Instructions: ☆☆☆☆☆☆☆How to play / 操作方法☆☆☆☆☆☆☆\nuse arrows or tap to play!!\n矢印キーか、タップで操作しよう!!\n☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆\nCat adventure!!\nI've got 550 followers!! Thank you !!\nLet'sGO!!\n\nCatを操作して、冒険しよう！\nあと、フォロワー550人突破 ! ありがとう!!\nいってらっしゃい!!\n★と❤も忘れずにね!!(\n☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆

@Stage\n\nwhen flag clicked\nswitch costume to (コスチューム2 v)\nforever\n    play sound [Goodbye v] until done\nend\n\nwhen I receive [jungle v]\nwait (0.8) seconds\nstop [other scripts in sprite v]\nset [color v] effect to (0)\nswitch backdrop to (kaztdscf7026_tp_v v)\nforever\n    play sound [TheFatRat+-+Unity v] until done\nend\n\nwhen I receive [sea v]\nwait (0.8) seconds\nstop [other scripts in sprite v]\nset [color v] effect to (0)\nswitch backdrop to (背景1 v)\nforever\n    play sound [TheFatRat+-+Unity v] until done\nend\n\nwhen I receive [sky v]\nwait (0.8) seconds\nstop [other scripts in sprite v]\nset [color v] effect to (0)\nswitch backdrop to (sky v)\nforever\n    play sound [TheFatRat+-+Unity v] until done\nend\n\nwhen flag clicked\nforever\n    change [color v] effect by (2)\nend\n\n@Player\n\ndefine 動作\nchange [yの力 v] by (-1)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [0]> and <mouse down?>>>> then\n    point in direction (90)\n    next costume\n    change [xの力 v] by (1)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<[0] > (mouse x)> and <mouse down?>>>> then\n    point in direction (-90)\n    next costume\n    change [xの力 v] by (-1)\nend\nset [xの力 v] to ((xの力) * (0.88))\nchange x by (xの力)\nif <touching color (#ff0000)?> then\n    初期位置\nend\nrepeat (6)\n    if <touching (ステージ v)?> then\n        change y by (1)\n    end\nend\nif <touching (ステージ v)?> then\n    change y by (-6)\n    位置補正x (() - ((xの力) / ([abs v] of (xの力) ))) ([ceiling v] of ([abs v] of (xの力) ) )\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>> then\n        set [yの力 v] to [12]\n        set [xの力 v] to ((7) - (<(xの力) > [0]> * (14)))\n    else\n        set [xの力 v] to [0]\n    end\nend\nchange y by (yの力)\nif <touching (ステージ v)?> then\n    位置補正y (() - ((yの力) / ([abs v] of (yの力) ))) ([ceiling v] of ([abs v] of (yの力) ) )\nend\nchange y by (-1.1)\nif <<touching (ステージ v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>>> then\n    set [yの力 v] to [15]\nend\nchange y by (1.1)\nif <(Y) < [-400]> then\n    初期位置\nend\n処理\nbroadcast (プログラム2 v)\n\nwhen I receive [プログラム v]\n動作\n\ndefine 処理\nchange [x v] by ((x position) - ((X) - (Camera_x)))\nchange [y v] by ((y position) - (((Y) - (Camera _y)) - (20)))\nchange [camera_x v] by ([floor v] of (((X) - (Camera_x)) * (0.1)) )\nchange [camera _y v] by ([floor v] of (((Y) - (Camera _y)) * (0.2)) )\nset x to ((X) - (Camera_x))\nset y to (((Y) - (Camera _y)) - (20))\n\ndefine 位置補正x (向き) (回数)\nif <(xの力) = [0]> then\n    stop [this script v]\nend\nset [i v] to [0]\nrepeat until <<not <touching (ステージ v)?>> or <(i) = ((回数) + (1))>>\n    change [i v] by (1)\n    change x by (向き)\nend\nchange x by (() - ((向き) * (((回数) + (1)) * <<(i) = ((回数) + (1))> and <touching (ステージ v)?>>)))\n\ndefine 位置補正y (向き) (回数)\nif <(yの力) = [0]> then\n    stop [this script v]\nend\nset [i v] to [0]\nrepeat until <<not <touching (ステージ v)?>> or <(i) = ((回数) + (1))>>\n    change [i v] by (1)\n    change y by (向き)\nend\nchange y by (() - ((向き) * (((回数) + (1)) * <<(i) = ((回数) + (1))> and <touching (ステージ v)?>>)))\nset [yの力 v] to [0]\n\ndefine 初期位置\ngo to x: (0) y: (-20)\nset [xの力 v] to [0]\nset [yの力 v] to [0]\nset [camera_x v] to [-200]\nset [camera _y v] to [0]\nset [x v] to [-200]\nset [y v] to [0]\n\nwhen I receive [jungle v]\nwait (0.8) seconds\nset size to (80) %\ngo to x: (0) y: (-20)\nset rotation style [left-right v]\npoint in direction (90)\nset [xの力 v] to [0]\nset [yの力 v] to [0]\nset [camera_x v] to [-200]\nset [camera _y v] to [-20]\nset [x v] to [-200]\nset [y v] to [-20]\nshow\n\nwhen flag clicked\nhide\n\n@ステージ\n\ndefine ステージ配置 (x座標) (y座標) (ステージ番号)\nswitch costume to (none v)\nset [my_x v] to (x座標)\nset [my_y v] to (y座標)\nswitch costume to ((ステージ番号) + (1))\nset [my_n v] to ((ステージ番号) + (1))\ncreate clone of (_myself_ v)\n\ndefine 移動 (x) (y)\nswitch costume to (none v)\ngo to x: (x) y: (y)\nif <<([abs v] of (x) ) > ([abs v] of (x position) )> or <([abs v] of (y) ) > ([abs v] of (y position) )>> then\n    hide\nelse\n    show\nend\nswitch costume to (My_n)\n\nwhen I receive [プログラム2 v]\nif <(costume [number v]) = [1]> then\n    broadcast (プログラム v)\nelse\n    移動 ((My_x) - (Camera_x)) ((My_y) - (Camera _y))\nend\n\nwhen I start as a clone\nshow\n\nswitch costume to (ステージ番号)\n\nwhen I receive [jungle v]\nwait (0.8) seconds\nステージ配置 [0] [0] [1]\nステージ配置 [480] [0] [2]\nステージ配置 [960] [0] [3]\nステージ配置 [1420] [0] [4]\nステージ配置 [1900] [0] [5]\nステージ配置 [2280] [-300] [6]\nswitch costume to (none v)\nbroadcast (プログラム v)\nhide\n\nwhen flag clicked\nhide\n\n@Player2\n\nwhen I receive [sea v]\nwait (0.8) seconds\nforever\n    if <(動いてよろしい?) = [1]> then\n        set rotation style [left-right v]\n        if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n            next costume\n            change [xv v] by (-0.5)\n            point in direction (-75)\n        end\n        if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n            next costume\n            change [xv v] by (0.5)\n            set rotation style [all around v]\n            point in direction (105)\n        end\n        if <<<mouse down?> and <(mouse y) < (y position)>> or <key (down arrow v) pressed?>> then\n            set [xv v] to ((Xv) * (1.02))\n        end\n        set [xv v] to ((Xv) * (0.95))\n        change x by (Xv)\n        if <touching (地形 v)?> then\n            change y by (1)\n            if <touching (地形 v)?> then\n                change y by (1)\n                if <touching (地形 v)?> then\n                    change y by (1)\n                    if <touching (地形 v)?> then\n                        change y by (1)\n                        if <touching (地形 v)?> then\n                            change y by (1)\n                            if <touching (地形 v)?> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                                if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-4]\n                                    else\n                                        set [xv v] to [4]\n                                    end\n                                    set [yv v] to [7]\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (-1)\n        if <touching (地形 v)?> then\n            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                set [yv v] to [10]\n            end\n        end\n        change y by (1)\n        change [yv v] by (-0.3)\n        change y by (Yv)\n        if <touching (地形 v)?> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        hide variable [xv v]\n        if <(x position) > [230]> then\n            set [動いてよろしい? v] to [0]\n            change [now v] by (1)\n            set [yv v] to [0]\n            set [xv v] to [0]\n            go to x: (-201) y: (-50)\n            broadcast (ステージ切り替え v)\n        end\n    end\nend\n\nwhen I receive [sea v]\nwait (0.8) seconds\nrepeat (10)\n    hide\nend\ngo to [back v] layer\nshow\nset size to (70) %\nswitch costume to (run_r1 v)\nset drag mode [not draggable v]\ngo to x: (-201) y: (-50)\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [now v] to [1]\nset [動いてよろしい? v] to [1]\nforever\n    if <touching (地形2 v)?> then\n        set [動いてよろしい? v] to [0]\n        point in direction (90)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-201) y: (-50)\n        set [動いてよろしい? v] to [1]\n    end\nend\n\nwhen flag clicked\nhide\n\n@地形\n\nwhen I receive [sea v]\nwait (0.8) seconds\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [ステージ切り替え v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [sky v]\nwait (0.8) seconds\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nshow\n\n@地形2\n\nwhen I receive [ステージ切り替え v]\nnext costume\nset [動いてよろしい? v] to [1]\n\nwhen I receive [sea v]\nwait (0.8) seconds\nswitch costume to (1 v)\ngo to x: (0) y: (0)\npoint in direction (90)\nshow\ngo to [back v] layer\nforever\n    set y to (([sin v] of ((timer) * (360)) ) * (10))\nend\n\nwhen flag clicked\nhide\n\n@Sea\n\nwhen I receive [sea v]\nwait (0.8) seconds\nswitch costume to (コスチューム1 v)\nshow\nset [color v] effect to (0)\nstop [other scripts in sprite v]\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (50)\nend\n\nwhen flag clicked\nhide\n\n@泡\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nrepeat (2)\n    repeat (10)\n        change [ghost v] effect by ((5) / (2))\n        if <not <touching (_edge_ v)?>> then\n            change y by (3)\n            change x by (1)\n        end\n    end\n    repeat (10)\n        change [ghost v] effect by ((5) / (2))\n        if <not <touching (_edge_ v)?>> then\n            change y by (3)\n            change x by (-2)\n        end\n    end\nend\ndelete this clone\n\nwhen I receive [sea v]\nwait (0.8) seconds\nhide\nset size to (100) %\nforever\n    wait (0.3) seconds\n    go to (player2 v)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\n\n@地形3\n\nwhen I receive [sea v]\nwait (0.8) seconds\nswitch costume to (1 v)\ngo to x: (0) y: (0)\npoint in direction (90)\nshow\nforever\n    go to [back v] layer\n    set y to (([sin v] of ((timer) * (360)) ) * (10))\n    point in direction ((90) + (([sin v] of ((timer) * (360)) ) * (3)))\nend\n\nwhen flag clicked\nhide\n\n@2\n\nwhen I start as a clone\nset rotation style [left-right v]\nset y to (pick random (-180) to (180))\nset size to (pick random (30) to (80)) %\nswitch costume to (pick random (1) to (6))\ngo to [front v] layer\ngo [backward v] (3) layers\nclear graphic effects\nset [brightness v] effect to (pick random (-10) to (50))\nset [color v] effect to (pick random (-10) to (10))\nshow\nforever\n    wait (5) seconds\n    set [1 v] to (pick random (0) to (5))\nend\n\nwhen I start as a clone\nif <(x position) = [230]> then\n    point in direction (-90)\nelse\n    point in direction (90)\nend\nforever\n    if <not <(メニュー) = [0]>> then\n        change y by (-2)\n    end\n    move ((1) + (pick random (0) to (10))) steps\n    move (走行) steps\n    if <<(x position) > [230]> or <[-230] > (x position)>> then\n        delete this clone\n    end\nend\n\nwhen I receive [sea v]\nhide\nwait (0.8) seconds\nforever\n    create clone of (_myself_ v)\n    set [2 v] to (pick random (1) to (2))\n    if <not <(メニュー) = [0]>> then\n        if <(2) = [2]> then\n            go to x: (-230) y: (-250)\n        else\n            go to x: (230) y: (-250)\n        end\n    else\n        if <(2) = [2]> then\n            go to x: (-230) y: (-80)\n        else\n            go to x: (230) y: (-80)\n        end\n    end\n    wait (pick random (0.0) to (0.5)) seconds\nend\n\nwhen flag clicked\nhide\n\n@1\n\nwhen I receive [次 v]\nswitch costume to ((costume [number v]) + (1))\n\nwhen I receive [前 v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [go v]\nif <(costume [number v]) = [1]> then\n    switch costume to (kaztdscf7026_tp_v v)\n    broadcast (jungle v)\n    wait (0.8) seconds\n    hide\nelse\n    if <(costume [number v]) = [2]> then\n        switch costume to (2 v)\n        broadcast (Sea v)\n        wait (0.8) seconds\n        hide\n    else\n        if <(costume [number v]) = [3]> then\n            switch costume to (sky v)\n            broadcast (sky v)\n            wait (0.8) seconds\n            hide\n        end\n    end\nend\n\nwhen I receive [start v]\nswitch costume to (kaztdscf7026_tp_v v)\ngo to x: (0) y: (-50)\nset size to (50) %\nshow\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [50]>\n            change size by (0.5)\n        end\n    else\n        repeat until <[50] > (size)>\n            change size by (-0.5)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    set y to ((([sin v] of ((timer) * (180)) ) * (10)) - (50))\nend\n\nwhen flag clicked\nhide\n\n@スプライト1\n\nwhen I start as a clone\npoint in direction (-90)\ngo to x: (-160) y: (-50)\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [100]>\n            change size by (3)\n        end\n        if <mouse down?> then\n            broadcast (前 v)\n            start sound [ポップ v]\n            wait until <not <mouse down?>>\n        end\n    else\n        repeat until <[100] > (size)>\n            change size by (-3)\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    set y to ((([sin v] of ((timer) * (180)) ) * (7)) - (50))\nend\n\nwhen I receive [jungle v]\nwait (0.8) seconds\nhide\ndelete this clone\n\nwhen I receive [sea v]\nwait (0.8) seconds\nhide\ndelete this clone\n\nwhen I receive [sky v]\nwait (0.8) seconds\nhide\ndelete this clone\n\nwhen I receive [start v]\ngo to x: (160) y: (-50)\npoint in direction (90)\nset size to (100) %\nshow\ncreate clone of (_myself_ v)\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [100]>\n            change size by (3)\n        end\n        if <mouse down?> then\n            broadcast (次 v)\n            start sound [ポップ v]\n            wait until <not <mouse down?>>\n        end\n    else\n        repeat until <[100] > (size)>\n            change size by (-3)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    set y to ((([sin v] of ((timer) * (180)) ) * (7)) - (50))\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <not <(backdrop [number v]) = [2]>> then\n        hide\n    end\nend\n\n@Cat\n\nwhen flag clicked\nforever\n    set y to ((([sin v] of ((timer) * (180)) ) * (5)) + (100))\nend\n\nwhen I receive [jungle v]\nwait (0.8) seconds\nhide\n\nwhen I receive [sea v]\nwait (0.8) seconds\nhide\n\nwhen I receive [sky v]\nwait (0.8) seconds\nhide\n\nwhen flag clicked\ngo to x: (0) y: (100)\nshow\nset size to (100) %\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [100]>\n            change size by (1)\n        end\n    else\n        repeat until <[100] > (size)>\n            change size by (-1)\n        end\n    end\nend\n\n@スプライト2\n\nwhen I receive [jungle v]\nwait (0.8) seconds\nhide\n\nwhen I receive [sea v]\nwait (0.8) seconds\nhide\n\nwhen I receive [sky v]\nwait (0.8) seconds\nhide\n\nwhen I receive [start v]\ngo to x: (0) y: (-145)\npoint in direction (90)\nset size to (100) %\nshow\nwait (0.5) seconds\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [100]>\n            change size by (3)\n        end\n        if <mouse down?> then\n            broadcast (GO v)\n        end\n    else\n        repeat until <[100] > (size)>\n            change size by (-3)\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    set y to ((([sin v] of ((timer) * (180)) ) * (6)) - (145))\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@3\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (白 v)\ngo to x: (0) y: (-340)\nrepeat (20)\n    change y by (17)\n    change [ghost v] effect by (-5)\nend\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [go v]\ngo to [front v] layer\nswitch costume to (白 v)\nset [ghost v] effect to (100)\ngo to x: (0) y: (340)\nshow\ncreate clone of (_myself_ v)\nrepeat (20)\n    change y by (-17)\n    change [ghost v] effect by (-5)\nend\nbroadcast (メッセージ1 v)\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@4\n\nwhen flag clicked\nhide\nforever\n    go to (random position v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (pick random (100) to (200)) %\nswitch costume to (pick random (1) to (5))\nshow\nclear graphic effects\nset [ghost v] effect to (100)\nset [ああ v] to (pick random (-2) to (2))\nset [brightness v] effect to (pick random (0) to (50))\nrepeat (50)\n    turn right (ああ) degrees\n    change [ghost v] effect by (-1)\n    move (2) steps\nend\nrepeat (50)\n    turn right (ああ) degrees\n    change [ghost v] effect by (1)\n    move (2) steps\nend\ndelete this clone\n\n@Player3\n\nwhen flag clicked\nhide\n\nwhen I receive [sky v]\nwait (0.8) seconds\nset [動いてよろしい? v] to [1]\ngo to [back v] layer\nshow\nset size to (100) %\nswitch costume to (run_r1 v)\nset drag mode [not draggable v]\ngo to x: (-201) y: (-50)\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [now v] to [1]\nforever\n    if <(動いてよろしい?) = [1]> then\n        set rotation style [left-right v]\n        if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n            next costume\n            change [xv v] by (-1)\n            point in direction (-90)\n        end\n        if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n            next costume\n            change [xv v] by (1)\n            point in direction (90)\n        end\n        if <<<mouse down?> and <(mouse y) < (y position)>> or <key (down arrow v) pressed?>> then\n            set [xv v] to ((Xv) * (1.02))\n        end\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <touching (地形 v)?> then\n            change y by (1)\n            if <touching (地形 v)?> then\n                change y by (1)\n                if <touching (地形 v)?> then\n                    change y by (1)\n                    if <touching (地形 v)?> then\n                        change y by (1)\n                        if <touching (地形 v)?> then\n                            change y by (1)\n                            if <touching (地形 v)?> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                                if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-7]\n                                    else\n                                        set [xv v] to [7]\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 y by (-1)\n        if <touching (地形 v)?> then\n            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                set [yv v] to [15]\n            end\n        end\n        change y by (1)\n        if <<touching (ふわふわ v)?> and <(Yv) < [0]>> then\n            set [yv v] to [-1]\n            change y by (-1)\n        else\n            change [yv v] by (-1)\n        end\n        change y by (Yv)\n        if <touching (地形 v)?> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        hide variable [xv v]\n        if <(x position) > [230]> then\n            set [動いてよろしい? v] to [0]\n            broadcast (ステージ切り替え v)\n            change [now v] by (1)\n            set [yv v] to [0]\n            set [xv v] to [0]\n            go to x: (-201) y: (-50)\n            set [動いてよろしい? v] to [1]\n        end\n    end\nend\n\nwhen I receive [sky v]\nwait (0.8) seconds\nforever\n    if <touching (地形4 v)?> then\n        set [動いてよろしい? v] to [0]\n        point in direction (90)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-201) y: (-50)\n        set [動いてよろしい? v] to [1]\n    end\nend\n\n@ふわふわ\n\nwhen I receive [ステージ切り替え v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [sky v]\nwait (0.8) seconds\ngo to [front v] layer\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nshow\n\n@スプライト3\n\nwhen flag clicked\nshow\nset size to (250) %\nforever\n    create clone of (_myself_ v)\n    set x to (0)\n    set y to ((([sin v] of ((timer) * (180)) ) * (30)) - (60))\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [250]>\n            change size by (4)\n        end\n    else\n        repeat until <[250] > (size)>\n            change size by (-4)\n        end\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I start as a clone\nrepeat (10)\n    change x by (-5)\n    change [ghost v] effect by (10)\n    change [color v] effect by (20)\nend\ndelete this clone\n\n@スプライト4\n\nwhen flag clicked\nshow\nset size to (250) %\nforever\n    go to [front v] layer\n    set x to (0)\n    set y to ((([sin v] of ((timer) * (180)) ) * (20)) - (150))\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [250]>\n            change size by (4)\n        end\n        if <mouse down?> then\n            start sound [ポップ v]\n            wait until <not <mouse down?>>\n            broadcast (start v)\n            hide\n        end\n    else\n        repeat until <[250] > (size)>\n            change size by (-4)\n        end\n    end\nend\n\n@地形4\n\nwhen I receive [ステージ切り替え v]\nnext costume\nset [動いてよろしい? v] to [1]\n\nwhen flag clicked\nhide\n\nwhen I receive [sky v]\nwait (0.8) seconds\nswitch costume to (1 v)\ngo to x: (0) y: (0)\npoint in direction (90)\nshow\ngo to [back v] layer\nforever\n    set y to (([sin v] of ((timer) * (360)) ) * (10))\nend\n\n@スプライト5\n\nwhen flag clicked\nhide\n\n