Spring Platformer!/春のプラットフォーマー！vr.0.4


@Stage\n\nwhen flag clicked\nhide variable [time v]\nforever\n    play sound [Unlimited v] until done\nend\n\nwhen I receive [start v]\nreset timer\n\nwhen flag clicked\nforever\n    if <(volume) = [ON]> then\n        set volume to (100) %\n    else\n        set volume to () %\n    end\nend\n\n@BLANCK\n\n@プレイヤー\n\ndefine 動作\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>>> then\n    change [x v] by (-1)\n    point in direction (-90)\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>>> then\n    change [x v] by (1)\n    point in direction (90)\nend\nset [x v] to ((x) * (0.89))\nchange x by (x)\nif <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 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 ((x) * (-1))\n                                    change y by (-8)\n                                    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>>> then\n                                        if <(x) > [0]> then\n                                            set [x v] to [-7]\n                                        else\n                                            set [x v] to [7]\n                                        end\n                                        set [y v] to [10]\n                                    else\n                                        set [x v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (1)\nend\nchange y by (-1)\nif <touching (ステージ v)?> then\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>>> then\n        set [y v] to [12]\n        start sound [jump v]\n    end\nend\nif <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <[0] > (mouse y)>>>> then\n    switch costume to ((スキン番号) + (4))\nelse\n    switch costume to (スキン番号)\nend\nchange y by (1)\nchange [y v] by (-1)\nchange y by (y)\nif <touching (ステージ v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nif <(x position) > [239]> then\n    NEXT\nend\nif <(y position) < [-179]> then\n    リスポーン\nend\nif <touching (障害物 v)?> then\n    リスポーン\nend\n\nwhen flag clicked\nhide variable [time v]\nreset timer\nset size to (85) %\nhide\ngo to x: (-200) y: (70)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nset [ステージ v] to [1]\n\nwhen I receive [start v]\nswitch costume to (スキン番号)\nreset timer\nshow\nforever\n    動作\nend\n\ndefine NEXT\nbroadcast (NEXT v)\nchange [ステージ v] by (1)\nif <<<(ステージ) = [11]> or <(ステージ) = [12]>> or <(ステージ) = [13]>> then\n    show\n    go to x: (-200) y: (0)\nelse\n    show\n    go to x: (-200) y: (130)\n    set [x v] to [0]\n    set [y v] to [0]\nend\n\ndefine リスポーン\nset [x v] to [0]\nset [y v] to [0]\nif <<(ステージ) = [11]> or <(ステージ) = [12]>> then\n    show\n    go to x: (-200) y: (0)\nelse\n    show\n    go to x: (-200) y: (130)\nend\n\nwhen flag clicked\nrepeat until <(ステージ) = [13]>\n    go to [front v] layer\n    set [time v] to (timer)\nend\n\nwhen I receive [ありがとう v]\nhide\n\nwhen flag clicked\nforever\n    if <(volume) = [ON]> then\n        set volume to (100) %\n    else\n        set volume to (0) %\n    end\nend\n\n@ステージ\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\n@障害物\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (ステージ)\nend\n\n@背景\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\n@スプライト2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\ngo to [back v] layer\nforever\n    wait (pick random (2.0) to (6.0)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nset [雲x v] to (pick random (-1.0) to (-3.0))\ngo to x: (296) y: (pick random (110) to (150))\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (pick random (5) to (10))\nshow\nrepeat until <(x position) < [-270]>\n    change x by (雲x)\nend\ndelete this clone\n\n@スプライト1\n\nwhen flag clicked\nset [桜x v] to [0]\nset [桜y v] to [0]\ngo to x: (0) y: (0)\nhide\nforever\n    wait (0.1) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset size to (pick random (70) to (100)) %\npoint in direction (pick random (90) to (150))\nshow\ngo to x: (pick random (-240) to (240)) y: (pick random (240) to (200))\nset [ghost v] effect to (pick random (10) to (45))\nset [桜x v] to (pick random (-1.0) to (1.0))\nset [桜y v] to (pick random (-1.0) to (-3.0))\nrepeat until <<touching (ステージ v)?> or <(y position) < [-178]>>\n    change x by (桜x)\n    change y by (桜y)\nend\ndelete this clone\n\n@初期ホーム\n\nwhen flag clicked\nset [ホーム？ v] to [1]\nshow\nset [スキン番号 v] to [1]\ngo to x: (-110) y: (0)\npoint in direction (90)\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nforever\n    if <<touching (mouse-pointer v)?> and <<mouse down?> and <(costume [number v]) = [1]>>> then\n        if <not <(スキン番号) = [1]>> then\n            change [スキン番号 v] by (-1)\n            wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        else\n            if <(スキン番号) = [1]> then\n                set [スキン番号 v] to [4]\n                wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nshow\ngo to x: (110) y: (0)\nswitch costume to (コスチューム2 v)\nforever\n    if <<touching (mouse-pointer v)?> and <<mouse down?> and <(costume [number v]) = [2]>>> then\n        if <not <(スキン番号) = [4]>> then\n            change [スキン番号 v] by (1)\n            wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        else\n            if <(スキン番号) = [4]> then\n                set [スキン番号 v] to [1]\n                wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\nset [ホーム？ v] to [0]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@ホームプレイヤー\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset size to (200) %\nforever\n    switch costume to (スキン番号)\nend\n\nwhen I receive [start v]\nhide\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (200) y: (160)\nset [volume v] to [ON]\nset volume to (100) %\nswitch costume to (on v)\nset size to (60) %\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(volume) = [ON]> then\n            set volume to (0) %\n            set [volume v] to [OFF]\n            switch costume to (off v)\n            wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        else\n            if <(volume) = [OFF]> then\n                set volume to (100) %\n                set [volume v] to [ON]\n                switch costume to (on v)\n                wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n            end\n        end\n    end\nend\n\n@ハートと星けんち\n\nwhen flag clicked\nset [❤＆★ v] to [0]\nswitch costume to (❤ v)\ncreate clone of (_myself_ v)\nset [❤ v] to [0]\nset [★ v] to [0]\nset [❤＆★ v] to [0]\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <(costume [number v]) = [1]>> then\n        set [❤ v] to [1]\n        broadcast (❤＆★ v)\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nswitch costume to (★ v)\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <(costume [number v]) = [2]>> then\n        set [★ v] to [1]\n        broadcast (❤＆★ v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(❤＆★) = [2]> then\n    end\nend\n\nwhen flag clicked\nforever\n    if <((❤) + (★)) = [2]> then\n        broadcast (❤＆☆ありがとう！ v)\n        stop [this script v]\n    else\n    end\nend\n\nwhen flag clicked\nforever\n    set [❤＆★ v] to ((❤) + (★))\nend\n\n@×\n\nwhen flag clicked\nhide\nforever\n    if <<(ホーム？) = [1]> and <<(スキン番号) = [4]> and <not <(❤＆★) = [2]>>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [start v]\nhide\n\n@Button3\n\nwhen flag clicked\ngo to x: (200) y: (-156)\nset [time表記 v] to [ON]\nshow\nswitch costume to (on v)\nforever\n    go to x: (200) y: (-156)\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(Time表記) = [ON]>> then\n        set [time表記 v] to [OFF]\n        switch costume to (off v)\n        hide variable [time v]\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n    else\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(Time表記) = [OFF]>> then\n            set [time表記 v] to [ON]\n            switch costume to (on v)\n            show variable [time v]\n            wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        end\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Time表記) = [ON]> then\n        show variable [time v]\n    else\n        hide variable [time v]\n    end\nend\n\n@サムネ\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@start\n\nwhen flag clicked\ngo to x: (0) y: (-120)\nshow\nswitch costume to (コスチューム1 v)\nset size to (100) %\ngo to [front v] layer\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(スキン番号) = [4]> then\n            if <(❤＆★) = [2]> then\n                broadcast (start v)\n                hide\n            else\n                if <<(スキン番号) = [4]> and <not <(❤＆★) = [2]>>> then\n                    start sound [Oops v]\n                end\n            end\n        else\n            broadcast (start v)\n            hide\n        end\n    end\nend\n\n@ありがとう！\n\nwhen flag clicked\ngo to x: (0) y: (180)\nset [ghost v] effect to (0)\nhide\nset size to (120) %\n\nwhen I receive [❤＆☆ありがとう！ v]\nshow\nrepeat (15)\n    change y by (-10)\nend\nrepeat (1)\n    change y by (-5)\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [❤＆☆ありがとう！ v]\nwait (2) seconds\nhide\n\n