Splatoon3 Platformer

Instructions: 日本語は下\nUsage\nMove with left and right arrow keys\nJump with the up arrow keys\nCrouch with the down arrow keys\nInking a wall will give you a wall kick\nIf you hold down the 2 or 3 key and press the flag...!\n\n使い方\n左、右向き矢印キーで移動、\n上向き矢印キーでジャンプ、\n下向き矢印キーでしゃがむ、\nスペースキーでインクが打てます。\n壁にインクを当てると壁キックができます。\n2または3キーを押しながら旗を押すと…！

@Stage\n\nwhen flag clicked\nset [buki v] to [1]\nif <key (2 v) pressed?> then\n    set [buki v] to [2]\nend\nif <key (3 v) pressed?> then\n    set [buki v] to [3]\nend\nbroadcast (Let's go v)\nset volume to (50) %\nforever\n    play sound [スプラトゥーン３ v] until done\nend\n\nwhen I receive [let's go v]\nshow\ngo to x: (0) y: (0)\nforever\n    if <(stage) = [12]> then\n        switch costume to (背景2 v)\n    else\n        switch costume to (背景1 v)\n    end\nend\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nstop all sounds\nhide\n\n@Player\n\nwhen I receive [let's go v]\npoint in direction (90)\nshow\n初期位置\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [60]> and <mouse down?>>>> then\n        point in direction (90)\n        change [x v] by (1.75)\n        set [player：向き v] to [左]\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(mouse x) < [-60]> and <mouse down?>>>> then\n        point in direction (-90)\n        change [x v] by (-1.75)\n        set [player：向き v] to [右]\n    end\n    set [x v] to ((X) * (0.8))\n    change x by (X)\n    if <touching (stage v)?> then\n        change y by (1)\n        if <touching (stage v)?> then\n            change y by (1)\n            if <touching (stage v)?> then\n                change y by (1)\n                if <touching (stage v)?> then\n                    change y by (1)\n                    if <touching (stage v)?> then\n                        change y by (1)\n                        if <touching (stage v)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [60]> and <mouse down?>>>> then\n                                if <touching (ink v)?> then\n                                    switch costume to (1 v)\n                                    start sound [se_jump1 v]\n                                    if <(X) > [0]> then\n                                        set [x v] to [-15]\n                                    else\n                                        set [x v] to [15]\n                                    end\n                                    set [y v] to [14.5]\n                                end\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (stage v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-5)\n    if <<touching (stage v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [60]> and <mouse down?>>>>> then\n        switch costume to (1 v)\n        start sound [se_jump1 v]\n        set [y v] to [16]\n    end\n    change y by (5)\n    if <<<touching (water v)?> or <touching (刺 v)?>> or <(y position) > [−174]>> then\n        wait (0.05) seconds\n        start sound [rip v]\n        broadcast (ﾀﾋんだらしい v)\n        初期位置\n    end\n    if <not <(stage) = [15]>> then\n        if <(x position) > [224]> then\n            hide\n            broadcast (NEXT v)\n            wait (0.05) seconds\n            wait until <(NEXT中) = [no]>\n            start sound [Coin v]\n            初期位置\n        end\n    end\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        switch costume to (しゃがむ v)\n        if <touching (ink v)?> then\n            broadcast (ink補給 v)\n            if <key (right arrow v) pressed?> then\n                point in direction (90)\n                change [x v] by (2.5)\n            end\n            if <key (left arrow v) pressed?> then\n                point in direction (-90)\n                change [x v] by (-2.5)\n            end\n        else\n            if <key (right arrow v) pressed?> then\n                point in direction (90)\n                change [x v] by (-0.8)\n            end\n            if <key (left arrow v) pressed?> then\n                point in direction (-90)\n                change [x v] by (0.8)\n            end\n        end\n    end\n    if <touching (enemy ink v)?> then\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            change [x v] by (-0.99)\n        end\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            change [x v] by (0.99)\n        end\n    end\n    if <not <<key (down arrow v) pressed?> or <key (s v) pressed?>>> then\n        switch costume to (buki)\n    end\nend\n\nif <key (s v) pressed?> then\n    if <key (right arrow v) pressed?> then\n        change [x v] by (10)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-10)\n    end\n    if <key (up arrow v) pressed?> then\n        change [y v] by (0.99)\n    end\nend\n\nwhen I receive [let's go v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nshow\nrepeat (10)\n    change size by (-4)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\ndefine 初期位置\ngo to [back v] layer\nswitch costume to (1 v)\nset size to (90) %\ngo to x: (-200) y: (-50)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nhide\n\n@stage\n\nwhen I receive [let's go v]\ngo to [front v] layer\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (stage)\nend\n\nwhen flag clicked\nset [stage v] to [1]\nswitch costume to (9 v)\nhide\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nwait (1) seconds\nhide\n\n@タイム表示\n\nwhen flag clicked\nhide\n\nwhen I receive [let's go v]\nset [time v] to [180]\nクローン\nforever\n    wait (1) seconds\n    change [time v] by (-1)\n    if <(stage) = [15]> then\n        hide\n        stop [this script v]\n    end\nend\n\ndefine クローン\nset [クローンid v] to [1]\ngo to x: (-169) y: (152)\ncreate clone of (_myself_ v)\ngo to x: (-210) y: (150)\nrepeat (4)\n    change [クローンid v] by (1)\n    create clone of (_myself_ v)\n    change x by (27)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nforever\n    if <(クローンID) = [1]> then\n        switch costume to (土台 v)\n        set [ghost v] effect to (30)\n    else\n        if <(クローンID) = [2]> then\n            switch costume to (join [数字] (([floor v] of ((time) / (60)) ) mod (10)))\n        else\n            if <(クローンID) = [3]> then\n                switch costume to (数字: v)\n            else\n                if <(クローンID) = [4]> then\n                    switch costume to (join [数字] (([floor v] of (((time) mod (60)) / (10)) ) mod (10)))\n                else\n                    switch costume to (join [数字] (([floor v] of ((time) mod (60)) ) mod (10)))\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [終了 v]\ndelete this clone\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\nwhen I receive [let's go v]\nforever\n    if <(time) = [0]> then\n        stop [all v]\n    end\n    if <(stage) = [16]> then\n        broadcast (autro v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [let's go v]\nforever\n    if <(stage) = [15]> then\n        broadcast (結果発表だドン！（？） v)\n        stop [this script v]\n    end\nend\n\n@enemy ink\n\nwhen I receive [let's go v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (stage)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nhide\n\n@water\n\nwhen I receive [let's go v]\nshow\nforever\n    switch costume to (stage)\nend\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@Tank\n\nwhen I receive [let's go v]\nforever\n    if <<([ink v] of [ink v]) < [15]> and <([ink v] of [ink v]) > [12]>> then\n        switch costume to (インクタンク4 v)\n    end\n    if <<([ink v] of [ink v]) < [12]> and <([ink v] of [ink v]) > [9]>> then\n        switch costume to (インクタンク3 v)\n    end\n    if <<([ink v] of [ink v]) < [9]> and <([ink v] of [ink v]) > [6]>> then\n        switch costume to (インクタンク3 v)\n    end\n    if <<([ink v] of [ink v]) < [6]> and <([ink v] of [ink v]) > [3]>> then\n        switch costume to (インクタンク2 v)\n    end\n    if <<([ink v] of [ink v]) < [3]> and <([ink v] of [ink v]) > [0]>> then\n        switch costume to (インクタンク1 v)\n    end\n    if <([ink v] of [ink v]) = [0]> then\n        switch costume to (インクタンク0 v)\n    end\nend\n\nwhen I receive [let's go v]\nforever\n    if <([ink v] of [ink v]) = [30]> then\n        switch costume to (インクタンク10 v)\n    end\n    if <<([ink v] of [ink v]) < [30]> and <([ink v] of [ink v]) > [27]>> then\n        switch costume to (インクタンク9 v)\n    end\n    if <<([ink v] of [ink v]) < [27]> and <([ink v] of [ink v]) > [24]>> then\n        switch costume to (インクタンク8 v)\n    end\n    if <<([ink v] of [ink v]) < [24]> and <([ink v] of [ink v]) > [21]>> then\n        switch costume to (インクタンク7 v)\n    end\n    if <<([ink v] of [ink v]) < [21]> and <([ink v] of [ink v]) > [18]>> then\n        switch costume to (インクタンク6 v)\n    end\n    if <<([ink v] of [ink v]) < [18]> and <([ink v] of [ink v]) > [15]>> then\n        switch costume to (インクタンク5 v)\n    end\nend\n\nwhen I receive [let's go v]\nswitch costume to (インクタンク10 v)\nset rotation style [left-right v]\nforever\n    go to (player v)\n    if <(Player：向き) = [右]> then\n        point in direction (90)\n    end\n    if <(Player：向き) = [左]> then\n        point in direction (-90)\n    end\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nhide\n\n@ink\n\nwhen I receive [let's go v]\nset [player：向き v] to [左]\nset [ink v] to [30]\nforever\n    if <<<<key (space v) pressed?> and <not <(ink) = [0]>>> and <not <<key (down arrow v) pressed?> or <key (s v) pressed?>>>> and <(NEXT中) = [no]>> then\n        if <(buki) = [1]> then\n            create clone of (_myself_ v)\n            start sound [ぽっぷ v]\n            change [ink v] by (-1)\n            wait (0.09) seconds\n        end\n        if <(buki) = [2]> then\n            reset timer\n            wait until <not <key (space v) pressed?>>\n            if <not <(ink) < [3]>> then\n                if <(timer) < [1]> then\n                    set [長押し v] to [0]\n                    set [トラストy v] to [-6]\n                    repeat (3)\n                        change [トラストy v] by (1)\n                        change [ink v] by (-1)\n                        create clone of (_myself_ v)\n                        start sound [ぽっぷ v]\n                    end\n                    set [トラストy v] to [-6]\n                    wait (0.1) seconds\n                end\n                if <(timer) > [1]> then\n                    if <not <key (down arrow v) pressed?>> then\n                        set [長押し v] to [0]\n                        set [トラストy v] to [-6]\n                        repeat (3)\n                            change [トラストy v] by (1)\n                            change [ink v] by (-1)\n                            create clone of (_myself_ v)\n                            start sound [ぽっぷ v]\n                        end\n                        set [トラストy v] to [-6]\n                        wait (0.1) seconds\n                    end\n                end\n            end\n        end\n        if <(buki) = [3]> then\n            reset timer\n            wait until <not <key (space v) pressed?>>\n            if <(timer) < [1]> then\n                create clone of (_myself_ v)\n                change [ink v] by (-1)\n                start sound [ぽっぷ v]\n                reset timer\n                wait (0.05) seconds\n            end\n            if <(timer) > [1]> then\n                if <not <key (down arrow v) pressed?>> then\n                    if <not <(ink) < [10]>> then\n                        repeat (10)\n                            create clone of (_myself_ v)\n                            change [ink v] by (-1)\n                            start sound [ぽっぷ v]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <<key (space v) pressed?> and <(ink) = [0]>> then\n        play sound [ガチャ v] until done\n    end\nend\n\nwhen I start as a clone\nshow\nset size to (100) %\ngo to (player v)\nif <(buki) = [1]> then\n    switch costume to (1ink v)\n    if <(Player：向き) = [右]> then\n        repeat until <touching (stage v)?>\n            move (pick random (5) to (10)) steps\n            change y by (-4)\n            if <touching (_edge_ v)?> then\n                delete this clone\n            end\n        end\n    else\n        repeat until <touching (stage v)?>\n            move (pick random (-5) to (-10)) steps\n            change y by (-4)\n            if <touching (_edge_ v)?> then\n                delete this clone\n            end\n        end\n    end\nend\nif <(buki) = [2]> then\n    if <(Player：向き) = [右]> then\n        if <(長押し) = [0]> then\n            switch costume to (2ink v)\n            repeat until <touching (stage v)?>\n                move (pick random (5) to (8)) steps\n                change y by (トラストy)\n                if <touching (_edge_ v)?> then\n                    delete this clone\n                end\n            end\n        else\n            switch costume to (4ink v)\n            repeat until <touching (stage v)?>\n                move (pick random (22) to (25)) steps\n                change y by (トラストy)\n                if <touching (_edge_ v)?> then\n                    delete this clone\n                end\n            end\n        end\n    else\n        switch costume to (2ink v)\n        repeat until <touching (stage v)?>\n            move (pick random (-5) to (-8)) steps\n            change y by (トラストy)\n            if <touching (_edge_ v)?> then\n                delete this clone\n            end\n        end\n    end\nend\nif <(buki) = [3]> then\n    switch costume to (3ink v)\n    if <(Player：向き) = [右]> then\n        repeat until <touching (stage v)?>\n            move (pick random (16) to (18)) steps\n            change y by (-2)\n            if <touching (_edge_ v)?> then\n                delete this clone\n            end\n        end\n    else\n        repeat until <touching (stage v)?>\n            move (pick random (-16) to (-18)) steps\n            change y by (-2)\n            if <touching (_edge_ v)?> then\n                delete this clone\n            end\n        end\n    end\nend\nswitch costume to (平いんく v)\nforever\n    if <not <touching (stage v)?>> then\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\nwait until <(NEXT中) = [NO]>\ndelete this clone\n\nwhen I receive [let's go v]\nforever\n    if <<not <(ink) = [30]>> and <not <key (space v) pressed?>>> then\n        change [ink v] by (1)\n        wait (1) seconds\n    end\n    if <(ink) > [30]> then\n        set [ink v] to [30]\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [ink補給 v]\nif <not <(ink) = [30]>> then\n    change [ink v] by (1)\nend\n\nwhen I receive [let's go v]\nforever\n    if <(ink) < [0]> then\n        set [ink v] to [0]\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nhide\n\n@samune\n\nwhen flag clicked\nswitch costume to (サムネ（仮） v)\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\nforever\n    go to [front v] layer\nend\n\n@NEXT\n\nwhen I start as a clone\nset [next中 v] to [yes]\nset [color v] effect to (pick random (1) to (100))\nset size to (100) %\nset [ghost v] effect to (0)\ngo to x: (583) y: (0)\ngo to [front v] layer\nshow\nrepeat until <(round (x position)) = [-30]>\n    change x by (((-30) - (x position)) / (10))\nend\nwait (0.2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [next中 v] to [no]\ndelete this clone\n\nwhen I receive [next v]\n\nwhen I receive [next v]\nchange [stage v] by (1)\n\nwhen I receive [let's go v]\nset [next中 v] to [no]\n\nrepeat (5)\n    create clone of (_myself_ v)\nend\n\n@刺\n\nwhen flag clicked\nhide\n\nwhen I receive [let's go v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (stage)\nend\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nhide\n\n@Turbo\n\nwhen flag clicked\nforever\n    set [turbo v] to [0]\n    wait (0.001) seconds\n    if <[3] < (Turbo)> then\n        show\n        stop [all v]\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    change [turbo v] by (1)\nend\n\n@結果発表の主\n\nwhen I receive [結果発表だドン！（？） v]\nwait (0) seconds\nset [結果発表 v] to [0]\nset [クローンid v] to [200]\nset [結果発表 v] to ((180) - (time))\ngo to [front v] layer\nset size to (85) %\nif <(length of (結果発表)) = [2]> then\n    switch costume to (join [数字] (letter (1) of (結果発表)))\n    go to x: (5) y: (0)\n    create clone of (_myself_ v)\n    switch costume to (join [数字] (letter (2) of (結果発表)))\n    go to x: (28) y: (0)\n    create clone of (_myself_ v)\nend\nif <(length of (結果発表)) = [3]> then\n    switch costume to (join [数字] (letter (1) of (結果発表)))\n    go to x: (5) y: (0)\n    create clone of (_myself_ v)\n    switch costume to (join [数字] (letter (2) of (結果発表)))\n    go to x: (28) y: (0)\n    create clone of (_myself_ v)\n    switch costume to (join [数字] (letter (3) of (結果発表)))\n    go to x: (51) y: (0)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [autro v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nclear graphic effects\n\n@わいぷあうと\n\nwhen I receive [ﾀﾋんだらしい v]\ngo to x: (0) y: (20)\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nwait (1) seconds\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen flag clicked\nhide\n\n