～青空～ a platformer

Instructions: (日本語の説明は下にあります!)\nCollaboration with @tamagoyaki083!\nClick here for the work by @tamagoyaki083 ↓\nhttps://scratch.mit.edu/projects/417103834/\n\nMove with the arrow keys!\nYou can kick the wall!\nCompatible with smartphones! Tap the right side of the screen to move right, tap the left side of the screen to move left, tap the top of the screen to jump!\nThere are few stages ... I'm sorry (T_T)\n\n@tamagoyaki083 様とのコラボ作品です！\n@tamagoyaki083 様側の作品はこちら↓\nhttps://scratch.mit.edu/projects/417103834/\n\n矢印キーで移動です！\n壁キックできます！\nスマホの場合、画面右側タップで右に移動、画面左側タップで左に移動、画面上側をタップでジャンプです!

@Stage\n\n@player\n\nwhen flag clicked\nshow\ngo to x: (-214) y: (-30)\nswitch costume to (player v)\nset [gravity v] to [0]\nset [speed v] to [0]\nset [can i move? v] to [1]\npoint in direction (90)\nset size to (100) %\nforever\n    if <(can I move?) = [1]> then\n        change [gravity v] by (-0.8)\n        change y by (gravity)\n        if <touching color (#41ff00)?> then\n            change y by ((gravity) * (-1))\n            set [gravity v] to [0]\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>> then\n                start sound [pa1 v]\n                set [gravity v] to [13]\n            end\n        end\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> then\n            point in direction (90)\n            change [speed v] by (1)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n            point in direction (-90)\n            change [speed v] by (-1)\n        end\n        set [speed v] to ((speed) * (0.9))\n        change x by (speed)\n        if <touching color (#a66800)?> then\n            change x by ((speed) * (-1))\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>> then\n                start sound [pa1 v]\n                set [gravity v] to [10]\n            end\n            if <[0] < (speed)> then\n                set [speed v] to [-10]\n            else\n                set [speed v] to [10]\n            end\n        end\n        if <<<touching color (#ff0000)?> or <(y position) < [-185]>> or <touching (bullet v)?>> then\n            start sound [papa1 v]\n            clear graphic effects\n            set size to (100) %\n            repeat (10)\n                change [ghost v] effect by (10)\n                change size by (5)\n            end\n            set size to (100) %\n            clear graphic effects\n            go to x: (-214) y: (-99)\n        end\n        if <touching color (#ff00d0)?> then\n            set [gravity v] to [20]\n        end\n        if <[244] < (x position)> then\n            if <not <([costume # v] of [stage v]) = [12]>> then\n                hide\n                broadcast (next! v)\n                set [can i move? v] to [0]\n            end\n        end\n    end\nend\n\nwhen I receive [next! v]\nwait (1) seconds\nset [can i move? v] to [1]\nshow\ngo to x: (-214) y: (-99)\n\nwhen I receive [ed v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\n@stage\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\n\nwhen I receive [next! v]\nif <(costume [number v]) = [10]> then\n    broadcast (ED v)\n    stop [this script v]\nend\nwait (0.75) seconds\nnext costume\n\nwhen I receive [ed v]\nhide\n\nbroadcast (ED v)\n\n@bg\n\nwhen I receive [ed v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nshow\nforever\n    play sound [game_maoudamashii_5_town24 v] until done\nend\n\n@thumbnail\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nshow\n\n@NEXT!\n\nwhen I receive [next! v]\nshow\nstart sound [sceneswitch1 v]\ngo to x: (0) y: (-347)\nglide (1.5) secs to x: (0) y: (347)\nhide\n\nwhen I receive [ed v]\nforever\n    hide\nend\n\n@gimmick\n\nwhen flag clicked\npoint in direction (90)\nforever\n    if <([costume # v] of [stage v]) = [5]> then\n        switch costume to (7 v)\n        set rotation style [all around v]\n        show\n        go to x: (0) y: (10)\n        turn right (4) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <([costume # v] of [stage v]) = [5]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [stage v]) = [5]> then\n        go to x: (124) y: (-262)\n        glide (1.5) secs to x: (124) y: (262)\n        glide (1.5) secs to x: (124) y: (-262)\n    end\nend\n\n@ED\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [1]> then\n    switch costume to (ふたさんの背景なんて神ではないか。 v)\n    go to [back v] layer\nelse\n    if <(costume [number v]) = [2]> then\n        go to x: (0) y: (100)\n        回転 [0.5] 度 [20] 回\n    else\n        if <(costume [number v]) = [3]> then\n            go to x: (0) y: (-120)\n            set size to (100) %\n            forever\n                repeat (20)\n                    change size by (0.5)\n                end\n                repeat (20)\n                    change size by (-0.5)\n                end\n            end\n        else\n            if <(costume [number v]) = [4]> then\n                go to x: (90) y: (-7)\n                switch costume to (フォローする v)\n                forever\n                    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n                        if <(costume [number v]) = [4]> then\n                            start sound [mens-yeah1 v]\n                            switch costume to (フォローをやめる v)\n                        end\n                    end\n                end\n            else\n                if <(costume [number v]) = [6]> then\n                    go to x: (-127) y: (-12)\n                end\n            end\n        end\n    end\nend\n\ndefine 回転 (度) 度 (繰り返し) 回\npoint in direction (90)\nrepeat ((繰り返し) / (2))\n    turn left (度) degrees\nend\nforever\n    repeat (繰り返し)\n        turn right (度) degrees\n    end\n    repeat (繰り返し)\n        turn left (度) degrees\n    end\nend\n\nwhen I receive [ed v]\nhide\ngo to x: (0) y: (0)\nswitch costume to (ふたさんの背景なんて神ではないか。 v)\ncreate clone of (_myself_ v)\nswitch costume to (thx v)\ncreate clone of (_myself_ v)\nswitch costume to (💖と⭐ v)\ncreate clone of (_myself_ v)\nswitch costume to (フォローする v)\ncreate clone of (_myself_ v)\nswitch costume to (アイコン v)\ncreate clone of (_myself_ v)\n\nwhen I receive [ed v]\nstop all sounds\nforever\n    play sound [おもいで v] until done\nend\n\n