Platformer Run

Instructions: 新作\nplatformer run\n画面左タップ・・・左移動\n画面右タップ・・・右移動\n画面左上タップ・・・左ジャンプ\n画面右上タップ・・・右ジャンプ\n\n

@Stage\n\nwhen flag clicked\ngo to [front v] layer\nhide variable [スコア v]\nset [brightness v] effect to (0)\nhide\n\nwhen I receive [メッセージ2 v]\nwait (0.3) seconds\nshow variable [スコア v]\nset [スコア v] to [0]\nrepeat (100)\n    wait (0.45) seconds\n    change [スコア v] by (1)\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\ngo to x: (-54) y: (17)\nshow\n\n@スプライト3\n\nwhen flag clicked\nset volume to (0) %\n\nwhen I receive [メッセージ2 v]\nset volume to (100) %\nwait (1.5) seconds\nplay sound [intro2 v] until done\nplay sound [_CPU-Mood_ by Demonicity v] until done\n\n@スプライト4\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\npoint in direction (0)\ngo to x: (0) y: (400)\nshow\nwait (2) seconds\nglide (2.5) secs to x: (0) y: (-400)\ngo to x: (0) y: (400)\n\n@スプライト5\n\nwhen flag clicked\ngo to x: (-54) y: (-67)\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nrepeat (4)\n    change [ghost v] effect by (25)\nend\nstart sound [Collect v]\nbroadcast (メッセージ1 v)\nhide\n\n@Ball\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nbroadcast (メッセージ2 v)\nhide\n\n@スプライト7\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\npoint in direction (0)\ngo to x: (-15) y: (380)\nshow\nwait (3.3) seconds\nglide (3) secs to x: (-18) y: (-380)\ngo to x: (-15) y: (380)\n\n@スプライト8\n\nwhen I receive [メッセージ2 v]\npoint in direction (0)\ngo to x: (-30) y: (600)\nwait (5.3) seconds\nshow\nglide (4) secs to x: (-30) y: (-600)\ngo to x: (-30) y: (600)\n\nwhen flag clicked\nhide\n\n@スプライト9\n\n@本体\n\nwhen I receive [メッセージ2 v]\nswitch costume to (player v)\ngo to x: (-170) y: (-100)\nset [変数 v] to [0]\nset [変数2 v] to [0]\nset rotation style [left-right v]\npoint in direction (90)\ngo [forward v] (5) layers\nshow\n\n    say (username)\n    change [変数 v] by (-1)\n    change y by (変数)\n    if <touching color (#00ffff)?> then\n        change y by ((0) - (変数))\n        set [変数 v] to [0]\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [変数 v] to [18]\n            start sound [Jump v]\n        end\n    end\n    change x by (変数2)\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        change [変数2 v] by (1.2)\n        point in direction (90)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n        change [変数2 v] by (-1.2)\n        point in direction (-90)\n    end\n    set [変数2 v] to ((変数2) / (1.1))\n    if <touching color (#00fffe)?> then\n        change x by ((0) - (変数2))\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n            set [変数 v] to [12]\n            set [変数2 v] to ((変数2) * (-0.8))\n            start sound [Jump v]\n        else\n            set [変数2 v] to [0]\n        end\n    end\n    if <[3] < (ターボ)> then\n        forever\n            go to x: (-170) y: (-125)\n        end\n    end\n    if <touching color (#a5a5a5)?> then\n        start sound [Pew v]\n        wait (0.15) seconds\n        stop all sounds\n        to by contenew\n        broadcast (メッセージ2 v)\n        wait (3) seconds\n        broadcast (いく v)\n    end\n    if <<touching color (#ff0000)?> or <touching color (#ff9898)?>> then\n        broadcast (プッシュ v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (コスチューム1 v)\nset size to (70) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen I receive [ﾀﾋ v]\ngo to x: (-170) y: (-125)\nswitch costume to (player v)\n\nwhen I receive [バック v]\nhide\n\nwhen I receive [隠しステージ v]\ngo to [front v] layer\nshow\n\ndefine to by contenew\ngo to [front v] layer\nswitch costume to (sprite3 v)\nset [変数 v] to [0]\npoint in direction (90)\nset rotation style [all around v]\nset [出久 v] to (pick random (15) to (18))\nstart sound [crashed oof 2 v]\nrepeat until <[-180] > (y position)>\n    show\n    go to [front v] layer\n    turn right (出久) degrees\n    change y by (出久)\n    change [出久 v] by (-1)\nend\nhide\nswitch costume to (sprite1 v)\nwait (0.5) seconds\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (-20)\npoint in direction (90)\nset [変数 v] to [9999]\n\nwhen I receive [ﾀﾋ v]\nto by contenew\n\n@スプライト2\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\ngo to x: (36) y: (28)\ngo [forward v] (1) layers\nshow\n\n@スプライト10\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (-18) y: (600)\nshow\nwait (9.8) seconds\nglide (4) secs to x: (-18) y: (-600)\ngo to x: (-18) y: (600)\n\nwhen flag clicked\nhide\n\n@スプライト11\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (0) y: (600)\nshow\nwait (7.8) seconds\nglide (4) secs to x: (0) y: (-600)\ngo to x: (0) y: (600)\n\nwhen flag clicked\nhide\n\n@スプライト16\n\nwhen flag clicked\ngo to x: (0) y: (200)\nhide\n\nwhen I receive [メッセージ2 v]\ngo to x: (0) y: (200)\ngo to [front v] layer\nshow\nrepeat (30)\n    change y by (((130) - (y position)) / (8))\nend\nrepeat (3)\n    set [brightness v] effect to (50)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\nrepeat (30)\n    change y by (((200) - (y position)) / (8))\nend\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nhide\nwait (3) seconds\nhide\n\n@スプライト12\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (-18) y: (600)\nshow\nwait (11.6) seconds\nglide (4) secs to x: (-18) y: (-600)\ngo to x: (-18) y: (600)\n\nwhen flag clicked\nhide\n\n@スプライト13\n\nwhen I receive [メッセージ2 v]\npoint in direction (0)\ngo to x: (-30) y: (600)\nshow\nwait (13.6) seconds\nglide (4) secs to x: (-30) y: (-600)\ngo to x: (-30) y: (600)\n\nwhen flag clicked\nhide\n\n@スプライト14\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (0) y: (600)\nshow\nwait (15) seconds\nglide (4) secs to x: (0) y: (-600)\ngo to x: (0) y: (600)\nbroadcast (次 v)\n\n@スプライト15\n\nwhen flag clicked\ngo to x: (300) y: (0)\nhide\n\nwhen I receive [メッセージ2 v]\ngo to x: (300) y: (0)\nwait (16.4) seconds\ngo to [front v] layer\nshow\nrepeat (30)\n    change x by (((200) - (x position)) / (8))\nend\nrepeat (3)\n    set [brightness v] effect to (50)\n    wait (0.2) seconds\n    set [brightness v] effect to (0)\n    wait (0.2) seconds\nend\nrepeat (30)\n    change x by (((300) - (x position)) / (8))\nend\nhide\n\n@バグ解消\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\ngo to x: (229) y: (-20)\ngo to [front v] layer\nshow\n\n@スプライト6\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (600) y: (-45)\nwait (18.5) seconds\nshow\nglide (4) secs to x: (-600) y: (-45)\ngo to x: (600) y: (-45)\n\nwhen flag clicked\nhide\n\n@スプライト17\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (600) y: (-45)\nwait (20.7) seconds\nshow\nglide (4) secs to x: (-600) y: (-45)\ngo to x: (600) y: (-45)\n\n@スプライト18\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (600) y: (17)\nwait (22.7) seconds\nshow\nglide (4.5) secs to x: (-600) y: (17)\ngo to x: (600) y: (17)\n\nwhen flag clicked\nhide\n\n@スプライト19\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (670) y: (0)\nwait (25) seconds\nshow\nglide (4.8) secs to x: (-670) y: (0)\ngo to x: (670) y: (0)\n\nwhen flag clicked\nhide\n\n@スプライト20\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (600) y: (6)\nwait (27.5) seconds\nshow\nglide (4.5) secs to x: (-600) y: (6)\ngo to x: (600) y: (6)\n\nwhen flag clicked\nhide\n\n@スプライト21\n\nwhen flag clicked\ngo to x: (300) y: (0)\nhide\n\nwhen I receive [メッセージ2 v]\ngo to x: (-300) y: (0)\nwait (32) seconds\ngo to [front v] layer\nshow\nrepeat (30)\n    change x by (((-200) - (x position)) / (8))\nend\nrepeat (3)\n    set [brightness v] effect to (50)\n    wait (0.2) seconds\n    set [brightness v] effect to (0)\n    wait (0.2) seconds\nend\nrepeat (30)\n    change x by (((-300) - (x position)) / (8))\nend\nhide\n\n@スプライト22\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (-700) y: (-46)\nwait (33.8) seconds\nshow\nglide (4) secs to x: (700) y: (-46)\ngo to x: (-700) y: (-46)\n\nwhen flag clicked\nhide\n\n@バグ解消2\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\ngo to x: (-255) y: (-20)\ngo to [front v] layer\nshow\n\n@スプライト23\n\nwhen I receive [メッセージ2 v]\nswitch costume to (コスチューム1 v)\npoint in direction (90)\nwait (36) seconds\nshow\nglide (4) secs to x: (700) y: (-112)\ngo to x: (-700) y: (-112)\n\nwhen flag clicked\ngo to x: (-700) y: (-112)\nhide\n\nwhen I receive [プッシュ v]\nswitch costume to (コスチューム3 v)\nwait (0.05) seconds\nswitch costume to (コスチューム2 v)\nbroadcast (OK v)\nstart sound [Collect v]\n\n@スプライト24\n\nwhen I receive [メッセージ2 v]\ngo to x: (-700) y: (29)\nswitch costume to (コスチューム1 v)\npoint in direction (90)\nwait (40) seconds\nshow\nglide (4) secs to x: (700) y: (29)\ngo to x: (-700) y: (29)\n\nwhen flag clicked\ngo to x: (-600) y: (29)\nhide\n\nwhen I receive [ok v]\nswitch costume to (コスチューム3 v)\n\n@スプライト25\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (-700) y: (-46)\nwait (41.3) seconds\nshow\nglide (4) secs to x: (700) y: (-46)\ngo to x: (-700) y: (-46)\n\nwhen flag clicked\nhide\n\n@スプライト26\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (-700) y: (-46)\nwait (42.9) seconds\nshow\nglide (4) secs to x: (700) y: (-46)\ngo to x: (-700) y: (-46)\n\nwhen flag clicked\nhide\n\n@スプライト27\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (-700) y: (20)\nwait (44.9) seconds\nshow\nglide (4) secs to x: (700) y: (20)\ngo to x: (-700) y: (20)\n\nwhen flag clicked\nhide\n\n@スプライト28\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\npoint in direction (90)\ngo to x: (-550) y: (20)\nwait (48) seconds\nshow\nstart sound [Win v]\nglide (2) secs to x: (0) y: (20)\nwait (1) seconds\nglide (2) secs to x: (550) y: (20)\nhide\n\n@スプライト29\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ2 v]\nwait (52) seconds\ngo to [front v] layer\nshow\n\n