Platformer【sushi】

Instructions: 日本語は下\n《English》\n【How to play】\n☆Operation☆\n・arrow key\n・WASD key\n・tap\n☆Character Description☆\n・I can walk on the ground.\n・Can also walk on sushi.\n・I don't like wasabi.\n・I love soy sauce.\n※If you fail more than 5 times in one stage, a skip button will appear in the upper left corner.When it appears, you can skip that stage by tapping or pressing the S key.\n-------------------------------------------------------------------------\n《日本語》\n【遊び方】\n☆操作☆\n・矢印キー\n・WASDキー\n・タップ\n☆キャラクター説明☆\n・地面を歩くことができる\n・寿司の上も歩くことができる\n・ワサビが苦手\n・醤油は大好き\n※1つのステージで5回以上失敗するとスキップボタンが表示されます。タップまたはSキーを押すことでそのステージをスキップできます。

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (背景1 v)\nend\n\n@　\n\n@player\n\nwhen I receive [お　し　ま　い　☆ v]\nhide\n\nwhen flag clicked\nPlayer\n\nwhen I start as a clone\nClone\n\nwhen flag clicked\nforever\n    play sound [BGM v] until done\nend\n\nwhen I receive [next！ v]\nset [x v] to [0]\nset [y v] to [0]\nset [miss v] to [0]\nwait (1.2) seconds\ngo to x: (-209) y: (-58)\nswitch costume to (コスチューム1 v)\n\nwhen I receive [完了 v]\nset [x v] to [0]\nset [y v] to [0]\nset [miss v] to [0]\n\nwhen I receive [syoyu v]\nwait (0.4) seconds\nswitch costume to (コスチューム1 v)\n\nwhen I receive [syoyu2 v]\nwait (0.4) seconds\nswitch costume to (コスチューム1 v)\n\nwhen I receive [syoyu3 v]\nwait (0.4) seconds\nswitch costume to (コスチューム1 v)\n\ndefine Player\ngo to x: (-209) y: (-58)\nset size to (30) %\npoint in direction (90)\nclear graphic effects\nswitch costume to (コスチューム1 v)\nset rotation style [left-right v]\ngo to [front v] layer\nset [x v] to [0]\nset [y v] to [0]\nset [time v] to [0]\nset [stage v] to [1]\nset [miss v] to [0]\nshow\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        change [x v] by (1.5)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n        change [x v] by (-1.5)\n        point in direction (-90)\n    end\n    set [x v] to ((x) * (0.8))\n    change x by (x)\n    if <touching (sushi🍣\(stage\) v)?> then\n        change y by (1)\n        if <touching (sushi🍣\(stage\) v)?> then\n            change y by (1)\n            if <touching (sushi🍣\(stage\) v)?> then\n                change y by (1)\n                if <touching (sushi🍣\(stage\) v)?> then\n                    change y by (1)\n                    if <touching (sushi🍣\(stage\) v)?> then\n                        change y by (1)\n                        if <touching (sushi🍣\(stage\) v)?> then\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                start sound [jump v]\n                                if <(x) > [0]> then\n                                    set [x v] to [-15]\n                                else\n                                    set [x v] to [15]\n                                end\n                                set [y v] to [13]\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 v] by (-1)\n    change y by (y)\n    if <touching (sushi🍣\(stage\) v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (sushi🍣\(stage\) v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        start sound [jump v]\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching (wasabi v)?> or <<touching (wasabi2 v)?> or <touching (wasabi3 v)?>>> then\n        start sound [miss v]\n        switch costume to (コスチューム3 v)\n        repeat (30)\n            change [ghost v] effect by (3)\n        end\n        change [miss v] by (1)\n        set [x v] to [0]\n        set [y v] to [0]\n        point in direction (90)\n        switch costume to (コスチューム1 v)\n        clear graphic effects\n        go to x: (-209) y: (-58)\n    end\n    if <(x position) > [245]> then\n        if <not <(stage) = [20]>> then\n            wait (0.03) seconds\n            hide\n            go to x: (-209) y: (-58)\n            broadcast (NEXT！ v)\n            switch costume to (コスチューム1 v)\n            change [stage v] by (1)\n            wait (1.3) seconds\n            set [miss v] to [0]\n            set [x v] to [0]\n            set [y v] to [0]\n            show\n        end\n    end\n    if <[-180] > (y position)> then\n        start sound [miss v]\n        switch costume to (コスチューム3 v)\n        change [miss v] by (1)\n        repeat (30)\n            change [ghost v] effect by (3)\n        end\n        set [x v] to [0]\n        set [y v] to [0]\n        point in direction (90)\n        switch costume to (コスチューム1 v)\n        clear graphic effects\n        go to x: (-209) y: (-58)\n    end\n    if <touching (syoyu v)?> then\n        start sound [syoyu v]\n        switch costume to (コスチューム4 v)\n        set [y v] to [21]\n        broadcast (触れた v)\n    end\n    if <touching (syoyu2 v)?> then\n        start sound [syoyu v]\n        switch costume to (コスチューム4 v)\n        set [y v] to [21]\n        broadcast (触れた2 v)\n    end\n    if <touching (syoyu3 v)?> then\n        start sound [syoyu v]\n        switch costume to (コスチューム4 v)\n        set [y v] to [21]\n        broadcast (触れた3 v)\n    end\nend\n\ndefine Clone\nswitch costume to (コスチューム2 v)\nrepeat (8)\n    change [ghost v] effect by (15)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n@sushi🍣(stage)\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [完了 v]\nnext costume\n\n@wasabi\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\n\nwhen I receive [完了 v]\nnext costume\n\n@thumbnail\n\nwhen flag clicked\nhide\n\n@NEXT!\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\n\nwhen I receive [next！ v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nrepeat (5)\n    next costume\nend\nstart sound [kiran v]\nwait (1) seconds\nbroadcast (完了 v)\nstart sound [po v]\nrepeat (3)\n    next costume\nend\nhide\nswitch costume to (コスチューム1 v)\ngo to [front v] layer\n\n@wasabi2\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    if <(stage) = [9]> then\n        wait (0.15) seconds\n        repeat until <(stage) = [10]>\n            go to x: (0) y: (0)\n            switch costume to (コスチューム1 v)\n            show\n            repeat (3)\n                next costume\n            end\n            glide (0.5) secs to x: (0) y: (-224)\n        end\n    else\n        if <(stage) = [18]> then\n            wait (0.15) seconds\n            repeat until <(stage) = [19]>\n                go to x: (-149) y: (6)\n                switch costume to (コスチューム1 v)\n                show\n                repeat (3)\n                    next costume\n                end\n                glide (0.7) secs to x: (-149) y: (-224)\n            end\n        end\n        hide\n    end\nend\n\n@wasabi3\n\nwhen flag clicked\nshow\nforever\n    if <(stage) = [18]> then\n        wait (1.25) seconds\n        point in direction (180)\n        repeat until <(stage) = [19]>\n            go to [front v] layer\n            go to x: (125) y: (-113)\n            switch costume to (コスチューム1 v)\n            show\n            repeat (3)\n                next costume\n            end\n            glide (1.5) secs to x: (-245) y: (-113)\n        end\n    end\n    hide\nend\n\n@back\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.4) to (0.6)) seconds\nend\n\nwhen I start as a clone\nback\n\ndefine back\nshow\ngo to [back v] layer\nswitch costume to (pick random (1) to (9))\nset size to (pick random (30) to (60)) %\npoint in direction (90)\nset [ghost v] effect to (20)\ngo to x: (pick random (-253) to (253)) y: (-156)\nrepeat until <touching (_edge_ v)?>\n    change y by (pick random (3) to (13))\nend\nif <touching (_edge_ v)?> then\n    hide\nend\ndelete this clone\n\n@skip?\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\nset size to (100) %\ngo to x: (0) y: (0)\nforever\n    if <not <(stage) = [20]>> then\n        if <[4] < (miss)> then\n            show\n            if <touching (mouse-pointer v)?> then\n                set [ghost v] effect to (25)\n                switch costume to (コスチューム2 v)\n            else\n                set [ghost v] effect to (0)\n                switch costume to (コスチューム1 v)\n            end\n            if <key (s v) pressed?> then\n                broadcast (s key v)\n            end\n        else\n            hide\n        end\n    end\nend\n\nwhen this sprite clicked\nbroadcast (NEXT！ v)\nchange [stage v] by (1)\n\nwhen I receive [s key v]\nbroadcast (NEXT！ v)\nchange [stage v] by (1)\n\n@syoyu\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (syoyu v)\n    end\n    if <(stage) = [11]> then\n        set size to (100) %\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (-126) y: (-147)\n        show\n    end\n    if <(stage) = [12]> then\n        go to x: (-126) y: (-147)\n    end\n    if <(stage) = [13]> then\n        hide\n    end\n    if <(stage) = [14]> then\n        go to x: (113) y: (-147)\n        show\n    end\n    if <(stage) = [15]> then\n        hide\n    end\n    if <(stage) = [19]> then\n        show\n        go to x: (-140) y: (-147)\n    end\n    if <(stage) = [20]> then\n        go to x: (183) y: (-128)\n        set size to (65) %\n        switch costume to (コスチューム2 v)\n    end\nend\n\n@syoyu2\n\nwhen flag clicked\nhide\nforever\n    if <touching (player v)?> then\n        broadcast (syoyu2 v)\n    end\n    if <(stage) = [12]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (10) y: (-147)\n        show\n    end\n    if <(stage) = [13]> then\n        hide\n    end\n    if <(stage) = [19]> then\n        go to x: (-40) y: (-147)\n        show\n    end\n    if <(stage) = [20]> then\n        hide\n    end\nend\n\n@syoyu3\n\nwhen flag clicked\nhide\nforever\n    if <touching (player v)?> then\n        broadcast (syoyu3 v)\n    end\n    if <(stage) = [12]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (146) y: (-147)\n        show\n    end\n    if <(stage) = [13]> then\n        hide\n    end\n    if <(stage) = [19]> then\n        wait (0.15) seconds\n        go to x: (85) y: (-49)\n        show\n    end\n    if <(stage) = [20]> then\n        hide\n    end\nend\n\n@syoyu!\n\nwhen I receive [触れた v]\nforever\n    if <(stage) = [11]> then\n        go to x: (0) y: (0)\n        set size to (100) %\n    end\n    if <(stage) = [12]> then\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [14]> then\n        go to x: (240) y: (0)\n    end\n    if <(stage) = [19]> then\n        go to x: (-12) y: (1)\n    end\n    if <(stage) = [20]> then\n        set size to (70) %\n        go to x: (229) y: (-33)\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [触れた v]\nshow\nwait (0.2) seconds\nhide\n\n@syoyu!2\n\nwhen I receive [触れた2 v]\nforever\n    if <(stage) = [12]> then\n        go to x: (8) y: (-109)\n    end\n    if <(stage) = [19]> then\n        go to x: (-42) y: (-105)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [触れた2 v]\nshow\nwait (0.2) seconds\nhide\n\n@syoyu!3\n\nwhen I receive [触れた3 v]\nshow\nwait (0.2) seconds\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [触れた3 v]\nforever\n    if <(stage) = [12]> then\n        go to x: (143) y: (-109)\n    end\n    if <(stage) = [19]> then\n        go to x: (74) y: (-10)\n    end\nend\n\n@last\n\nwhen [timer v] > (0.1)\nforever\n    if <(stage) = [20]> then\n        show\n        go to [front v] layer\n        glide (1) secs to x: (0) y: (0)\n        play sound [パッ v] until done\n        broadcast (動き v)\n        start sound [ドンドンパフパフ v]\n        forever\n            change [color v] effect by (1)\n        end\n    else\n        go to [back v] layer\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (387) y: (0)\npoint in direction (90)\nhide\n\nwhen I receive [動き v]\nrepeat (2)\n    repeat (10)\n        turn right (1) degrees\n    end\n    repeat (10)\n        turn left (1) degrees\n    end\n    repeat (10)\n        turn left (1) degrees\n    end\n    repeat (10)\n        turn right (1) degrees\n    end\nend\n\n@white\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.1)\nforever\n    if <(stage) = [20]> then\n        forever\n            go to [front v] layer\n            go [backward v] (1) layers\n            show\n        end\n    end\nend\n\n