Colorful! a platformer

Instructions: 新作公開!!⇩\n https://scratch.mit.edu/projects/960928524\n\n元傾向1位！！！！！\n♡2000突破!\n♡と☆3000突破でアプデします!!\nなんか傾向1位変なのに抜かれてた；；\n\n　　　　✨AMONG US  PLATFORMER✨\n\n日本語は下です\n\nEnglish\n▶About this work\n　This is a platformer of Amongas!\n　Please enjoy it!\n\n▶Controls\n　Use arrow keys to control.\n　Tap the direction you want to go to advance the mobile.\n\n　Avoid hitting the imposter or the abyss!\n\nDifficulty\nPC ★★☆☆☆\nmobile★★★☆☆\nCredits\n　BGM Taken from YouTube\n　Sound Effects Sound Effect Lab\n　　\n▶tag/tag\n#game #all #platformer #AMONG US\n\n　日本語\n▶この作品について\n　アモングアスのプラットフォーマーです!!\n　ぜひ楽しんでください!!\n\n▶操作方法\n　矢印キーで操作します。\n　モバイルはいきたい方向をタップで進めます\n\n　インポスターや奈落に当たらないようにしてください!\n\n▶難易度\nPC　　　★★☆☆☆\nモバイル  ★★★☆☆\n\n▶クレジット\n　BGM ようつべより引用\n　効果音 効果音ラボ\n　アモングアス作者様\n　作品参考\n　スク友の@-Lemu-が出してたプラフォ\n　　\n▶tag/タグ\n#game #all #platformer #AMONG US

@Stage\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [Music v] until done\nend\n\nwhen flag clicked\nset [brightness v] effect to (100)\n\nwhen I receive [next level v]\nclear graphic effects\nrepeat (100)\n    change volume by (-1)\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Intro\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nwait (1) seconds\nrepeat (6)\n    next costume\n    wait (0.1) seconds\nend\nwait (1) seconds\nrepeat (10)\n    next costume\n    wait (0.1) seconds\nend\nwait (2) seconds\nrepeat (9)\n    next costume\n    wait (0.1) seconds\nend\nwait (1.5) seconds\nrepeat (5)\n    next costume\n    wait (0.1) seconds\nend\nwait (1) seconds\ngo to [front v] layer\nbroadcast (Start v)\nset [yv v] to [0]\nforever\n    change [yv v] by (-1)\n    set size to (200) %\n    change y by (yv)\n    set size to (100) %\nend\n\nwhen this sprite clicked\nswitch costume to (31 v)\nstop [other scripts in sprite v]\ngo to [front v] layer\nbroadcast (Start v)\nset [yv v] to [0]\nforever\n    change [yv v] by (-1)\n    set size to (200) %\n    change y by (yv)\n    set size to (100) %\nend\n\n@player\n\nwhen I receive [start v]\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (100) %\ngo to x: (-200) y: (-120)\nshow\nforever\n    change x by (xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    set [xv v] to ((xv) * (0.85))\n    change [yv v] by (-1)\n    change y by (yv)\n    if <touching color (#000000)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <<key (up arrow v) pressed?> or <<key (space v) pressed?> or <key (w v) pressed?>>>> then\n        set [yv v] to [10]\n    end\n    change y by (1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <(y position) < [-178]> then\n        broadcast (Start v)\n    end\n    if <(x position) > [239]> then\n        broadcast (next level v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nstop [other scripts in sprite v]\ngo to x: (-175) y: (-145)\nwait (10) seconds\nset [xv v] to [0]\nset [yv v] to [0]\nshow\nforever\n    change x by (xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    set [xv v] to ((xv) * (0.85))\n    change [yv v] by (-1)\n    change y by (yv)\n    if <touching color (#000000)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <<key (up arrow v) pressed?> or <<key (space v) pressed?> or <key (w v) pressed?>>>> then\n        set [yv v] to [10]\n    end\n    change y by (1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <(y position) > [179]> then\n        broadcast (staff v)\n    end\nend\n\nwhen I receive [staff v]\nstop [other scripts in sprite v]\ngo to x: (-240) y: (-145)\nset size to (50) %\nset [xv v] to [15]\nset [yv v] to [0]\nshow\nforever\n    change x by (xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((xv) * (-1))\n                            change y by (-5)\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    set [xv v] to ((xv) * (0.85))\n    change [yv v] by (-0.5)\n    change y by (yv)\n    if <touching color (#000000)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <<key (up arrow v) pressed?> or <<key (space v) pressed?> or <key (w v) pressed?>>>> then\n        set [yv v] to [7]\n    end\n    change y by (1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-0.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (0.5)\n    end\n    if <<(x position) > [239]> and <(y position) > [150]>> then\n        broadcast (end v)\n        hide\n        stop [this script v]\n    end\nend\n\n@Level 1\n\ndefine clones\nset [id v] to [0]\nrepeat (7)\n    change [id v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (0) y: (0)\nif <(id) = [1]> then\n    switch costume to (platform 1 v)\n    wait until <([x position v] of [player v]) > [-50]>\n    repeat until <([x position v] of [player v]) < [-125]>\n        change x by (((-100) - (x position)) / (5))\n    end\n    repeat until <([x position v] of [player v]) > [-100]>\n        set x to ((x position) * (0.75))\n    end\n    repeat until <([x position v] of [player v]) > [100]>\n        change x by (((-100) - (x position)) / (5))\n    end\n    repeat until <(y position) < [-29]>\n        change y by (((-30) - (y position)) / (5))\n    end\n    wait until <([x position v] of [player v]) < [-85]>\n    go to x: (-200) y: (25)\n    repeat until <([x position v] of [player v]) < [-150]>\n        change x by (((-150) - (x position)) / (5))\n    end\n    go to x: (-150) y: (25)\n    wait (2) seconds\n    glide (2) secs to x: (-150) y: (75)\n    hide\n    wait (0.35) seconds\n    show\n    glide (8) secs to x: (-150) y: (275)\nend\nif <(id) = [2]> then\n    switch costume to (platform 2 v)\n    wait until <([x position v] of [player v]) > [-50]>\n    repeat until <<([x position v] of [player v]) > [100]> or <([x position v] of [player v]) < [-100]>>\n        change x by (((100) - (x position)) / (5))\n    end\n    repeat until <(y position) < [-29]>\n        change y by (((-30) - (y position)) / (5))\n    end\n    hide\n    wait (1.5) seconds\n    show\n    repeat until <(y position) > [-1]>\n        set y to ((y position) * (0.75))\n    end\n    go to x: (100) y: (0)\n    wait until <([x position v] of [player v]) > [-100]>\n    repeat until <([x position v] of [player v]) > [175]>\n        set x to ((x position) * (0.75))\n    end\n    repeat until <([x position v] of [player v]) < [-150]>\n        set x to ((x position) * (0.75))\n    end\n    repeat until <(y position) < [-29]>\n        change y by (((-30) - (y position)) / (5))\n    end\n    wait until <([y position v] of [player v]) > [125]>\n    wait until <([y position v] of [player v]) < [-100]>\n    forever\n        set y to ((y position) * (0.75))\n    end\nend\nif <(id) = [3]> then\n    hide\n    wait until <([x position v] of [player v]) > [-50]>\n    show\n    set [ghost v] effect to (100)\n    go to x: (0) y: (-75)\n    switch costume to (text 1 v)\n    repeat until <<([x position v] of [player v]) > [100]> or <([x position v] of [player v]) < [-100]>>\n        change [ghost v] effect by (-10)\n        change y by (((-50) - (y position)) / (5))\n    end\n    if <([x position v] of [player v]) > [100]> then\n        switch costume to (text 2 v)\n    else\n        repeat until <([x position v] of [player v]) < [-100]>\n            change [ghost v] effect by (10)\n            change y by (((-75) - (y position)) / (5))\n        end\n        repeat until <([x position v] of [player v]) > [-100]>\n            change [ghost v] effect by (10)\n            change y by (((-75) - (y position)) / (5))\n        end\n        switch costume to (text 3 v)\n        repeat until <([x position v] of [player v]) > [175]>\n            change [ghost v] effect by (-10)\n            change y by (((-50) - (y position)) / (5))\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n            change y by (((-75) - (y position)) / (5))\n        end\n        delete this clone\n    end\nend\nif <(id) = [4]> then\n    hide\n    wait until <([x position v] of [player v]) > [175]>\n    show\n    switch costume to (platform 3 v)\n    go to x: (0) y: (200)\n    repeat until <([y position v] of [player v]) > [125]>\n        set y to ((y position) * (0.75))\n    end\n    repeat until <(y position) < [-359]>\n        change y by (((-360) - (y position)) / (5))\n    end\n    delete this clone\nend\nif <(id) = [5]> then\n    hide\n    wait until <([x position v] of [player v]) > [175]>\n    show\n    set [ghost v] effect to (100)\n    switch costume to (arrow v)\n    go to x: (-75) y: (-100)\n    repeat until <([x position v] of [player v]) < [-65]>\n        change [ghost v] effect by (-10)\n        change y by (((-75) - (y position)) / (5))\n    end\n    repeat until <([x position v] of [player v]) < [-150]>\n        turn right (((180) - (direction)) / (5)) degrees\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n        change y by (((-100) - (y position)) / (5))\n    end\nend\nif <(id) = [6]> then\n    hide\n    wait until <([x position v] of [player v]) > [-50]>\n    wait until <([x position v] of [player v]) < [-100]>\n    wait until <([x position v] of [player v]) > [175]>\n    wait until <([x position v] of [player v]) < [-65]>\n    show\n    switch costume to (platform 4 v)\n    go to x: (0) y: (-30)\n    repeat until <([x position v] of [player v]) < [-85]>\n        set y to ((y position) * (0.75))\n    end\n    repeat until <(y position) < [-29]>\n        change y by (((-30) - (y position)) / (5))\n    end\nend\nif <(id) = [7]> then\n    hide\n    wait until <([y position v] of [player v]) > [125]>\n    show\n    switch costume to (platform 5 v)\n    go to x: (0) y: (-300)\n    repeat until <([x position v] of [player v]) > [50]>\n        set y to ((y position) * (0.75))\n    end\n    go to x: (0) y: (0)\n    switch costume to (platform 6 v)\nend\n\nwhen I receive [start v]\nwait (0) seconds\nclones\n\nwhen I receive [start v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\ndelete this clone\n\n@Errors\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nwait (5) seconds\nstart sound [Error v]\nswitch costume to (costume1 v)\nshow\nwait (3) seconds\nstart sound [Error v]\nswitch costume to (costume2 v)\nwait (3) seconds\nrepeat (3)\n    start sound [Error v]\n    next costume\n    wait (0.1) seconds\nend\n\n@Level 2 Text\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nwait (1) seconds\nshow\nswitch costume to (2 v)\ngo to x: (0) y: (0)\nrepeat (6)\n    next costume\n    wait (0.1) seconds\nend\nwait (1) seconds\nrepeat (9)\n    next costume\n    wait (0.1) seconds\nend\nwait (2) seconds\nrepeat (6)\n    next costume\n    wait (0.1) seconds\nend\nwait (1) seconds\nrepeat (7)\n    next costume\n    wait (0.1) seconds\nend\nwait (1) seconds\nrepeat (7)\n    next costume\n    wait (0.1) seconds\nend\nhide\n\n@Staff Room\n\nwhen I receive [staff v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nhide\n\n@Ending\n\nwhen I receive [end v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nswitch costume to (stop 4 v)\nshow\nwait (1) seconds\nrepeat (15)\n    next costume\n    wait (0.1) seconds\nend\nswitch costume to (stop 6 v)\nrepeat (4)\n    wait (0.1) seconds\n    switch costume to ((costume [number v]) - (1))\nend\nwait (1) seconds\nswitch costume to (costume20 v)\nstart sound [explode v]\nrepeat (12)\n    next costume\n    wait (0.1) seconds\nend\nwait (1) seconds\nforever\n    change y by (((360) - (y position)) / (10))\nend\n\nwhen flag clicked\nhide\n\n