valley  II  platformer (mobile friendly)
@Stage\n\nwhen flag clicked\nswitch backdrop to (背景2 v)\nset volume to (50) %\nbroadcast (intro v)\n\nwhen I receive [7 v]\nswitch backdrop to (背景3 v)\n\nwhen I receive [8 v]\nswitch backdrop to (背景2 v)\n\n@player.\n\nwhen flag clicked\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5.3)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\ndefine 動作\nif <<<(x position) > (mouse x)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n    create clone of (_myself_ v)\n    change [xのやつ v] by (-1)\n    point in direction (-90)\nend\nif <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n    create clone of (_myself_ v)\n    change [xのやつ v] by (1)\n    point in direction (90)\nend\nset [xのやつ v] to ((xのやつ) * (0.9))\nchange x by (xのやつ)\nif <touching (box v)?> then\n    change y by (1)\n    if <touching (box v)?> then\n        change y by (1)\n        if <touching (box v)?> then\n            change y by (1)\n            if <touching (box v)?> then\n                change y by (1)\n                if <touching (box v)?> then\n                    change y by (1)\n                    if <touching (box v)?> then\n                        change x by ((xのやつ) * (-1))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                            start sound [ニュッ2 v]\n                            if <(xのやつ) > [0]> then\n                                set [xのやつ v] to [-7]\n                            else\n                                set [xのやつ v] to [7]\n                            end\n                            set [ｙだー v] to [15]\n                        else\n                            set [xのやつ v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (-1)\nif <touching (box v)?> then\n    if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n        set [ｙだー v] to [16.3]\n        start sound [ニュッ2 v]\n    end\nend\nchange y by (1)\nchange [ｙだー v] by (-1)\nchange y by (ｙだー)\nif <touching (box v)?> then\n    change y by ((ｙだー) * (-1))\n    set [ｙだー v] to [0]\nend\nif <(x position) > [230]> then\n    broadcast (あ v)\n    start sound [Rip v]\n    wait (1) seconds\n    go to x: (-216) y: (50)\nend\nif <touching (ゆ v)?> then\n    start sound [High Whoosh v]\n    set [ｙだー v] to [20.89]\nend\nif <<<mouse down?> and <(y position) > (mouse y)>> or <key (down arrow v) pressed?>> then\n    switch costume to (3 v)\nend\nif <not <<<mouse down?> and <(y position) > (mouse y)>> or <key (down arrow v) pressed?>>> then\n    switch costume to (2 v)\nend\n\ndefine 炎上した者たちの末路\nif <touching (^-^ v)?> then\n    start sound [crashed oof v]\n    repeat (10)\n        change [ghost v] effect by (7)\n    end\n    clear graphic effects\n    go to x: (-189) y: (18)\nend\n\nwhen flag clicked\nforever\n    play sound [NIVIRO - Memes \[NCS Release\] v] until done\nend\n\nwhen flag clicked\nswitch costume to (2 v)\nset [level v] to [0]\npoint in direction (90)\nset [ghost v] effect to (100)\ngo to x: (-230) y: (10)\nwait (0.03) seconds\nrepeat (30)\n    change [ghost v] effect by (-5)\nend\nset [時間 v] to [0]\nset rotation style [left-right v]\nswitch backdrop to (背景7 v)\nshow\nset size to (70) %\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    炎上した者たちの末路\n    動作\nend\n\n@next level.\n\nwhen flag clicked\nhide\n\nwhen I receive [あ v]\nshow\ngo to [front v] layer\ngo to x: (-480) y: (0)\nglide (0.3) secs to x: (0) y: (0)\nwait (0.3) seconds\nglide (0.3) secs to x: (400) y: (0)\nhide\n\n@box\n\nwhen I receive [あ v]\nwait (0.5) seconds\nnext costume\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (1 v)\n    end\n    if <(costume [number v]) = [3]> then\n        broadcast (3 v)\n    end\n    if <(costume [number v]) = [4]> then\n        broadcast (4 v)\n    end\n    if <(costume [number v]) = [5]> then\n        broadcast (5 v)\n    end\n    if <(costume [number v]) = [6]> then\n        broadcast (6 v)\n    end\n    if <(costume [number v]) = [7]> then\n        broadcast (7 v)\n    end\n    if <(costume [number v]) = [8]> then\n        broadcast (8 v)\n    end\n    if <(costume [number v]) = [9]> then\n        broadcast (9 v)\n    end\n    if <(costume [number v]) = [10]> then\n        broadcast (10 v)\n    end\n    if <(costume [number v]) = [11]> then\n        broadcast (11 v)\n    end\n    if <(costume [number v]) = [12]> then\n        broadcast (12 v)\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (9) y: (-8)\ngo to [back v] layer\nswitch costume to (コスチューム1 v)\nwait (0.3) seconds\nrepeat (30)\n    change [ghost v] effect by (-5)\nend\n\n@notif\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [tick v]\ngo to [front v] layer\n\nwhen flag clicked\ngo to x: (0) y: (50)\nhide\n\nwait (pick random (20) to (30)) seconds\nstart sound [pop v]\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (14) to (26)) seconds\n    show\n    start sound [pop v]\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\n@^-^\n\nwhen flag clicked\nswitch costume to (コスチューム1 \(1\) v)\nhide\n\nwhen I receive [1 v]\nhide\n\nwhen I receive [4 v]\nswitch costume to (\(1 v)\nshow\n\nwhen I receive [3 v]\nswitch costume to (コスチューム1 \(1\) v)\nshow\n\nwhen I receive [5 v]\nswitch costume to (ューム1 \(1\)2 v)\n\nwhen I receive [6 v]\nswitch costume to (コスチューム1 v)\nshow\n\nwhen I receive [7 v]\nswitch costume to (888 v)\n\nwhen I receive [8 v]\nswitch costume to (2 v)\nshow\n\nwhen I receive [9 v]\nswitch costume to (コスチューム1 \(1\)2 v)\nshow\n\nwhen I receive [10 v]\nswitch costume to (コスチ v)\n\nwhen I receive [11 v]\nhide\n\n@die\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
　　　　＝＝＝How to play＝＝＝\n\nUse the arrow keys or tap to move the Player. \nUp arrow keys or tap to jump.\n\n完全に失敗作。