~platformer~プラットフォーマー

Instructions: 〇操作方法 \n ・左右移動　矢印キー右もしくは左、主人公の右もしくは左をタップで操作できます。\n・ジャンプ　矢印キー上、主人公の上をタップで操作できます。\n〇その他\n❤️と⭐️を押すととあるメッセージが見れます！Kキーでそのステージをとばせるチートがあります。\nゲーム作品は初めて共有しました。まだ、スクラッチをはじめたばかりなので、助言、アドバイスなどをよろしくお願いします！\nMethod of operation\n・Move left and right You can operate it by tapping the arrow keys right or left, and the hero's right or left.\n・You can operate it by tapping the top of the main character on the jump arrow keys.\nI shared the game work for the first time. I've just started scratching, so please give me some advice!

@Stage\n\nwhen I receive [free intro end v]\nwait (0.5) seconds\nforever\n    play sound [10℃ - しゃろう v] until done\nend\n\n@サムネ\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    set [タイマー v] to (timer)\nend\n\nwhen [timer v] > (タイマー)\ngo to [front v] layer\nset size to (100) %\nshow\nif <(costume [number v]) = [1]> then\n    go to x: (-40) y: (0)\n    set [brightness v] effect to (100)\n    set [縦 v] to [35]\n    set [横 v] to [20]\n    repeat (10)\n        change [brightness v] effect by (-10)\n        change size by (((130) - (size)) / (5))\n        set [縦 v] to (((縦) * (0.75)) + (((0) - (x position)) / (8.5)))\n        set [横 v] to (((横) * (0.75)) + (((0) - (y position)) / (7)))\n        change x by (縦)\n        change y by (横)\n    end\n    repeat (20)\n        change size by (((100) - (size)) / (5))\n        set [縦 v] to (((縦) * (0.75)) + (((0) - (x position)) / (8.5)))\n        set [横 v] to (((横) * (0.75)) + (((0) - (y position)) / (5)))\n        change x by (縦)\n        change y by (横)\n    end\n    go to x: (0) y: (0)\n    set size to (100) %\nend\n\n@プレイヤー\n\nwhen I start as a clone\nif <(costume [name v]) = [しゃがむ]> then\n    switch costume to (クローン用2 v)\nelse\n    switch costume to (クローン用 v)\nend\nrepeat (15)\n    change [ghost v] effect by (7.5)\n    change size by (-7.5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    set [pan left/right v] effect to (((200) * (((x position) + (240)) / (480))) - (100))\nend\n\nwhen flag clicked\nbroadcast (free intro end v)\nhide\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <not <<<key (down arrow v) pressed?> or <<(y position) > (mouse y)> and <mouse down?>>> or <key (s v) pressed?>>> then\n        if <<<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> or <key (d v) pressed?>> then\n            if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                switch costume to (右上 v)\n            else\n                switch costume to (右 v)\n            end\n        else\n            if <<<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> or <key (a v) pressed?>> then\n                if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                    switch costume to (左上 v)\n                else\n                    switch costume to (左 v)\n                end\n            else\n                if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                    switch costume to (上 v)\n                else\n                    switch costume to (普通 v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [free intro end v]\nset [ステージ v] to [1]\ngo to x: (-210) y: (13)\nset size to (85) %\ngo to [front v] layer\nshow\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> or <key (d v) pressed?>> then\n        change [x v] by (0.8)\n    end\n    if <<<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> or <key (a v) pressed?>> then\n        change [x v] by (-0.8)\n    end\n    set [x v] to ((X) * (0.92))\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 y by (1)\n                            if <touching (地面 v)?> then\n                                change x by ((0) - (X))\n                                change y by (-5)\n                                if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                                    start sound [壁キック v]\n                                    if <[0] < (X)> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                    set [y v] to [15]\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    change [y v] by (-1)\n    change y by (Y)\n    if <touching (地面 v)?> then\n        change y by ((0) - (Y))\n        set [y v] to [0]\n    end\n    change y by (-2)\n    if <<<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> and <touching (地面 v)?>> then\n        start sound [ジャンプ音 v]\n        set [y v] to [17]\n    end\n    change y by (1)\n    if <<<[-160] > (y position)> or <touching (針 v)?>> or <touching (マグマ v)?>> then\n        set [x v] to [0]\n        set [y v] to [0]\n        start sound [やられる v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-186) y: (13)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <(x position) > [235]> then\n        change [ステージ v] by (1)\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-186) y: (13)\n        show\n    end\n    if <<<key (down arrow v) pressed?> or <<(y position) > (mouse y)> and <mouse down?>>> or <key (s v) pressed?>> then\n        switch costume to (しゃがむ v)\n    end\nend\n\nwhen I receive [free intro end v]\nforever\n    wait until <key (k v) pressed?>\n    wait until <not <key (k v) pressed?>>\n    change [ステージ v] by (1)\nend\n\nwhen I receive [free intro end v]\nforever\n    if <touching (ジャンプ台 v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen I receive [free intro end v]\nset [ステージ v] to [1]\n\nwhen flag clicked\nset [ステージ v] to [1]\n\n@地面\n\nwhen flag clicked\nhide\n\nwhen I receive [free intro end v]\nshow\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    switch costume to (ステージ)\n    if <(costume [number v]) = [21]> then\n        broadcast (終わり v)\n        stop [this script v]\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [free intro end v]\nshow\nforever\n    go to [back v] layer\nend\n\n@太陽\n\nwhen flag clicked\nhide\n\nwhen I receive [free intro end v]\nshow\ngo to x: (216) y: (151)\nset size to (100) %\nforever\n    change [a v] by (5)\n    change size by ([cos v] of (A) )\nend\n\n@宣伝\n\nwhen I receive [宣伝 v]\ngo to x: (152) y: (250)\nswitch costume to (無 v)\nset size to (40) %\npoint in direction (90)\nshow\nstart sound [Click v]\nrepeat (30)\n    change y by (((145) - (y position)) / (4))\nend\nrepeat (3)\n    next costume\n    wait (0.75) seconds\nend\nrepeat (30)\n    change y by (((220) - (y position)) / (4))\nend\nhide\n\nwhen I start as a clone\ngo to x: (66) y: (92)\nset [ghost v] effect to (100)\nswitch costume to (マウス v)\ngo to [front v] layer\nset size to (45) %\npoint in direction (90)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nrepeat (20)\n    change x by (((115) - (x position)) / (4))\n    change y by (((140) - (y position)) / (4))\nend\nwait (0.05) seconds\nrepeat (20)\n    change x by (((156) - (x position)) / (4))\nend\nwait (0.05) seconds\nrepeat (20)\n    change x by (((195) - (x position)) / (4))\nend\nrepeat (20)\n    change x by (((195) - (x position)) / (4))\nend\nwait (0.05) seconds\nrepeat (20)\n    change x by (((229) - (x position)) / (4))\n    change y by (((95) - (y position)) / (4))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (0)\ndelete this clone\n\nwhen I receive [宣伝 v]\nwait (1) seconds\nplay sound [Click v] until done\nwait (.5) seconds\nplay sound [Click v] until done\nwait (.5) seconds\nplay sound [Click v] until done\n\nrepeat (10)\n\nwhen flag clicked\nset volume to (100) %\n\nwhen I receive [free intro end v]\nwait (1) seconds\nbroadcast (宣伝 v)\nhide\n\n@針\n\nwhen flag clicked\nhide\n\nwhen I receive [free intro end v]\nshow\nforever\n    switch costume to (ステージ)\nend\n\n@マグマ\n\nwhen I receive [free intro end v]\nshow\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (0) y: (-50)\nset [マグマ変数 v] to [0]\nrepeat (5)\n    change y by (マグマ変数)\n    change [マグマ変数 v] by (0.5)\n    wait (0.1) seconds\nend\nforever\n    repeat (10)\n        change y by (マグマ変数)\n        change [マグマ変数 v] by (-0.5)\n        wait (0.1) seconds\n    end\n    repeat (10)\n        change y by (マグマ変数)\n        change [マグマ変数 v] by (0.5)\n        wait (0.1) seconds\n    end\nend\n\n@ジャンプ台\n\nwhen flag clicked\nhide\n\nwhen I receive [free intro end v]\nshow\nforever\n    switch costume to (ステージ)\nend\n\n@よろ\n\nwhen I receive [終わり v]\nwait (1.5) seconds\nshow\ngo to [back v] layer\nset [変数4 v] to [0]\ngo to x: (-25) y: (215)\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [12]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [9]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [6]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [3]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [1]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\nset [変数4 v] to [0.5]\nrepeat until <(y position) < [0]>\n    change y by (変数4)\n    change [変数4 v] by (-1)\nend\ngo to x: (-25) y: (0)\n\nwhen flag clicked\nhide\n\n@ありごとう\n\nwhen flag clicked\nhide\n\nwhen I receive [終わり v]\nwait (0.5) seconds\ngo to [back v] layer\nshow\nset [変数2 v] to [36]\npoint in direction (-90)\nrepeat (30)\n    turn right (変数2) degrees\n    set [変数2 v] to ((変数2) * (0.8))\nend\n\nwhen I receive [終わり v]\nwait (0.5) seconds\nset [変数3 v] to [50]\ngo to x: (-272) y: (50)\nrepeat (30)\n    change x by (変数3)\n    set [変数3 v] to ((変数3) * (0.8))\nend\n\n@ありがとう！\n\nwhen flag clicked\nbroadcast (♡&☆ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    show\n    forever\n        if <touching (mouse-pointer v)?> then\n            wait (0.05) seconds\n            if <touching (mouse-pointer v)?> then\n                set [♡&☆ v] to (join [1] (letter (2) of (♡&☆)))\n                delete this clone\n            end\n        end\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        show\n        forever\n            if <touching (mouse-pointer v)?> then\n                wait (0.05) seconds\n                if <touching (mouse-pointer v)?> then\n                    set [♡&☆ v] to (join (letter (1) of (♡&☆)) [1])\n                    delete this clone\n                end\n            end\n        end\n    else\n        go to x: (0) y: (0)\n        set size to (5) %\n        go to [front v] layer\n        show\n        repeat (8)\n            change size by (((size) + (5)) / (4))\n        end\n        repeat (25)\n            change size by (((100) - (size)) / (4))\n        end\n        repeat (10)\n            switch costume to (大 v)\n            change size by ((((0) - (size)) + (-5)) / (4))\n            switch costume to (ありがとう！ v)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [♡&☆ v]\nwait until <not <(♡&☆) = [11]>>\ngo to x: (-15) y: (0)\nswitch costume to (♡ v)\ncreate clone of (_myself_ v)\nswitch costume to (☆ v)\ncreate clone of (_myself_ v)\nwait until <(♡&☆) = [11]>\nwait (0.1) seconds\nswitch costume to (ありがとう！ v)\ncreate clone of (_myself_ v)\n\n