3D風Platformer(Mobile対応)

Instructions: 日本語下です\nRecommended to press the flag twice\nIt's difficult w\nPC… ← ↑ →\nMobile ... tap\nTips ... Avoid needles sideways Balls jump at god timing\nDo your best to aim for the world record!\nTrend 1 page! 2/8\nTrend 10th 2/8\nTrend 4th 2/9\n\n旗２回押し推奨\n難しいよw\nPC…←↑→\nMobile…タップ\nコツ… 針は横に避けるボールは神タイミングでジャンプ\n世界記録目指して頑張って！\n傾向1ページ！2/8\n傾向10位2/8\n傾向4位2/9

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景2 v)\n\nwhen I receive [初め v]\nnext backdrop\nforever\n    play sound [TheFatRat - Time Lapse.mp3 v] until done\nend\n\n@スプライト1\n\nwhen flag clicked\nhide variable [記録 v]\nhide variable [☁ 世界記録 v]\ngo to [front v] layer\nset size to (90) %\ngo to x: (0) y: (-123)\nhide\n\ndefine ﾀﾋ\nbroadcast (ﾀﾋ v)\n\nwhen I start as a clone\nrepeat (20)\n    change [ghost v] effect by (5)\n    change size by (-1.3)\nend\ndelete this clone\n\nwhen I receive [ﾀﾋ v]\nhide\n\nwhen I receive [初め v]\nset [ghost v] effect to (0)\nforever\n    if <touching (判定2 v)?> then\n        move (10) steps\n    end\n    if <touching (判定 v)?> then\n        move (-10) steps\n    end\n    if <<touching (トゲ v)?> and <(costume [name v]) = [1]>> then\n        ﾀﾋ\n    end\n    if <<<touching (ボール v)?> or <touching (ボール2 v)?>> and <(costume [name v]) = [1]>> then\n        ﾀﾋ\n    end\nend\n\nwhen I receive [初め v]\nforever\n    wait (0.01) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [初め v]\nforever\n    if <<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>> then\n        change x by (-30)\n    end\n    wait until <not <<<mouse down?> and <(mouse x) < (x position)>> or <key (left arrow v) pressed?>>>\nend\n\nwhen I receive [初め v]\nforever\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change x by (30)\n    end\n    wait until <not <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>>>\nend\n\nwhen I receive [初め v]\nswitch costume to (1 v)\nforever\n    wait until <<<mouse down?> and <[0] < (mouse y)>> or <key (up arrow v) pressed?>>\n    switch costume to (2 v)\n    set size to (90) %\n    repeat (5)\n        change size by (1)\n        change y by (25)\n    end\n    repeat (5)\n        change size by (1)\n        change y by (20)\n    end\n    wait (0.1) seconds\n    repeat (5)\n        change y by (-25)\n        change size by (-1)\n    end\n    repeat (5)\n        change y by (-20)\n        change size by (-1)\n    end\n    switch costume to (1 v)\nend\n\nwhen I receive [初め v]\ngo to [front v] layer\nshow\n\n@スプライト2\n\nwhen flag clicked\nerase all\ngo to [back v] layer\nerase all\nhide\n\nwhen I receive [初め v]\npen up\ngo to x: (0) y: (0)\npen down\nset pen color to (#00ffcb)\nset pen size to (1000)\nset pen (transparency v) to (93)\nmove (10) steps\nmove (-10) steps\n\n@地面\n\nwhen flag clicked\nhide\n\nwhen I receive [初め v]\ngo [backward v] (1) layers\ngo to x: (0) y: (-89)\nshow\nforever\n    change [color v] effect by (3)\nend\n\n@スプライト3\n\nwhen flag clicked\nhide variable [☁ 世界記録 v]\nhide variable [記録 v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [ﾀﾋ v]\nshow\nplay sound [crashed oof v] until done\nforever\n    if <(記録) > (☁ 世界記録)> then\n        set [☁ 世界記録 v] to (記録)\n    end\n    stop [all v]\nend\n\nwhen [timer v] > (0)\nforever\n    if <(記録) > (☁ 世界記録)> then\n        set [☁ 世界記録 v] to (記録)\n    end\nend\n\nhide variable [☁ 世界記録 v]\n\nwhen I receive [初め v]\nhide\nshow variable [記録 v]\nset [記録 v] to [0]\nshow variable [☁ 世界記録 v]\nforever\n    wait (0.1) seconds\n    change [記録 v] by (1)\nend\n\nwhen I receive [初め v]\nforever\n    if <(記録) > (☁ 世界記録)> then\n        set [☁ 世界記録 v] to (記録)\n    end\nend\n\n@判定\n\nwhen flag clicked\ngo to x: (33) y: (27)\ngo to [back v] layer\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [初め v]\nshow\nset [ghost v] effect to (100)\n\n@判定2\n\nwhen flag clicked\ngo to x: (-17) y: (29)\ngo to [back v] layer\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [初め v]\nshow\nset [ghost v] effect to (100)\n\n@トゲ\n\nwhen flag clicked\nswitch costume to (2 v)\nhide\n\nwhen I receive [トゲ v]\nwait (pick random (3) to (10)) seconds\ngo to x: (pick random (-35) to (42)) y: (16)\nset size to (100) %\nshow\nwait (0.5) seconds\nforever\n    repeat (25)\n        change y by (-3)\n        change size by (3)\n    end\n    wait (0.3) seconds\n    hide\n    broadcast (トゲ v)\nend\n\nwhen I receive [初め v]\nbroadcast (トゲ v)\nset size to (100) %\n\n@ボール\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (215) y: (-43)\nhide\n\nwhen I receive [ボール v]\ngo to x: (215) y: (-43)\nset size to (100) %\nwait (pick random (3) to (14)) seconds\nshow\nwait (0.4) seconds\nrepeat (10)\n    wait (0.2) seconds\n    move (-20) steps\n    change y by (-20)\n    move (-20) steps\n    change size by (10)\nend\nhide\nbroadcast (ボール v)\n\nwhen I receive [初め v]\nbroadcast (ボール v)\n\n@ボール2\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (215) y: (-43)\nhide\n\nwhen I receive [ボール v]\ngo to x: (-215) y: (-43)\nset size to (100) %\nwait (pick random (4) to (13)) seconds\nshow\nwait (0.7) seconds\nrepeat (10)\n    wait (0.2) seconds\n    move (20) steps\n    change y by (-20)\n    move (20) steps\n    change size by (10)\nend\nhide\nbroadcast (ボール v)\n\nwhen I receive [初め v]\nbroadcast (ボール v)\n\n@スプライト10\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (80)\nset size to (pick random (40) to (70)) %\nrepeat until \n    change y by (((size) / (12)) * (-1))\n    if <key ((<<mouse down?> and <(mouse x) > [0]>> - <<mouse down?> and <[0] > (mouse x)>>) v) pressed?> then\n        change x by (((size) / (40)) * (2))\n    end\n    if <key ((<<mouse down?> and <(mouse x) > [0]>> - <<mouse down?> and <[0] > (mouse x)>>) v) pressed?> then\n        change x by (((size) / (40)) * (-2))\n    end\nend\ndelete this clone\n\nwhen flag clicked\nforever\n\nwhen I receive [初め v]\nset [ghost v] effect to (80)\ngo to [front v] layer\ngo [backward v] (1) layers\nset size to (40) %\nforever\n    set y to (180)\n    set x to (pick random (-350) to (350))\n    if <(x position) < [-240]> then\n        set y to (pick random (-180) to (180))\n    end\n    if <[240] < (x position)> then\n        set y to (pick random (-180) to (180))\n    end\n    wait (0.5) seconds\n    create clone of (_myself_ v)\nend\n\n@サムネ\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\n@INTROの元\n\nwhen flag clicked\nhide\nstart sound [Teminite & MDK - Space Invaders v]\nswitch costume to (コスチューム5 v)\nset [番号 v] to [1]\ncreate clone of (_myself_ v)\nwait (.5) seconds\nset [brightness v] effect to (100)\nset [番号 v] to [1]\ncreate clone of (_myself_ v)\nset [brightness v] effect to (0)\nwait (1) seconds\nswitch costume to (コスチューム2 v)\nパーン\nset [番号 v] to [2]\nrepeat (3)\n    create clone of (_myself_ v)\n    next costume\n    wait (0) seconds\nend\nwait (1) seconds\nswitch costume to (コスチューム8 v)\nset [番号 v] to [1]\ncreate clone of (_myself_ v)\nwait (.6) seconds\nset [brightness v] effect to (100)\nパーン\nset [brightness v] effect to (0)\nset [番号 v] to [4]\nswitch costume to (コスチューム9 v)\ngo to x: (-220) y: (200)\nrepeat (8)\n    create clone of (_myself_ v)\n    change x by (60)\n    next costume\n    wait (0) seconds\nend\nwait (1) seconds\nswitch costume to (コスチューム17 v)\nset [番号 v] to [1]\ncreate clone of (_myself_ v)\nwait (.6) seconds\nパーン\nswitch costume to (コスチューム2 v)\nset [番号 v] to [2]\nrepeat (3)\n    create clone of (_myself_ v)\n    next costume\n    wait (0) seconds\nend\nwait (1) seconds\nset [番号 v] to [5]\ncreate clone of (_myself_ v)\nwait (1) seconds\nbroadcast (メッセージ1 v)\nset [番号 v] to [6]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(番号) = [1]> then\n    show\n    go to [front v] layer\n    set [コスチューム v] to (costume [number v])\n    set size to (0) %\n    go to x: (-240) y: (0)\n    repeat until <(size) > [125]>\n        turn right (7.5) degrees\n        change size by ((size) / (4))\n        change x by (((0) - (x position)) / (7))\n    end\n    repeat until <(size) > [1000]>\n        switch costume to (コスチューム1 v)\n        turn right (10) degrees\n        change size by ((size) / (4))\n        switch costume to (コスチューム)\n        change x by (((0) - (x position)) / (7))\n    end\nelse\n    if <(番号) = [2]> then\n        show\n        go to x: (0) y: (200)\n        go to [front v] layer\n        repeat (60)\n            set [s v] to ((((0) - (y position)) / (1.3)) - ((s) / (-1.2)))\n            change y by (s)\n        end\n    else\n        if <(番号) = [3]> then\n            switch costume to (pick random (6) to (11))\n            go to x: (0) y: (0)\n            point in direction (pick random (-180) to (180))\n            show\n            set size to (6) %\n            set [x v] to (pick random (-14) to (14))\n            set [y v] to (pick random (1) to (17))\n            repeat until <touching (_edge_ v)?>\n                go to [front v] layer\n                change x by (x)\n                change y by (y)\n                if <[1] < (x)> then\n                    change [x v] by (-.5)\n                end\n                if <(x) < [-1]> then\n                    change [x v] by (.5)\n                end\n                turn right ((size) / (7)) degrees\n                change [y v] by (-1)\n            end\n            delete this clone\n        else\n            if <(番号) = [4]> then\n                show\n                go to [front v] layer\n                repeat (60)\n                    set [s v] to ((((0) - (y position)) / (1.3)) - ((s) / (-1.2)))\n                    change y by (s)\n                end\n            else\n                if <(番号) = [5]> then\n                    go to x: (0) y: (0)\n                    set size to (0) %\n                    show\n                    go to [front v] layer\n                    repeat until <(size) > [399]>\n                        switch costume to (コスチューム1 v)\n                        change size by (((400) - (size)) / (7))\n                        switch costume to (コスチューム17 v)\n                    end\n                else\n                    if <(番号) = [6]> then\n                        go to x: (0) y: (0)\n                        switch costume to (コスチューム1 v)\n                        set size to (500) %\n                        switch costume to (コスチューム3 v)\n                        show\n                        go to [front v] layer\n                        repeat until <[51] > (size)>\n                            change size by (((50) - (size)) / (7))\n                        end\n                        set [y v] to [7]\n                        repeat until <touching (_edge_ v)?>\n                            change y by (y)\n                            change [y v] by (-1)\n                        end\n                        repeat (2)\n                            change y by (y)\n                            change [y v] by (-1)\n                        end\n                        broadcast (初め v)\n                        hide\n                    else\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine パーン\nset [番号 v] to [3]\nrepeat (30)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [メッセージ1 v]\ndelete this clone\n\n