Platformer with a lot of gimmicks  ギミック多めのプラットフォーマー！【 #S_Fes】

Instructions: 難易度　★★★★☆\nタップ、または矢印キーで操作します！\n\nDifficulty ★★★★ ☆\nOperate with taps or arrow keys!

@Stage\n\nwhen I receive [the end v]\nforever\n    play sound [Time To Leaf v] until done\nend\n\n@player\n\ndefine 初期設定プログラム\nshow\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (stand v)\ngo to x: (-200) y: (-50)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <<key (down arrow v) pressed?> or <<mouse down?> and <(y position) > (mouse y)>>> then\n    switch costume to (しゃがむクローン v)\n    repeat (4)\n        change size by (-4)\n        change [ghost v] effect by (1.34)\n    end\n    delete this clone\nelse\n    switch costume to (止まるクローン v)\n    repeat (4)\n        change size by (-4)\n        change [ghost v] effect by (1.34)\n    end\n    delete this clone\nend\n\nwhen I receive [the end v]\nforever\n    switch costume to (止まる v)\n    if <<key (down arrow v) pressed?> or <<mouse down?> and <(y position) > (mouse y)>>> then\n        switch costume to (しゃがむ v)\n    end\nend\n\nwhen I receive [the end v]\n初期設定プログラム\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        point in direction (90)\n        change [x v] by (1)\n        create clone of (_myself_ v)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n        create clone of (_myself_ v)\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 x by ((x) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(x) < [0]> 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    change y by (-1)\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <touching (地面 v)?> then\n            set [y v] to [15]\n            start sound [ニュッ v]\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (地面 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <[240] < (x position)> then\n        broadcast (メッセージ1 v)\n        hide\n        wait (0) seconds\n        初期設定プログラム\n    end\n    if <<touching (トゲ v)?> or <(y position) < [-170]>> then\n        初期設定プログラム\n        start sound [crashed oof v]\n    end\n    if <touching (ジャンプ台 v)?> then\n        if <not <(y) = [0]>> then\n            set [y v] to [18.5]\n            start sound [Whiz v]\n        end\n    end\n    if <touching (水 v)?> then\n        set [x v] to ((x) / (1.3))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [y v] by (4)\n        else\n            change [y v] by (-2)\n        end\n    end\n    if <(ステージ) = [19]> then\n        change [x v] by (0.7)\n    end\nend\n\n@地面\n\nwhen flag clicked\nhide variable [time v]\nhide\n\nwhen I receive [メッセージ1 v]\nchange [ステージ v] by (1)\nhide\nwait (0) seconds\nshow\n\nwhen I receive [the end v]\nshow\ngo to x: (0) y: (0)\nset [ステージ v] to [1]\nforever\n    switch costume to (ステージ)\nend\n\nwhen I receive [the end v]\nrepeat until <(ステージ) = [20]>\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen I receive [the end v]\nforever\n    if <(ステージ) = [20]> then\n        show variable [time v]\n    end\nend\n\n@トゲ\n\nwhen flag clicked\nhide\nset [ステージ v] to [1]\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I receive [the end v]\nforever\n    if <(ステージ) = [4]> then\n        show\n        switch costume to (1 v)\n    end\n    if <(ステージ) = [5]> then\n        show\n        switch costume to (2 v)\n    end\n    if <(ステージ) = [6]> then\n        hide\n    end\n    if <(ステージ) = [7]> then\n        show\n        switch costume to (3 v)\n    end\n    if <(ステージ) = [8]> then\n        hide\n    end\n    if <(ステージ) = [9]> then\n        show\n        switch costume to (4 v)\n    end\n    if <(ステージ) = [10]> then\n        show\n        switch costume to (5 v)\n    end\n    if <(ステージ) = [11]> then\n        hide\n    end\n    if <(ステージ) = [12]> then\n        switch costume to (6 v)\n        show\n    end\n    if <(ステージ) = [13]> then\n        show\n        turn right (-5) degrees\n        switch costume to (7 v)\n    end\n    if <(ステージ) = [14]> then\n        point in direction (90)\n    end\n    if <(ステージ) = [14]> then\n        switch costume to (9 v)\n        hide\n        point in direction (90)\n        go to x: (0) y: (0)\n        switch costume to (9 v)\n        if <(distance to [player v]) < [150]> then\n            show\n        else\n            hide\n        end\n    end\n    if <(ステージ) = [15]> then\n        switch costume to (10 v)\n        show\n    end\n    if <(ステージ) = [16]> then\n        switch costume to (11 v)\n        show\n    end\n    if <(ステージ) = [17]> then\n        switch costume to (12 v)\n        if <(distance to [player v]) < [60]> then\n            show\n        else\n            hide\n        end\n    end\n    if <(ステージ) = [18]> then\n        show\n        switch costume to (13 v)\n    end\n    if <(ステージ) = [19]> then\n        show\n        switch costume to (14 v)\n    end\n    if <(ステージ) = [20]> then\n        hide\n    end\n    if <(ステージ) = [21]> then\n        show\n        switch costume to (15 v)\n        turn right (-10) degrees\n    end\n    if <(ステージ) = [22]> then\n        hide\n    end\nend\n\n@ジャンプ台\n\nwhen flag clicked\nhide\n\nwhen I receive [the end v]\nforever\n    if <(ステージ) = [12]> then\n        show\n    end\n    if <(ステージ) = [13]> then\n        hide\n    end\nend\n\n@スプライト2\n\nwhen flag clicked\nhide\n\nwhen I receive [the end v]\nshow\ngo to [back v] layer\nset size to (100) %\nforever\n    change [s v] by (5)\n    change size by ([cos v] of (s) )\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\nforever\n    if <(ステージ) = [19]> then\n        set [ghost v] effect to (30)\n        show\n        go to x: (pick random (1) to (10)) y: (pick random (1) to (10))\n    else\n        hide\n    end\nend\n\nwhen I receive [メッセージ1 v]\nif <(ステージ) = [19]> then\n    start sound [風が吹く v]\nend\nif <(ステージ) = [20]> then\n    stop all sounds\nend\n\n@スプライト3\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Free INTR\n\nwhen I start as a clone\nif <[1] = (ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ)> then\n    point in direction (90)\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    switch costume to (blue v)\n    go to [front v] layer\n    wait (0.7) seconds\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\nend\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen flag clicked\npoint in direction (90)\nhide\nreset timer\nset [ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ v] to [1]\ncreate clone of (_myself_ v)\nwait (1.5) seconds\nset [ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ v] to [3]\ncreate clone of (_myself_ v)\nwait (6) seconds\nset [ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ v] to [4]\ngo to x: (-240) y: (0)\npoint in direction (0)\ncreate clone of (_myself_ v)\nrepeat (9)\n    change x by (55)\n    turn right (1) degrees\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <[2] = (ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ)> then\n    point in direction (90)\n    set [ghost v] effect to (40)\n    go to [back v] layer\n    go [forward v] (1) layers\n    go to x: (0) y: (-394)\n    switch costume to (x% v)\n    show\n    glide (2) secs to x: (0) y: (394)\n    delete this clone\nend\n\nwhen flag clicked\nset [ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ v] to [0]\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nrepeat (200)\n    set [ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ v] to [2]\n    create clone of (_myself_ v)\n    wait (0.8) seconds\nend\n\nwhen I start as a clone\nif <[0] = (ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ)> then\n    point in direction (90)\n    switch costume to (black v)\n    go to x: (0) y: (0)\n    show\n    forever\n        go to [front v] layer\n        go [backward v] (1) layers\n    end\nend\n\nwhen I start as a clone\nif <[3] = (ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ)> then\n    point in direction (90)\n    go to [front v] layer\n    go [backward v] (3) layers\n    set [ghost v] effect to (100)\n    go to x: (0) y: (186)\n    switch costume to (your name v)\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n        change y by ((() - (y position)) / (7))\n    end\n    repeat (2)\n        wait () seconds\n    end\n    set rotation style [all around v]\n    repeat (5)\n        point in direction (-90)\n        set [π v] to [0]\n        set size to (0) %\n        repeat (30)\n            set [π v] to (((π) * (0.75)) + (((90) - (direction)) / (5)))\n            turn right (π) degrees\n            change size by ((((π) + (10)) * (0.5)) + (((100) - (size)) / (3)))\n        end\n    end\nend\n\nwhen I start as a clone\nif <[1] = (ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ)> then\n    forever\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nif <[4] = (ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ)> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nif <[4] = (ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ)> then\n    switch costume to (white v)\n    set [π v] to (direction)\n    set [color v] effect to (((π) mod (2)) * (25))\n    set size to (0) %\n    set [ghost v] effect to (100)\n    show\n    go to x: (0) y: (-361)\n    repeat (20)\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to ((100) - (size))\n        change x by ((((-240) + ((55) * (π))) - (x position)) / (3))\n        change y by ((() - (y position)) / (3))\n        turn right (((90) - (direction)) / (3)) degrees\n    end\n    wait (0.2) seconds\n    broadcast (THE END v)\nend\n\nwhen I receive [the end v]\nif <(ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ) = [4]> then\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    wait ((1) / ()) seconds\n    delete this clone\nelse\n    stop [other scripts in sprite v]\n    delete this clone\nend\n\nwhen flag clicked\nstart sound [Blooom - Be Around \[NCS Release\] v]\n\n