Tower platformer

Instructions: Tower platformer\n❤&⭐よろしく!!  フォローもできたら...\n\n[日本語]\n-遊び方-\nWASD 矢印 タッチ で操作します\nレッドとグリーンは同じ動きをします\n\n-ヒント-\n何度か飛んでいるとジャンプ力が上がりますよー\n\n-クレジット-\n効果音：効果音ラボ Scratch\nBGM：魔王魂\n\n-タグ-\n#All #all #Game #game #Platformer #platformer #Tower #tower #Summer #summer \n\n-注意-\n無変更リミックスはやめてください\nメモ欄だけでも変更して!\nプレイヤーの形などは自作なので歪んでいるかもしれません\n\n[English]\n-How to play-\nWASD Arrows Touch to control\nRed and Green have the same movement\n\n-Tip-\nYou can improve your jumping ability by flying several times!\n\n-Credits-\nSound: 効果音ラボ Scratch\nBGM: 魔王魂\n\n-Tags-\n#All #all #Game #game #Platformer #platformer #Tower #tower #summer #summer \n\n-Caution-\nNo unmodified remixes, please!\nJust change the notes field!\nThe shape of the player, etc. may be distorted as I made it myself!

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nset [damage v] to [0]\nset volume to (20) %\nbroadcast (Set v)\nforever\n    play sound [魔王魂 ループ ヒーリング13 v] until done\nend\n\nwhen flag clicked\nforever\n    play sound [ミンミンゼミが鳴く雑木林 v] until done\nend\n\nwhen flag clicked\nshow variable [time v]\nset [time_s v] to [0]\nset [time v] to [0]\nrepeat until <(Time_S) = [1]>\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen I receive [clear v]\nset [time_s v] to [1]\n\n@軽量化\n\n@Player\n\nwhen I receive [set v]\npoint in direction (90)\ngo to x: (-150) y: (-50)\nset [player_y v] to [0]\nset [player_x v] to [0]\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        change [player_x v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        change [player_x v] by (-1)\n    end\n    set [player_x v] to ((Player_X) * (0.9))\n    change x by (Player_X)\n    if <<touching (ground v)?> or <<touching (ground2 v)?> or <touching (sub v)?>>> then\n        change x by (() - (Player_X))\n        set [player_x v] to [0]\n    end\n    change [player_y v] by (-1.5)\n    change y by (Player_Y)\n    if <<touching (ground v)?> or <<touching (ground2 v)?> or <touching (sub v)?>>> then\n        change y by (() - (Player_Y))\n        set [player_y v] to [0]\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n            change [player_y v] by (15.5)\n        end\n    end\n    if <(x position) > [240]> then\n        broadcast (Next v)\n        broadcast (Reset v)\n    end\n    if <<<touching (sword v)?> or <touching (sword2 v)?>> or <<(Damage) = [1]> or <(y position) < [-180]>>> then\n        start sound [Crunch v]\n        set [damage v] to [1]\n        repeat (10)\n            turn left (5) degrees\n            change y by (-10)\n            change [ghost v] effect by (10)\n        end\n        set [damage v] to [0]\n        broadcast (Reset v)\n    end\nend\n\nwhen I receive [reset v]\npoint in direction (90)\ngo to x: (-150) y: (-50)\nset [player_y v] to [0]\nset [player_x v] to [0]\nclear graphic effects\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\n\nwhen I receive [set v]\nforever\n    if <(backdrop [number v]) = [2]> then\n        set [brightness v] effect to (() - ((distance to [star v]) / (10)))\n    end\nend\n\n@Sub\n\nwhen I receive [set v]\npoint in direction (90)\ngo to x: (-150) y: (100)\nset [sub_y v] to [0]\nset [sub_x v] to [0]\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        change [sub_x v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        change [sub_x v] by (-1)\n    end\n    set [sub_x v] to ((Sub_X) * (0.9))\n    change x by (Sub_X)\n    if <<touching (ground v)?> or <touching (player v)?>> then\n        change x by (() - (Sub_X))\n        set [sub_x v] to [0]\n    end\n    change [sub_y v] by (-1.5)\n    change y by (Sub_Y)\n    if <<touching (ground v)?> or <touching (player v)?>> then\n        change y by (() - (Sub_Y))\n        set [sub_y v] to [0]\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <([y position v] of [player v]) < (mouse y)>>> then\n            change [sub_y v] by (21)\n            start sound [ニュッ2 v]\n        end\n    end\n    if <(x position) > [240]> then\n        broadcast (Next v)\n        broadcast (Reset v)\n    end\n    if <<<touching (sword v)?> or <touching (sword2 v)?>> or <<(Damage) = [1]> or <(y position) < [-180]>>> then\n        start sound [Crunch v]\n        set [damage v] to [1]\n        repeat (10)\n            turn left (5) degrees\n            change y by (-10)\n            change [ghost v] effect by (10)\n        end\n        set [damage v] to [0]\n        broadcast (Reset v)\n    end\n    if <touching (ground3 v)?> then\n        change [sub_x v] by (-2)\n    end\n    if <<touching (player v)?> or <<(distance to [player v]) < [80]> and <(y position) < ([y position v] of [player v])>>> then\n        補正\n    end\nend\n\nwhen I receive [reset v]\npoint in direction (90)\ngo to x: (-150) y: (100)\nset [sub_y v] to [0]\nset [sub_x v] to [0]\nclear graphic effects\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\n\ndefine 補正\nrepeat (10)\n    change y by (((([y position v] of [player v]) + (70)) - (y position)) / (5))\nend\n\nwhen I receive [set v]\nforever\n    if <(backdrop [number v]) = [2]> then\n        set [brightness v] effect to (() - ((distance to [star v]) / (10)))\n    end\nend\n\n@Ground\n\nwhen I receive [next v]\nnext costume\nif <(costume [number v]) = [3]> then\n    broadcast (Key v)\nend\nif <(costume [number v]) = [4]> then\n    broadcast (Key2 v)\nend\nif <(costume [number v]) = [6]> then\n    broadcast (Sword v)\nend\nif <(costume [number v]) = [7]> then\n    broadcast (Sword2 v)\nend\nif <(costume [number v]) = [10]> then\n    broadcast (Clear v)\nend\n\nwhen I receive [set v]\nswitch costume to (コスチューム1 v)\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-30)\nend\n\n@Ground3\n\nwhen I receive [key v]\nshow\nforever\n    if <touching (sub v)?> then\n        broadcast (Assist v)\n    end\nend\n\nwhen I receive [set v]\nset [ghost v] effect to (50)\nhide\n\nwhen I receive [key2 v]\nhide\n\n@Sword\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [set v]\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\nswitch costume to (コスチューム1 v)\n\n@Thank you\n\nwhen I receive [clear v]\nstart sound [Cheer v]\nshow\n\nwhen flag clicked\ndelete all of [広告 v]\nadd [https://scratch.mit.edu/projects/874024342/] to [広告 v]\nshow list [広告 v]\nhide\n\nwhen this sprite clicked\n\n@Paper\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (4))\nclear graphic effects\nset [clear_y v] to (pick random (1) to (10))\npoint in direction (pick random (-15) to (-75))\nrepeat until <touching (_edge_ v)?>\n    set [brightness v] effect to (pick random (0) to (30))\n    change [clear_y v] by (-1)\n    change y by (Clear_Y)\n    move (pick random (1) to (20)) steps\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\ndefine 最後\nrepeat (100)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat until <touching (_edge_ v)?>\n    repeat (3)\n        turn right (pick random (1) to (15)) degrees\n    end\n    repeat (3)\n        turn right (pick random (1) to (-15)) degrees\n    end\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [clear v]\n最後\n\n@Paper2\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (4))\nclear graphic effects\nset [clear_y v] to (pick random (1) to (10))\npoint in direction (pick random (15) to (75))\nrepeat until <touching (_edge_ v)?>\n    set [brightness v] effect to (pick random (0) to (30))\n    change [clear_y v] by (-1)\n    change y by (Clear_Y)\n    move (pick random (1) to (20)) steps\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\ndefine 最後\nrepeat (100)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat until <touching (_edge_ v)?>\n    repeat (3)\n        turn right (pick random (1) to (15)) degrees\n    end\n    repeat (3)\n        turn right (pick random (1) to (-15)) degrees\n    end\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [clear v]\n最後\n\n@Sword2\n\nwhen I receive [sword v]\nshow\nforever\n    repeat until <<(x position) < [-250]> or <<touching (player v)?> or <touching (sub v)?>>>\n        change x by (-15)\n    end\n    if <(x position) < [-250]> then\n        hide\n        wait (0.2) seconds\n        show\n        go to x: (200) y: (40)\n        repeat (10)\n            change x by (-5)\n        end\n    end\n    if <<touching (player v)?> or <touching (sub v)?>> then\n        hide\n        wait (0.5) seconds\n        show\n        go to x: (200) y: (40)\n        repeat (10)\n            change x by (-2)\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (200) y: (40)\nhide\nset [brightness v] effect to (0)\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\n\nwhen I receive [sword2 v]\nstop [other scripts in sprite v]\nhide\n\n@Key\n\nwhen I receive [key v]\nshow\nforever\n    if <touching (sub v)?> then\n        start sound [Collect v]\n        broadcast (Wall v)\n        change size by (10)\n        repeat (10)\n            change size by (-5)\n            change [ghost v] effect by (10)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [set v]\nhide\nset size to (100) %\nclear graphic effects\ngo to x: (0) y: (0)\n\n@Ground2\n\nwhen I receive [key v]\nshow\n\nwhen I receive [set v]\nhide\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\n\nwhen I receive [wall v]\nhide\n\n@Screen\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.01)\nshow list [広告 v]\nhide variable [time v]\ngo to x: (0) y: (345)\nshow\nrepeat until <(y position) = [0]>\n    change y by (((0) - (y position)) / (5))\nend\n\n@Light\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen [timer v] > (0.00001)\nset [light v] to [100]\ngo to x: (0) y: (0)\nshow\nrepeat until <(Light) = [0]>\n    change [light v] by (((0) - (Light)) / (5))\n    set [ghost v] effect to (Light)\nend\n\n@Help\n\nwhen I receive [assist v]\nshow\nset [ghost v] effect to (30)\nrepeat (10)\n    change [ghost v] effect by (-3)\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\n@favorite&love\n\nwhen I receive [set v]\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (100)\ngo to x: (-185) y: (190)\nforever\n    switch costume to (コスチューム1 v)\n    wait (2) seconds\n    repeat (10)\n        change y by (((140) - (y position)) / (5))\n        change [ghost v] effect by (-10)\n    end\n    wait (1) seconds\n    next costume\n    wait (0.5) seconds\n    next costume\n    wait (1) seconds\n    repeat (10)\n        change y by (((190) - (y position)) / (5))\n        change [ghost v] effect by (10)\n    end\nend\n\n@Player_Accessory\n\nwhen I receive [set v]\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\nforever\n    go to (player v)\nend\n\n@Sub_Accessory\n\nwhen I receive [set v]\nif <(backdrop [number v]) = [2]> then\n    set [brightness v] effect to (-20)\nend\nforever\n    go to (sub v)\nend\n\n@Star\n\nwhen I receive [set v]\nset [ghost v] effect to (100)\n\n