☆レインボープラットフォーマー！Rainbow Platformer!☆

Instructions: <------------- CITY ------------>\nHow to play: \n• use WASD or arrow keys to move. \n• Don't touch the red spikes or you die. \n• You must collect all of the coins to proceed to the \n   next level (mobile is compatible)\n\nMY NEWEST GAME:\nhttps://scratch.mit.edu/projects/662389359/\n\nCredits:\nMe - all code and sprites\nmusic:\niSrg33 - Dreams\nDjjaner - God bless you\nbaryiscool - Drive 184\nXomuEDM - midnight flower\n\n\n\n\n\n\n\n\n\n\n\n\n---------------------------------------\n#Game #Fun #happy #Moon #space #project #Thepugmen #Play #platformer #Platformer #Mobile #LOVE #Favorite #Music #Art #Animation #Games #Scratch #Space #Orange #Playing #Dodging #Play #Square #Cube #Thumbnail #Colors  #Cool #Awesome #Good #Great #Walking #Moving #Comment #Difficulty #city #Hard #Animations #All #Art #Music #Stories #Tutorials #explore

@Stage\n\n@Blank\n\n@Danger\n\nwhen flag clicked\nswitch costume to (danger v)\n\nwhen I receive [あ v]\nnext costume\n\nwhen flag clicked\nshow\n\n@Love and fave reminder\n\nwhen flag clicked\nwait (2.5) seconds\ngo to [front v] layer\n\nwhen flag clicked\nhide\nwait (1) seconds\nforever\n    if <(Actions \(love/fave\)) < [2]> then\n        switch costume to (costume1 v)\n        go to x: (0) y: (150)\n        show\n        go to [front v] layer\n        start sound [High Whoosh v]\n        repeat (11)\n            change y by (-6)\n        end\n        repeat (7)\n            change y by (3)\n        end\n        repeat (6)\n            change y by (-2)\n        end\n        wait (5) seconds\n        start sound [High Whoosh v]\n        repeat (17)\n            change y by (7)\n        end\n        hide\n        wait (pick random (10) to (20)) seconds\n    else\n        stop [this script v]\n    end\nend\n\n@Health\n\nwhen flag clicked\nshow\nswitch costume to (health20 v)\nset [コスチュームの番号 v] to [21]\n\nwhen I receive [t v]\nchange [コスチュームの番号 v] by (-1)\nif <(コスチュームの番号) = [1]> then\n    broadcast (PPP v)\nend\n\nwhen flag clicked\nforever\n    switch costume to (コスチュームの番号)\nend\n\nwhen flag clicked\nforever\n    go to x: ([x position v] of [player v]) y: (([y position v] of [player v]) + (50))\nend\n\n@Platform\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [あ v]\nnext costume\n\nwhen I receive [ppp v]\nswitch costume to (1 v)\n\nwhen flag clicked\nshow\n\n@Player\n\nwhen flag clicked\nswitch backdrop to (backround v)\nshow\nswitch costume to (player v)\nset size to (100) %\nshow\ngo to [front v] layer\ngo [backward v] (2) layers\nset drag mode [not draggable v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-196) y: (57)\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        point in direction (90)\n        change [aaaaaa v] by (0.8)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        point in direction (-90)\n        change [aaaaaa v] by (-0.8)\n    end\n    set [aaaaaa v] to ((Aaaaaa) * (0.9))\n    change x by (Aaaaaa)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change x by ((Aaaaaa) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(y position) < (mouse y)> and <mouse down?>>> then\n                                if <(Aaaaaa) > [0]> then\n                                    set [aaaaaa v] to [-7]\n                                else\n                                    set [aaaaaa v] to [7]\n                                end\n                                set [ppppppp v] to [15]\n                            else\n                                set [aaaaaa v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(y position) < (mouse y)> and <mouse down?>>> then\n            set [ppppppp v] to [15]\n        end\n    end\n    change y by (1)\n    change [ppppppp v] by (-1)\n    change y by (Ppppppp)\n    if <touching (platform v)?> then\n        change y by ((Ppppppp) * (-1))\n        set [ppppppp v] to [0]\n    end\n    if <(x position) > [230]> then\n        go to x: (-196) y: (57)\n        broadcast (あ v)\n        set [aaaaaa v] to [0]\n        set [ppppppp v] to [0]\n    end\n    set rotation style [left-right v]\n    if <<key (down arrow v) pressed?> or <<((mouse y) + (50)) < (x position)> and <mouse down?>>> then\n        if <<<touching (danger v)?> or <(y position) < [-166]>> or <key (z v) pressed?>> then\n            go to x: (-196) y: (57)\n            set [aaaaaa v] to [0]\n            set [ppppppp v] to [0]\n            broadcast (T v)\n        else\n            switch costume to (player2 v)\n        end\n    else\n        switch costume to (player v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (danger v)?> or <(y position) < [-166]>> or <key (z v) pressed?>> then\n        go to x: (-196) y: (57)\n        set [aaaaaa v] to [0]\n        set [ppppppp v] to [0]\n        broadcast (T v)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\n\nwhen I start as a clone\nrepeat (15)\n    change [ghost v] effect by ((100) / (15))\n    change size by (-4.4)\nend\ndelete this clone\n\nwhen flag clicked\nsay [ Let's go!] for (2) seconds\n\nwhen I receive [あ v]\nif <([costume # v] of [platform v]) = [3]> then\n    say [ wood!] for (2) seconds\nend\nif <([costume # v] of [platform v]) = [5]> then\n    say [Lava!] for (2) seconds\nend\nif <([costume # v] of [platform v]) = [7]> then\n    say [ Cactus!] for (2) seconds\nend\n\nwhen I receive [ppp v]\ngo to x: (-196) y: (57)\n\n@Zombie\n\ndefine Gravity (gravity) Jump Height (jump height) Speed (speed) Friction (friction) Slope (slope)\nchange [yv v] by (gravity)\nchange y by (yv)\nif <touching (ステージ v)?> then\n    repeat until <not <touching (ステージ v)?>>\n        change y by ((([abs v] of (yv) ) / (yv)) * (-1))\n    end\n    set [yv v] to (<<(y position) < (([x position v] of [プレイヤー v]) - (25))> and <(([abs v] of (YV) ) / (YV)) = [-1]>> * (jump height))\nend\nset [xv v] to (((xv) + ((<(x position) > ([x position v] of [プレイヤー v])> * ((speed) * (-1))) + (<(x position) < ([x position v] of [プレイヤー v])> * (speed)))) * (friction))\nchange x by (xv)\nset [enemy: enemy - slope v] to [0]\nrepeat until <<(Enemy: Enemy - Slope) = ((slope) * (-1))> or <not <touching (ステージ v)?>>>\n    change y by (1)\n    change [enemy: enemy - slope v] by (-1)\nend\nif <touching (ステージ v)?> then\n    change y by (Enemy: Enemy - Slope)\n    repeat until <not <touching (ステージ v)?>>\n        change x by ((([abs v] of (xv) ) / (xv)) * (-1))\n    end\nend\npoint towards (プレイヤー v)\nif <(y position) < [-180]> then\n    delete this clone\nend\n\nwhen I receive [next v]\nrepeat (1)\n    delete this clone\nend\nwait (2.5) seconds\nif <(ステージ) = [7]> then\n    Clone at [105] [-55]\nelse\n    if <(ステージ) = [8]> then\n        Clone at [150] [-55]\n    else\n        if <(ステージ) = [9]> then\n            Clone at [0] [-50]\n            Clone at [155] [-50]\n        else\n            if <(ステージ) = [10]> then\n                Clone at [-15] [65]\n            end\n        end\n    end\nend\n\nif <(ステージ) = [12]> then\n    repeat until <(ステージ) = [13]>\nend\n\nClone at [180] [135]\nwait (10) seconds\n\ndefine Clone at (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\nstart sound [ゾンビ v]\n\nwhen I start as a clone\nshow\nforever\n    if <not <(Switch In Progress) = [yes]>> then\n        Gravity [-1] Jump Height [5] Speed [0.25] Friction [.89] Slope [2]\n    end\nend\n\nwhen I receive [やられた v]\nrepeat (1)\n    delete this clone\nend\nrepeat (5)\n    wait () seconds\nend\nif <(ステージ) = [7]> then\n    Clone at [105] [-55]\nelse\n    if <(ステージ) = [8]> then\n        Clone at [150] [-55]\n    else\n        if <(ステージ) = [9]> then\n            Clone at [0] [-50]\n            Clone at [155] [-50]\n        else\n            if <(ステージ) = [10]> then\n                Clone at [-15] [65]\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (トゲ v)?> then\n        start sound [Hit v]\n        set [slime x v] to (x position)\n        set [slime y v] to (y position)\n        broadcast (Slime Death v)\n        delete this clone\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@THUM\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n