【自信作‼】脱獄プラットフォーマー / jailbreak platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (牢獄 v)\n\nwhen I receive [ステージ系 次 v]\nif <(ステージ) = [10]> then\n    switch backdrop to (外 v)\nend\n\nwhen flag clicked\nset volume to (50) %\nforever\n    play sound [BGM v] until done\nend\n\n@プレイヤー\n\nwhen flag clicked\ngo to x: (-200) y: (0)\nset rotation style [left-right v]\nswitch costume to (普通 v)\nset [ghost v] effect to (0)\ngo to [front v] layer\ngo [backward v] (2) layers\nshow\nset [動いていい？ v] to [OK]\nset [ステージ v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <(動いていい？) = [OK]> then\n        if <<<mouse down?> and <[0] < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n            change [x v] by (0.9)\n            point in direction (90)\n        end\n        if <<<mouse down?> and <(mouse x) < [0]>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n            change [x v] by (-0.9)\n            point in direction (-90)\n        end\n        set [x v] to ((x) * (0.9))\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 (-5)\n                                    change x by ((0) - (x))\n                                    if <<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                        start sound [壁キック v]\n                                        if <[0] < (x)> then\n                                            set [x v] to [-7.5]\n                                        else\n                                            set [x v] to [7.5]\n                                        end\n                                        set [y v] to [12]\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 (-0.95)\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 <<<mouse down?> and <[0] < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            if <touching (ステージ v)?> then\n                set [y v] to [15]\n            end\n        end\n        change y by (1)\n        if <[235] < (x position)> then\n            go to x: (-200) y: (0)\n            set [x v] to [0]\n            set [y v] to [0]\n            broadcast (NEXT v) and wait\n        end\n        if <<touching (トゲ v)?> or <<touching (レーザー v)?> or <<touching (警察官 v)?> or <<touching (レーザー2 v)?> or <(y position) < [-174]>>>>> then\n            死んだZE☆\n        end\n        if <touching (バネ v)?> then\n            start sound [Jump v]\n            set [y v] to [18]\n        end\n    end\nend\n\nwhen I receive [次 v]\ngo to x: (-200) y: (0)\npoint in direction (90)\nchange [ステージ v] by (1)\nset [x v] to [0]\nset [y v] to [0]\n\ndefine 死んだZE☆\nstart sound [やられた v]\nset rotation style [all around v]\nset [ghost v] effect to (0)\nset [死んだy v] to [13]\nset [動いていい？ v] to [NO]\nrepeat until <(死んだY) = [0]>\n    change [ghost v] effect by (4)\n    turn right (7) degrees\n    change y by (死んだY)\n    change [死んだy v] by (-1)\nend\nrepeat until <(y position) < [-179]>\n    change [ghost v] effect by (2.5)\n    turn right (8) degrees\n    change y by (死んだY)\n    change [死んだy v] by (-1)\nend\nbroadcast (やられた v)\nset [ghost v] effect to (0)\nset rotation style [left-right v]\ngo to x: (-200) y: (0)\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nset [動いていい？ v] to [OK]\n\nwhen flag clicked\nhide variable [time v]\n\nwhen flag clicked\nforever\n    if <(動いていい？) = [OK]> then\n        if <<<<mouse down?> and <(mouse x) < [0]>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> or <<<mouse down?> and <[0] < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n            switch costume to (左右 v)\n        else\n            switch costume to (普通 v)\n        end\n    end\nend\n\n@ステージ\n\nwhen I receive [ステージ系 次 v]\nnext costume\n\nwhen flag clicked\nswitch costume to (ステージ1 v)\ngo to [back v] layer\ngo [forward v] (4) layers\n\nwhen flag clicked\nset [タイム v] to [0]\nshow variable [☁ 世界記録 v]\nshow variable [タイム v]\n\nwhen flag clicked\nforever\n    repeat until <(ステージ) = [11]>\n        wait (0.1) seconds\n        change [タイム v] by (0.1)\n    end\nend\n\nwhen I receive [ステージ系 次 v]\nif <(ステージ) = [10]> then\n    if <(タイム) < (☁ 世界記録)> then\n        set [☁ 世界記録 v] to (タイム)\n    end\nend\n\n@トゲ\n\nwhen I receive [ステージ系 次 v]\nnext costume\n\nwhen flag clicked\nswitch costume to (ステージ1 v)\ngo to [back v] layer\ngo [forward v] (3) layers\nshow\n\nwhen flag clicked\nset [time v] to [0]\nhide variable [time v]\nforever\n    repeat until <(ステージ) = [15]>\n        wait (1) seconds\n        change [time v] by (1)\n    end\n    if <(ステージ) = [15]> then\n        show variable [time v]\n    end\nend\n\n@警察官\n\ndefine Gravity (gravity) Jump Height (jump height) Speed (speed) Friction (friction) Slope (slope)\nchange [yv v] by (gravity)\nchange y by (yv)\nif <touching (ステージ v)?> then\n    repeat until <not <touching (ステージ v)?>>\n        change y by ((([abs v] of (yv) ) / (yv)) * (-1))\n    end\n    set [yv v] to (<<(y position) < (([x position v] of [プレイヤー v]) - (25))> and <(([abs v] of (YV) ) / (YV)) = [-1]>> * (jump height))\nend\nset [xv v] to (((xv) + ((<(x position) > ([x position v] of [プレイヤー v])> * ((speed) * (-1))) + (<(x position) < ([x position v] of [プレイヤー v])> * (speed)))) * (friction))\nchange x by (xv)\nset [enemy: enemy - slope v] to [0]\nrepeat until <<(Enemy: Enemy - Slope) = ((slope) * (-1))> or <not <touching (ステージ v)?>>>\n    change y by (1)\n    change [enemy: enemy - slope v] by (-1)\nend\nif <touching (ステージ v)?> then\n    change y by (Enemy: Enemy - Slope)\n    repeat until <not <touching (ステージ v)?>>\n        change x by ((([abs v] of (xv) ) / (xv)) * (-1))\n    end\nend\npoint towards (プレイヤー v)\nif <(y position) < [-180]> then\n    delete this clone\nend\n\nwhen I receive [next v]\nrepeat (1)\n    delete this clone\nend\nwait (2.5) seconds\nif <(ステージ) = [3]> then\n    Clone at [185] [-60]\nelse\n    if <(ステージ) = [4]> then\n        Clone at [185] [-60]\n    else\n        if <(ステージ) = [5]> then\n            Clone at [-220] [170]\n            Clone at [-200] [170]\n            Clone at [-180] [170]\n        else\n            if <(ステージ) = [8]> then\n                Clone at [185] [-60]\n            else\n                if <(ステージ) = [9]> then\n                    Clone at [75] [-60]\n                    Clone at [10] [-60]\n                else\n                    if <(ステージ) = [10]> then\n                        Clone at [50] [-60]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Clone at (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    if <not <(Switch In Progress) = [yes]>> then\n        Gravity [-1] Jump Height [5] Speed [0.35] Friction [.89] Slope [2]\n    end\nend\n\nwhen I receive [やられた v]\nrepeat (1)\n    delete this clone\nend\nrepeat (5)\n    wait () seconds\nend\nif <(ステージ) = [3]> then\n    Clone at [185] [-60]\nelse\n    if <(ステージ) = [4]> then\n        Clone at [185] [-60]\n    else\n        if <(ステージ) = [5]> then\n            Clone at [-220] [170]\n            Clone at [-200] [170]\n            Clone at [-180] [170]\n        else\n            if <(ステージ) = [8]> then\n                Clone at [185] [-60]\n            else\n                if <(ステージ) = [9]> then\n                    Clone at [75] [-60]\n                    Clone at [10] [-60]\n                else\n                    if <(ステージ) = [10]> then\n                        Clone at [50] [-60]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (トゲ v)?> then\n        start sound [Hit v]\n        set [slime x v] to (x position)\n        set [slime y v] to (y position)\n        broadcast (Slime Death v)\n        delete this clone\n    end\n    if <<touching (剣 v)?> and <(剣振っている) = [OK]>> then\n        start sound [Hit v]\n        set [slime x v] to (x position)\n        set [slime y v] to (y position)\n        broadcast (Slime Death v)\n        delete this clone\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@レーザー\n\nwhen flag clicked\ngo to x: (190) y: (0)\ngo to [back v] layer\nshow\n\nwhen I receive [レーザー off v]\nhide\n\n@スイッチ\n\nwhen flag clicked\ngo to x: (-197) y: (120)\nswitch costume to (no v)\ngo to [back v] layer\nshow\nset [スイッチ v] to [NO]\nforever\n    if <(スイッチ) = [NO]> then\n        if <touching (プレイヤー v)?> then\n            switch costume to (on v)\n            start sound [決定ボタンを押す7 v]\n            set [スイッチ v] to [ON]\n            broadcast (レーザー OFF v)\n        end\n    end\nend\n\nwhen I receive [next v]\nhide\n\n@NEXT\n\nwhen flag clicked\nset [next v] to [0]\ngo to x: (0) y: (0)\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [next v]\nstart sound [フォッ v]\nswitch costume to (1 v)\nrepeat (2)\n    create clone of (_myself_ v)\n    next costume\n    wait (0.15) seconds\nend\nwait until <(NEXT) = [2]>\nwait (0.8) seconds\nbroadcast (ステージ系 次 v)\nwait until <(NEXT) = [0]>\nbroadcast (次 v)\n\nwhen I start as a clone\nchange [next v] by (1)\ngo to x: (0) y: (350)\nset [ghost v] effect to (0)\nshow\nrepeat until <(round (y position)) = [0]>\n    change y by (((0) - (y position)) / (8))\nend\nwait (0.1) seconds\nrepeat (5)\n    set [ghost v] effect to (20)\nend\nchange [next v] by (-1)\ndelete this clone\n\n@Slime Particles\n\nwhen flag clicked\nhide\n\nwhen I receive [slime death v]\nrepeat (3)\n    Particles\nend\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (0)\nset [color v] effect to (pick random (-5) to (5))\nset [brightness v] effect to (pick random (-30) to (10))\ngo to x: (SLIME X) y: (SLIME Y)\nshow\nset [xv v] to (pick random (-8) to (8))\nset [yv v] to (pick random (5) to (20))\nrepeat until <<touching (_edge_ v)?> or <touching (ステージ v)?>>\n    change [yv v] by (-2)\n    set [xv v] to ((xv) * (0.9))\n    set [yv v] to ((yv) * (0.9))\n    change x by (xv)\n    change y by (yv)\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 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                                                else\n                                                    change y by (-1)\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\ndefine Particles\nrepeat (5)\n    create clone of (_myself_ v)\nend\n\n@剣\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (-247) y: (187)\nset [剣振っている v] to [NO]\nforever\n    if <(剣ゲットしてる??) = [OK]> then\n        go to [front v] layer\n        go to x: (([x position v] of [プレイヤー v]) + (20)) y: ([y position v] of [プレイヤー v])\n    end\nend\n\nwhen I receive [剣ゲット！！ v]\nshow\nforever\n    if <key (space v) pressed?> then\n        set rotation style [all around v]\n        start sound [剣 v]\n        point in direction (90)\n        set [剣振っている v] to [OK]\n        repeat (3)\n            wait () seconds\n            turn right (15) degrees\n        end\n        repeat (3)\n            wait () seconds\n            turn left (15) degrees\n        end\n        point in direction (90)\n        set [剣振っている v] to [NO]\n    end\nend\n\nwhen I receive [剣を振る\(モバイル\) v]\nset rotation style [all around v]\nstart sound [剣 v]\npoint in direction (90)\nset [剣振っている v] to [OK]\nrepeat (3)\n    wait () seconds\n    turn right (15) degrees\nend\nrepeat (3)\n    wait () seconds\n    turn left (15) degrees\nend\npoint in direction (90)\nset [剣振っている v] to [NO]\n\nwhen I receive [next v]\nhide\n\nwhen I receive [次 v]\nshow\n\n@剣2\n\nwhen flag clicked\nhide\n\nwhen I receive [ステージ系 次 v]\ngo to x: (0) y: (30)\nif <(ステージ) = [6]> then\n    go to [front v] layer\n    go [backward v] (3) layers\n    show\nend\n\nwhen flag clicked\nforever\n    repeat (3)\n        wait (0.025) seconds\n        change y by (1)\n    end\n    wait (0.1) seconds\n    repeat (3)\n        wait (0.025) seconds\n        change y by (-1)\n    end\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nset [剣ゲットしてる?? v] to [NO]\nset [ghost v] effect to (0)\nset size to (85) %\nforever\n    if <(ステージ) = [7]> then\n        if <touching (プレイヤー v)?> then\n            repeat (5)\n                change [ghost v] effect by (20)\n                change size by (3)\n            end\n            set [剣ゲットしてる?? v] to [OK]\n            broadcast (剣ゲット！！ v)\n            hide\n        end\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [剣ゲット！！ v]\nshow\n\nwhen this sprite clicked\nbroadcast (剣を振る\(モバイル\) v) and wait\n\n@レーザー2\n\nwhen flag clicked\ngo to x: (213) y: (0)\ngo to [back v] layer\nhide\n\nwhen I receive [レーザーoff 2 v]\nhide\n\nwhen I receive [ステージ系 次 v]\nif <(ステージ) = [9]> then\n    show\nend\n\nwhen I receive [やられた v]\nif <(ステージ) = [10]> then\n    show\nend\n\n@スイッチ2\n\nwhen flag clicked\ngo to x: (145) y: (-62)\nswitch costume to (no v)\ngo to [back v] layer\nhide\nset [スイッチ2 v] to [NO]\nforever\n    if <(ステージ) = [10]> then\n        if <(スイッチ2) = [NO]> then\n            if <touching (プレイヤー v)?> then\n                switch costume to (on v)\n                start sound [決定ボタンを押す7 v]\n                set [スイッチ2 v] to [ON]\n                broadcast (レーザーOFF 2 v)\n            end\n        end\n    end\nend\n\nwhen I receive [next v]\nif <(ステージ) = [10]> then\n    hide\nend\n\nwhen I receive [ステージ系 次 v]\nif <(ステージ) = [9]> then\n    show\nend\n\nwhen I receive [やられた v]\nif <(ステージ) = [10]> then\n    set [スイッチ2 v] to [NO]\n    switch costume to (no v)\nend\n\n@サムネ\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nshow\nhide variable [☁ 世界記録 v]\nhide variable [タイム v]\n\n@広告\n\nwhen flag clicked\nhide\n\nwhen I receive [広告 v]\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]\nrepeat (20)\n    change volume by (-5)\nend\n\nwhen I receive [音 v]\nrepeat (20)\n    change volume by (5)\nend\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 I receive [\[intro\] over v]\nbroadcast (広告 v)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    go to x: (152) y: (250)\n    switch costume to (ぐれー v)\n    set size to (40) %\n    point in direction (90)\n    show\n    start sound [ポップ v]\n    repeat (30)\n        change y by (((145) - (y position)) / (4))\n    end\n    repeat (3)\n        next costume\n        wait (0.75) seconds\n    end\n    repeat (30)\n        change y by (((220) - (y position)) / (4))\n    end\n    hide\n    wait (12) seconds\nend\n\n
有罪。\nみんなのおかげで傾向4Pに載りました！ありがとう！\n━━━━━━━━━━━━━━━━━━━━━━━━\n※旗2回押し推奨\n━━━━━━━━━━━━━━━━━━━━━━━━\n無罪なのに刑務所に入れられちゃった！刑務所から脱獄しよう！！\n\n▼遊び方\n矢印キー、タップで操作。\n剣をゲットしたらスペースキーで剣を振れます(右側にだけ)モバイルの方は左下のボタンで振れます。\nモバイルに対応しています‼\n\n▼目標\n傾向1P \n参照数3000 \n♥と★100 \n━━━━━━━━━━━━━━━━━━━━━━━━\nI was put in prison even though I was innocent! Jailbreak from prison! !\n▼How to play\nOperate with arrow keys and tap.\nWhen you get a sword, you can swing the sword with the space key (only on the right side) mobile users can swing with the button on the bottom left.\nMobile friendly!\n\n▼Goals\nTrend 1P\n3000 references\n♥ and 100