platformer+

Instructions: ホントは３つのコースができるようにしたんですけど、重すぎたので一つにしました…。重すぎて動かんｗ\n操作方法\n矢印キーで操作。世界記録を塗り替えよう！\n設定からスキンは変えられます。

@Stage\n\nwhen I receive [start v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (背景2 v)\n\nwhen I receive [next v]\nif <(ステージ) = [14]> then\n    switch backdrop to (背景3 v)\nend\n\n@プレイヤー\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (バネ v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nplay sound [MusMus-BGM-128 v] until done\n\nwhen flag clicked\nforever\n    if <(音楽) = [0]> then\n        set volume to (100) %\n    else\n        set volume to (0) %\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [bgm v] until done\nend\n\nwait (10) seconds\nstop [this script v]\n\nwhen I receive [start v]\nset size to (50) %\nwait (0.5) seconds\nshow\nset rotation style [left-right v]\nswitch costume to ([costume # v] of [スキン v])\ngo to x: (-200) y: (10)\nset size to (50) %\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nshow\nforever\n    set rotation style [left-right v]\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (.88))\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 y by (-6)\n                                change x by ((x) * (-1))\n                                if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> 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 [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 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 (-1)\n    if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>> and <touching (ステージ v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        broadcast (NEXT v)\n        go to x: (-200) y: (10)\n    end\n    if <<(y position) < [-163]> or <touching (針 v)?>> then\n        repeat (10)\n            change size by (10)\n            change [ghost v] effect by (10)\n        end\n        clear graphic effects\n        set size to (50) %\n        go to x: (-200) y: (10)\n    end\n    if <(変数１) = [1]> then\n        stop [this script v]\n    end\n    if <(変数２) = [1]> then\n        stop [this script v]\n    end\n    if <(変数３) = [1]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [隠しstart v]\nset size to (50) %\nwait (0.5) seconds\nshow\nset rotation style [left-right v]\nswitch costume to ([costume # v] of [スキン v])\ngo to x: (-200) y: (10)\nset size to (50) %\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nshow\nforever\n    set rotation style [left-right v]\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (.88))\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 y by (-6)\n                                change x by ((x) * (-1))\n                                if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> 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 [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 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 (-1)\n    if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [0]> and <mouse down?>>>> and <touching (隠しのステージ v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        broadcast (隠しNEXT v)\n        go to x: (-200) y: (10)\n    end\n    if  then\n        repeat (10)\n            change size by (10)\n            change [ghost v] effect by (10)\n        end\n        clear graphic effects\n        set size to (50) %\n        go to x: (-200) y: (10)\n    end\nend\n\nwhen I receive [サムネ終了 v]\nhide\n\n@スキン\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nhide\n\nwhen I receive [スキンを変える v]\nwait (0.3) seconds\ngo to [front v] layer\nshow\n\nwhen I receive [次のコスチューム v]\nnext costume\n\nwhen I receive [スキンok v]\nhide\n\nwhen flag clicked\nset [タイム v] to [0]\nhide variable [タイム v]\n\nwhen I receive [start v]\nshow variable [タイム v]\n\nwhen I receive [ホントにスタート v]\nforever\n    wait (1) seconds\n    change [タイム v] by (1)\n    if <(ステージ) = [14]> then\n        show variable [☁ 世界記録 v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [ステージ終了 v]\nif <(タイム) < (☁ 世界記録)> then\n    set [☁ 世界記録 v] to (タイム)\nelse\n    set [☁ 世界記録 v] to (☁ 世界記録)\nend\n\nwhen flag clicked\nhide variable [☁ 隠し世界 v]\n\nwhen I receive [サムネ終了 v]\nhide variable [☁ 世界記録 v]\nhide variable [タイム v]\n\nwhen I receive [ホントに隠しstart v]\nforever\n    wait (1) seconds\n    change [隠しtime v] by (1)\n    if <(隠しステージ) = [13]> then\n        switch backdrop to (背景6 v)\n        show variable [☁ 隠し世界 v]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [隠しtime v] to [0]\nhide variable [隠しtime v]\n\nwhen I receive [サムネ終了 v]\nhide variable [隠しtime v]\nhide variable [☁ 隠し世界 v]\n\nwhen I receive [隠し終了 v]\nif <(隠しTIME) < (☁ 隠し世界)> then\n    set [☁ 隠し世界 v] to (隠しTIME)\nelse\n    set [☁ 隠し世界 v] to (☁ 隠し世界)\nend\n\nwhen flag clicked\nset [激ムズタイム v] to [0]\nhide variable [激ムズタイム v]\n\nwhen I receive [激ムズstart v]\nforever\n    wait (1) seconds\n    change [激ムズタイム v] by (1)\nend\n\nwhen I receive [隠しstart v]\nshow variable [隠しtime v]\n\n@サムネイル\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (0)\nshow\nwait (1.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (サムネ終了 v)\nhide\n\n@ステージ\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start v]\nswitch costume to (コスチューム1 v)\ngo to [front v] layer\nshow\n\nwhen I receive [ホントにスタート v]\nnext costume\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nset [ステージ v] to [1]\n\nwhen I receive [next v]\nset [ステージ v] to ((ステージ) + (1))\n\nwhen I receive [サムネ終了 v]\nhide\n\nwhen I receive [next v]\nif <(costume [number v]) = [15]> then\n    broadcast (ステージ終了 v)\nend\n\nwhen I receive [隠しコース v]\nhide\n\n@針\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [ホントにスタート v]\nforever\n    if <(ステージ) = [2]> then\n        switch costume to (コスチューム1 v)\n        go to [front v] layer\n        show\n    end\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [サムネ終了 v]\nhide\n\nwhen I receive [隠しコース v]\nhide\n\nwhen I receive [隠しコース v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\nforever\n    if <(ステージ) = [2]> then\n        hide\n    end\nend\n\n@スタート画面\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [サムネ終了 v]\nshow\n\nwhen I receive [start v]\nhide\n\nwhen I receive [隠しコース v]\nhide\n\nwhen I receive [激ムズ v]\nhide\n\n@秘密ボタン\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [サムネ終了 v]\nshow\n\nwhen this sprite clicked\n\nwhen I receive [start v]\nhide\n\nwhen I receive [隠しコース v]\nhide\n\nwhen I receive [激ムズ v]\nhide\n\n@設定ボタン\n\nwhen flag clicked\ngo to x: (-215) y: (154)\nhide\n\nwhen I receive [サムネ終了 v]\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (設定 v)\n\nwhen I receive [start v]\nhide\n\nwhen I receive [隠しコース v]\nhide\n\nwhen I receive [激ムズ v]\nhide\n\n@設定画面\n\nwhen flag clicked\ngo to x: (445) y: (0)\nhide\n\nwhen I receive [設定 v]\ngo to [front v] layer\nshow\nglide (0.2) secs to x: (0) y: (0)\n\nwhen this sprite clicked\nbroadcast (設定終了 v)\nglide (0.2) secs to x: (445) y: (0)\nhide\n\n@おん\n\nwhen flag clicked\ngo to x: (-15) y: (34)\nhide\n\nwhen I receive [設定 v]\nset size to (100) %\nwait (0.2) seconds\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nset [音楽 v] to [0]\nbroadcast (音楽on v)\nset size to (105) %\n\nwhen I receive [音楽off v]\nset size to (100) %\n\nwhen I receive [設定終了 v]\nhide\n\n@おふ\n\nwhen flag clicked\ngo to x: (117) y: (34)\nhide\n\nwhen I receive [設定 v]\nset size to (100) %\nwait (0.2) seconds\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nset [音楽 v] to [1]\nbroadcast (音楽off v)\nset size to (105) %\n\nwhen I receive [音楽on v]\nset size to (100) %\n\nwhen I receive [設定終了 v]\nhide\n\n@スキンボタン\n\nwhen flag clicked\ngo to x: (-15) y: (-49)\nhide\n\nwhen I receive [設定 v]\nwait (0.2) seconds\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (スキンを変える v)\n\nwhen I receive [設定終了 v]\nhide\n\n@スキンカバー2\n\nwhen flag clicked\ngo to x: (0) y: (-168)\nhide\n\nwhen I receive [スキンを変える v]\ngo to [front v] layer\nshow\nglide (0.2) secs to x: (0) y: (0)\n\nwhen I receive [スキンok v]\nglide (0.2) secs to x: (0) y: (-168)\nhide\n\n@設定画面2\n\nwhen flag clicked\ngo to x: (0) y: (303)\nhide\n\nwhen I receive [やり方 v]\ngo to [front v] layer\nshow\nglide (0.2) secs to x: (0) y: (0)\n\nwhen this sprite clicked\nglide (0.2) secs to x: (0) y: (303)\nhide\n\n@スキンカバー3\n\nwhen flag clicked\ngo to x: (0) y: (164)\nhide\n\nwhen I receive [スキンを変える v]\ngo to [front v] layer\nshow\nglide (0.2) secs to x: (0) y: (0)\n\nwhen I receive [スキンok v]\nglide (0.2) secs to x: (0) y: (164)\nhide\n\n@スキンボタン2\n\nwhen flag clicked\ngo to x: (0) y: (-138)\nhide\n\nwhen I receive [スキンを変える v]\nwait (0.3) seconds\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (次のコスチューム v)\n\nwhen I receive [スキンok v]\nhide\n\n@スキンボタン3\n\nwhen flag clicked\ngo to x: (191) y: (-146)\nhide\n\nwhen I receive [スキンを変える v]\nwait (0.3) seconds\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (スキンOK v)\nhide\n\n@スキンボタン4\n\nwhen flag clicked\ngo to x: (72) y: (51)\nhide\n\nwhen I receive [サムネ終了 v]\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (START v)\nhide\n\nwhen I receive [隠しコース v]\nhide\n\nwhen I receive [激ムズ v]\nhide\n\n@スキンボタン5\n\nwhen I receive [サムネ終了 v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\ngo to x: (72) y: (-41)\nhide\n\nwhen this sprite clicked\nbroadcast (やり方 v)\n\nwhen I receive [start v]\nhide\n\nwhen I receive [隠しコース v]\nhide\n\nwhen I receive [激ムズ v]\nhide\n\n@Glow-3\n\nwhen I receive [start v]\nwait (0.5) seconds\ngo to x: (296) y: (0)\ngo to [front v] layer\nswitch costume to (1 v)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nswitch costume to (2 v)\ngo to x: (296) y: (0)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nswitch costume to (3 v)\ngo to x: (296) y: (0)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nhide\nbroadcast (ホントにスタート v)\n\nwhen flag clicked\nhide\n\nwhen I receive [隠しstart v]\nwait (0.5) seconds\ngo to x: (296) y: (0)\ngo to [front v] layer\nswitch costume to (1 v)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nswitch costume to (2 v)\ngo to x: (296) y: (0)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nswitch costume to (3 v)\ngo to x: (296) y: (0)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nhide\nbroadcast (ホントに隠しSTART v)\n\nwhen I receive [激ムズstart v]\nwait (0.5) seconds\ngo to x: (296) y: (0)\ngo to [front v] layer\nswitch costume to (1 v)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nswitch costume to (2 v)\ngo to x: (296) y: (0)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nswitch costume to (3 v)\ngo to x: (296) y: (0)\nshow\nglide (0.25) secs to x: (90) y: (0)\nglide (0.5) secs to x: (0) y: (0)\nglide (0.25) secs to x: (-332) y: (0)\nhide\nbroadcast (ホントに激ムズSTART v)\n\n@隠し画面\n\nwhen flag clicked\ngo to x: (-450) y: (0)\nset [ghost v] effect to (15)\nhide\n\nwhen I receive [秘密発動 v]\ngo to [front v] layer\nshow\nglide (0.2) secs to x: (0) y: (0)\n\nwhen this sprite clicked\nglide (0.2) secs to x: (-450) y: (0)\nhide\n\n@ホームへ\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [ステージ終了 v]\nwait (0.001) seconds\ngo to [front v] layer\nshow\nstop [this script v]\n\nwhen this sprite clicked\nbroadcast (サムネ終了 v)\nhide\n\nwhen I receive [隠し終了 v]\ngo to [front v] layer\nshow\n\nwhen I receive [激ムズ終了 v]\ngo to [front v] layer\nshow\n\n