ACTION PLATFORMER v2.6
@Stage\n\n@プレーヤー\n\ndefine 初期位置\nset x to (-216)\nset y to (-8)\ngo to x: (-216) y: (-8)\nset size to (120) %\ngo to x: (-216) y: (-8)\nset rotation style [left-right v]\nset x to (-216)\nset y to (-8)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [スタート v]\nset [ステージ v] to [1]\nshow\ngo to x: (-216) y: (-8)\n初期位置\nforever\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [x v] by (1.75)\n        point in direction (90)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1.75)\n        point in direction (-90)\n    end\n    set [x v] to ((X) * (0.8))\n    change x by (X)\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 (-5)\n                            if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                if <(X) > [0]> then\n                                    start sound [壁キック v]\n                                    set [x v] to [-15]\n                                else\n                                    set [x v] to [15]\n                                end\n                                start sound [壁キック v]\n                                set [y v] to [14.5]\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 (ステージ v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ステージ v)?> and <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n        start sound [ジャンプ v]\n        change [y v] by (16)\n    end\n    change y by (1)\n    if <not <(ステージ) = [15]>> then\n        if <(x position) > [242]> then\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            初期位置\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            broadcast (NEXT LEVEL v)\n            wait (0.05) seconds\n            hide\n        end\n    end\n    if <not <<<(ステージ) = [8]> or <(ステージ) = [10]>> or <(ステージ) = [3]>>> then\n        if <<touching (とげ・マグマ v)?> or <(y position) < [-72]>> then\n            初期位置\n            set x to (-216)\n            set y to (-8)\n            go to x: (-216) y: (-8)\n            wait (0.05) seconds\n        end\n    end\n    if <(ステージ) = [8]> then\n        if <(y position) = [-186]> then\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            初期位置\n            set x to (-216)\n            set y to (-8)\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            wait (0.05) seconds\n        end\n    end\n    if <(ステージ) = [10]> then\n        if <touching (とげ・マグマ v)?> then\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            初期位置\n            set x to (-216)\n            set y to (-8)\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            wait (0.05) seconds\n        end\n        if <(y position) < [-89]> then\n            初期位置\n        end\n    end\n    if <(ステージ) = [3]> then\n        if <(y position) = [-186]> then\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            初期位置\n            set x to (-216)\n            set y to (-8)\n            go to x: (-216) y: (-8)\n            go to x: (-216) y: (-8)\n            wait (0.05) seconds\n        end\n    end\nend\n\nwhen I receive [次 v]\nshow\n\nwhen I receive [スタート v]\nshow variable [タイム v]\nset [タイム v] to [0]\nrepeat until <(ステージ) = [15]>\n    wait (1) seconds\n    change [タイム v] by (1)\n    if <(ステージ) = [15]> then\n        broadcast (ゴール v)\n    end\nend\n\nwhen I receive [ゴール v]\nshow variable [☁ タイム世界記録 v]\nforever\n    change [タイム v] by (0)\n    if <(タイム) < (☁ タイム世界記録)> then\n        set [☁ タイム世界記録 v] to (タイム)\n    end\nend\n\nwhen I receive [\[intro\]end v]\nhide variable [タイム v]\nhide variable [☁ タイム世界記録 v]\nswitch backdrop to (サムネイル v)\nwait (1) seconds\nswitch backdrop to (背景 v)\nbroadcast (スタート v)\n\nwhen flag clicked\nhide\nhide variable [☁ タイム世界記録 v]\nhide variable [タイム v]\nset [タイム v] to [0]\nswitch backdrop to (背景 v)\n\n@ステージ\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nswitch costume to (ステージ1 v)\ngo to x: (0) y: (0)\nshow\nset size to (100) %\nforever\n    switch costume to (ステージ)\nend\n\nwhen I receive [next level v]\nchange [ステージ v] by (1)\n\nwhen flag clicked\nset [ステージ v] to [1]\n\n@とげ・マグマ\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nshow\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\nforever\n    switch costume to (ステージ)\nend\n\n@サムネイル\n\nwhen flag clicked\nforever\n    show\n    change [ghost v] effect by (100)\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\n@バネ\n\nwhen I receive [スタート v]\ngo to x: (-25) y: (-65)\nhide\nforever\n    if <(ステージ) = [12]> then\n        バネ\n    end\n    if <(ステージ) = [13]> then\n        hide\n    end\nend\n\ndefine バネ\nshow\nif <touching (プレーヤー v)?> then\n    start sound [ジャンプ v]\n    switch costume to (2 v)\n    set [y v] to [22]\nelse\n    switch costume to (1 v)\nend\n\n@太陽\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\ngo to x: (215) y: (141)\nshow\nset size to (100) %\nset [三角関数 v] to [0]\nforever\n    go to [back v] layer\n    change [三角関数 v] by (5)\n    change size by ([cos v] of (三角関数) )\nend\n\n@ターボ対策プログラム\n\nwhen flag clicked\nforever\n    if <(ターボ対策) > [50]> then\n        broadcast (ターボ検知 v)\n    end\nend\n\nwhen I receive [ターボ検知 v]\nstop [all v]\n\nwhen flag clicked\nforever\n    wait (0.01) seconds\n    set [ターボ対策 v] to [0]\nend\n\nwhen flag clicked\nset [ターボ対策 v] to [0]\nforever\n    change [ターボ対策 v] by (10)\nend\n\n@スプライト1\n\nwhen I start as a clone\nshow\ngo to x: (-400) y: (0)\nif <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [3]> or >>> then\n    repeat (50)\n        change x by (((0) - (x position)) / (10))\n    end\nend\n\nwhen I start as a clone\ngo to x: (-400) y: (0)\nshow\nif  then\n    repeat (50)\n        change x by (((-100) - (x position)) / (10))\n    end\nend\n\nwhen I start as a clone\ngo to x: (-400) y: (0)\nshow\nif  then\n    repeat (50)\n        change x by (((-30) - (x position)) / (10))\n    end\nend\n\nwhen I start as a clone\ngo to x: (-400) y: (0)\nshow\nif  then\n    repeat (50)\n        change x by (((50) - (x position)) / (10))\n    end\nend\n\nwhen I start as a clone\ngo to x: (-400) y: (0)\nshow\nif  then\n    repeat (50)\n        change x by (((120) - (x position)) / (10))\n    end\nend\n\nwhen I start as a clone\nwait (1.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [next v]\nset [ghost v] effect to (0)\nhide\nswitch costume to (コスチューム8 v)\nrepeat (8)\n    next costume\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\nwait (1) seconds\nswitch costume to (コスチューム1 v)\n\nwhen I receive [next level v]\nbroadcast (next v)\nwait (3) seconds\nbroadcast (次 v)\n\n@intro\n\nwhen I start as a clone\nif <(cloneID) = [logo]> then\n    show\n    set [clone_dir v] to [360]\n    switch costume to (bit v)\n    set size to (1200) %\n    switch costume to (logo v)\n    repeat until <[101] > (size)>\n        switch costume to (bit v)\n        change size by (((65) - (size)) / (6.9))\n        change [clone_dir v] by (((90) - (clone_dir)) / (6.9))\n        point in direction (clone_dir)\n        switch costume to (logo v)\n    end\n    repeat until <[66] > (size)>\n        change size by (((65) - (size)) / (6.9))\n        change [clone_dir v] by (((90) - (clone_dir)) / (6.9))\n        point in direction (clone_dir)\n    end\n    set [clone_dir v] to [0.5]\n    repeat until <(size) > [100]>\n        change [clone_dir v] by ((clone_dir) / (2))\n        change size by (clone_dir)\n        turn right ((clone_dir) / (-12)) degrees\n    end\n    repeat (7)\n        switch costume to (bit v)\n        change [clone_dir v] by ((clone_dir) / (2))\n        change size by (clone_dir)\n        turn right ((clone_dir) / (-12)) degrees\n        switch costume to (logo v)\n    end\n    hide\n    switch costume to (square1 v)\n    set [cloneid v] to [square2]\n    create clone of (_myself_ v)\n    switch costume to (square2 v)\n    set [cloneid v] to [square3]\n    create clone of (_myself_ v)\n    set [cloneid v] to [kirbyzaz]\n    create clone of (_myself_ v)\n    set [cloneid v] to [back3]\n    create clone of (_myself_ v)\n    repeat (8)\n        set [clone_size v] to [50]\n        set [cloneid v] to [square1]\n        create clone of (_myself_ v)\n        set [cloneid v] to [back2]\n        create clone of (_myself_ v)\n        broadcast (\[INTRO\]size v)\n        switch costume to (square1 v)\n        wait (0.561) seconds\n    end\n    broadcast (\[INTRO\]spin v)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(cloneID) = [back]> then\n    show\n    set [clone_dir v] to [360]\n    switch costume to (bit v)\n    set size to (1200) %\n    switch costume to (blackbar1 v)\n    repeat until <[175] > (size)>\n        switch costume to (bit v)\n        change size by (((174) - (size)) / (6.9))\n        change [clone_dir v] by (((65) - (clone_dir)) / (6.9))\n        point in direction (clone_dir)\n        switch costume to (back v)\n    end\n    set [clone_dir v] to [0.5]\n    repeat (15)\n        switch costume to (bit v)\n        change [clone_dir v] by ((clone_dir) / (2))\n        change size by (clone_dir)\n        switch costume to (back v)\n        turn right ((clone_dir) / (12)) degrees\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(cloneID) = [b1]> then\n    switch costume to (blackbar1 v)\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    show\n    repeat (10)\n        set size to (100) %\n        go to [front v] layer\n        change [ghost v] effect by (-10)\n    end\n    wait (0.1) seconds\n    repeat until <(timer) > [9]>\n        go to [front v] layer\n        change y by (((125) - (y position)) / (5))\n        switch costume to (blackbar1 v)\n        show\n    end\n    repeat until <(timer) > [10]>\n        go to [front v] layer\n        change y by (((-1) - (y position)) / (5))\n        switch costume to (blackbar1 v)\n        show\n    end\n    broadcast (\[INTRO\]end v)\nend\n\nwhen I start as a clone\nif <(cloneID) = [b2]> then\n    switch costume to (blackbar2 v)\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    show\n    repeat (10)\n        set size to (100) %\n        go to [front v] layer\n        change [ghost v] effect by (-10)\n    end\n    wait (0.1) seconds\n    repeat until <(timer) > [9]>\n        go to [front v] layer\n        change y by (((-125) - (y position)) / (5))\n        switch costume to (blackbar2 v)\n        show\n    end\n    repeat until <(timer) > [10]>\n        go to [front v] layer\n        change y by (((1) - (y position)) / (5))\n        switch costume to (blackbar2 v)\n        show\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nreset timer\nstart sound [Foxsky - Kirby Smash v]\nwait (0.7) seconds\nhide\nset [cloneid v] to [b1]\ncreate clone of (_myself_ v)\nset [cloneid v] to [b2]\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nset [cloneid v] to [back]\ncreate clone of (_myself_ v)\nset [cloneid v] to [logo]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(cloneID) = [square1]> then\n    go to [back v] layer\n    go [forward v] (3) layers\n    set [clone_dir v] to [0]\n    show\n    set [clone_cos v] to (costume [number v])\n    set size to (0) %\n    repeat until <(size) > [100]>\n        change size by (((clone_size) - (size)) / (5))\n        turn right (((clone_dir) - (direction)) / (5)) degrees\n    end\n    repeat until <(size) > [1500]>\n        switch costume to (bit v)\n        change size by (((clone_size) - (size)) / (5))\n        switch costume to (clone_cos)\n        turn right (((clone_dir) - (direction)) / (5)) degrees\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(cloneID) = [back2]> then\n    switch costume to (back2 v)\n    clear graphic effects\n    set [ghost v] effect to (50)\n    show\n    go to [front v] layer\n    repeat (25)\n        change [ghost v] effect by (2)\n    end\n    hide\n    delete this clone\nend\n\nwhen I start as a clone\nif <(cloneID) = [back3]> then\n    go to x: (0) y: (0)\n    show\n    switch costume to (back3 v)\n    set [s v] to [90]\n    show\n    set [clone_dir v] to [90]\n    \n        switch costume to (bit v)\n        set size to (100) %\n        go to [back v] layer\n        change [clone_dir v] by (((s) - (clone_dir)) / (5))\n        point in direction (clone_dir)\n        switch costume to (back3 v)\n    end\nend\n\nwhen I start as a clone\nif <(cloneID) = [square3]> then\n    set [clone_dir v] to [0]\n    show\n    set [clone_cos v] to (costume [number v])\n    set size to (0) %\n    go to x: (0) y: (0)\n    repeat until <(size) > [100]>\n        change size by ((((clone_size) * ((2.25) * (2.25))) - (size)) / (5))\n        turn right ((((clone_dir) * ((2.25) * (2.25))) - (direction)) / (5)) degrees\n    end\n    repeat until <(size) > [1500]>\n        switch costume to (bit v)\n        change size by ((((clone_size) * ((2.25) * (2.25))) - (size)) / (5))\n        turn right ((((clone_dir) * ((2.25) * (2.25))) - (direction)) / (5)) degrees\n        switch costume to (clone_cos)\n        turn right (0.1) degrees\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(cloneID) = [square2]> then\n    set [clone_dir v] to [0]\n    show\n    set [clone_cos v] to (costume [number v])\n    set size to (0) %\n    go to x: (0) y: (0)\n    repeat until <(size) > [100]>\n        change size by ((((clone_size) * (2.25)) - (size)) / (5))\n        turn right ((((clone_dir) * (2.25)) - (direction)) / (5)) degrees\n    end\n    repeat until <(size) > [1500]>\n        switch costume to (bit v)\n        change size by ((((clone_size) * (2.25)) - (size)) / (5))\n        turn right ((((clone_dir) * (2.25)) - (direction)) / (5)) degrees\n        switch costume to (clone_cos)\n        turn right (0.1) degrees\n    end\n    delete this clone\nend\n\nwhen I receive [\[intro\]size v]\nif < (cloneID) contains [square]?> then\n    if <[350] < (clone_dir)> then\n        set [clone_dir v] to [0]\n    end\n    change [clone_size v] by ((clone_size) * (1.5))\n    change [clone_dir v] by (22.5)\nend\nif <(cloneID) = [back3]> then\n    change [s v] by (90)\nend\n\nwhen I receive [\[intro\]spin v]\nif <<(cloneID) = [b1]> or <(cloneID) = [b2]>> then\n\nwhen I receive [\[intro\]size v]\nif <(cloneID) = [kirbyzaz]> then\n    set [clone_cos v] to (pick random (5) to (10))\n    change size by (30)\n    repeat (35)\n        set [clone_cos v] to (((clone_cos) * (0.75)) + (((90) - (direction)) * (0.3)))\n        turn right (clone_cos) degrees\n    end\nend\n\nwhen I start as a clone\nif <(cloneID) = [kirbyzaz]> then\n    show\n    set [clone_dir v] to [90]\n    point in direction (90)\n    go to x: (0) y: (0)\n    switch costume to (bit v)\n    set size to (200) %\n    switch costume to (yourname v)\n    \n        switch costume to (bit v)\n        change size by (((120) - (size)) / (5))\n        switch costume to (yourname v)\n        go to [front v] layer\n        go [backward v] (2) layers\n    end\nend\n\nwhen I receive [\[intro\]size v]\nif <(cloneID) = [b1]> then\n    set [clone_cos v] to [2]\n    repeat (35)\n        set [clone_cos v] to (((clone_cos) * (0.75)) + (((90) - (direction)) * (0.3)))\n        turn right (clone_cos) degrees\n    end\nend\nif <(cloneID) = [b2]> then\n    set [clone_cos v] to [-5]\n    repeat (35)\n        set [clone_cos v] to (((clone_cos) * (0.75)) + (((90) - (direction)) * (0.3)))\n        turn right (clone_cos) degrees\n    end\nend\n\nwhen I receive [\[intro\]end v]\nif <<(cloneID) = [b1]> or <(cloneID) = [b2]>> then\n    wait (1) seconds\n    if <(cloneID) = [b1]> then\n        change y by (1.5)\n        repeat until <(y position) > [200]>\n            switch costume to (back2 v)\n            change y by ((y position) / (3))\n            switch costume to (blackbar1 v)\n        end\n    else\n        change y by (-1.5)\n        repeat until <[-200] > (y position)>\n            switch costume to (back2 v)\n            change y by ((y position) / (3))\n            switch costume to (blackbar2 v)\n        end\n    end\n    delete this clone\nelse\n    hide\n    delete this clone\nend\n\n
▼新作　new work\n   https://scratch.mit.edu/projects/752652993\n▼TAKE0221のスタジオ　TAKE0221's studio\n   https://scratch.mit.edu/studios/32253629/\n▼PLATFORMERのスタジオ　PLATFORMER studio\n   https://scratch.mit.edu/studios/32317562/\n--------------------------------------------------------------------------［日本語］\n◯操作方法　\n　WSDA・上下左右キー操作　タップ操作\n［English］\n◯ How to operate\n　WSDA/up/down/left/right key operation tap operation　\n--------------------------------------------------------------------------\n　ぜひタイムをコメントに書いて下さい。\n 　作者のタイム→87秒\n    Please write your time in the comments.\n    Author's time →87 seconds\n　フォローと♡・☆もお願いします！\n　Please follow me and ♡・☆!