-Hgwrs16-  Platformer   TNTend/Hgwrs16
@Stage\n\nwhen I receive [mute v]\nset volume to (0) %\n\nwhen I receive [start v]\nswitch backdrop to (pick random (1) to (3))\nforever\n    play sound [Rachel Platten - Fight Song.mp3 v] until done\nend\n\nwhen I receive [unmute v]\nset volume to (100) %\n\nwhen flag clicked\nswitch backdrop to (0.1 v)\n\n@Player\n\nhide\n\nwhen I start as a clone\nclear graphic effects\nset size to (80) %\nrepeat (10)\n    change [ghost v] effect by (8)\n    change size by (-8)\nend\ndelete this clone\n\nstart sound [BGM v]\n\nchange y by ((0) - (y))\nset [y v] to [0]\n\nwhen flag clicked\nhide\nset rotation style [left-right v]\npoint in direction (90)\nset size to (80) %\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [start v]\ngo to x: (-194) y: (33)\nhide variable [☁ my time v]\nhide variable [☁ world record v]\nreset timer\nswitch backdrop to (1 v)\nshow\nforever\n    change y by (1)\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > [1]> and <mouse down?>>> then\n        change [x v] by (0.8)\n        point in direction (90)\n        create clone of (_myself_ v)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> then\n        change [x v] by (-0.8)\n        point in direction (-90)\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> then\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [y v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    if <touching (saw v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-194) y: (33)\n    end\n    if <touching (fire v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-194) y: (33)\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> and <touching (ground v)?>> or <<mouse down?> and <<touching (ground v)?> and <(mouse y) > [50]>>>> then\n        start sound [nyu v]\n        set [y v] to [15]\n        create clone of (_myself_ v)\n    end\n    if <touching (don't touch v)?> then\n        set [x v] to [0]\n        start sound [crashed oof v]\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-194) y: (33)\n    end\n    if <touching color (#000aff)?> then\n        start sound [puyon v]\n        set [y v] to [23]\n        create clone of (_myself_ v)\n        broadcast (アニメーション v)\n    end\n    if <(x position) > [215]> then\n        broadcast (Goal v)\n        go to x: (-194) y: (33)\n    end\n    if <(Stage) = [10]> then\n        set [☁ my time v] to (timer)\n        broadcast (記録表示 v)\n        show variable [☁ world record v]\n        show variable [☁ my time v]\n        if <(☁ World Record) > (☁ My Time)> then\n            set [☁ world record v] to (☁ My Time)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide variable [☁ my time v]\nhide variable [☁ world record v]\nswitch costume to (pick random (1) to (5))\n\nwhen I receive [goal v]\nwait (1) seconds\n\n@文字\n\nwhen I receive [start v]\nforever\n    set y to (((([sin v] of ((timer) * (250)) ) + (18)) * (1.5)) * (5))\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\ngo [forward v] (1) layers\nhide\n\nwhen I receive [start v]\nshow\nforever\n    if <(Stage) = [1]> then\n        switch costume to (1 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [2]> then\n        switch costume to (2 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [3]> then\n        switch costume to (3 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [4]> then\n        switch costume to (4 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [5]> then\n        switch costume to (5 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [6]> then\n        switch costume to (6 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [7]> then\n        switch costume to (7 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [8]> then\n        switch costume to (8 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [9]> then\n        switch costume to (9 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [10]> then\n        start sound [people-performance-cheer1 v]\n        switch costume to (10 v)\n        stop [this script v]\n    end\nend\n\nwhen [timer v] > (0.01)\nhide\n\n@Ground\n\nwhen flag clicked\nset [stage v] to [1]\nswitch costume to (コスチューム1 v)\nhide\n\nwhen I receive [goal v]\nnext costume\n\nwhen I receive [start v]\nshow\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\nset [stage v] to [0]\nforever\n    set [stage v] to (costume [number v])\nend\n\n@Bouncer \n\nwhen flag clicked\nhide\nforever\n    if <(Stage) = [5]> then\n        broadcast (Fire v)\n        show\n        go to x: (-50) y: (-69)\n    else\n        hide\n    end\nend\n\nif <(backdrop [number v]) = [8]> then\n    show\n    go to x: (-109) y: (-90)\nelse\n    if <(backdrop [number v]) = [9]> then\n        go to x: (-88) y: (-82)\n        show\n    end\nend\n\nwhen I receive [アニメーション v]\nswitch costume to (コスチューム1 v)\nwait (0.05) seconds\nswitch costume to (コスチューム2 v)\nwait (0.05) seconds\nswitch costume to (コスチューム3 v)\n\ngo to x: (-109) y: (-90)\n\nwhen I receive [goal v]\nhide\nwait (0.1) seconds\n\n@sun\n\nwhen flag clicked\ngo to x: (-31) y: (-35)\nset size to (100) %\nset [sun suze v] to [100]\nforever\n    change size by ([cos v] of (Sun Suze) )\n    change [sun suze v] by (7)\nend\n\nwhen flag clicked\nforever\n    if <<<<(Level) = [10]> or <(Level) = [11]>> or <(Level) = [12]>> or <(Level) = [13]>> then\n        hide\n    else\n        show\n    end\nend\n\n@Light (演出)\n\nwhen I receive [start v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\nset x to (220)\nset size to (pick random (50) to (60)) %\nset y to (pick random (160) to (-160))\nshow\nrepeat (88)\n    change x by (-5)\nend\ndelete this clone\n\nwhen I start as a clone\nrepeat (3)\n    repeat (6)\n        change y by (2)\n        wait (0.05) seconds\n    end\n    repeat (4)\n        change y by (1.5)\n        wait (0.05) seconds\n    end\n    repeat (2)\n        change y by (1)\n        wait (0.05) seconds\n    end\n    repeat (6)\n        change y by (-2)\n        wait (0.05) seconds\n    end\n    repeat (4)\n        change y by (-1.5)\n        wait (0.05) seconds\n    end\n    repeat (2)\n        change y by (-1)\n        wait (0.05) seconds\n    end\nend\n\n@tran\n\nwhen flag clicked\nhide\n\nwhen I receive [goal v]\nswitch costume to (costume 2 v)\ngo [forward v] (10) layers\nshow\nstart sound [Low Whoosh v]\nrepeat (20)\n    change y by (((0) - (y position)) / (4))\nend\nwait (0.2) seconds\nstart sound [Low Whoosh v]\nrepeat (20)\n    change y by (((345) - (y position)) / (4))\nend\nhide\n\n@Saw\n\nwhen flag clicked\nhide\nforever\n    turn right (8) degrees\nend\n\nwhen flag clicked\nforever\n    if <(Stage) = [7]> then\n        go to x: (-3) y: (-122)\n        set size to (70) %\n        show\n    else\n        hide\n    end\nend\n\ngo to x: (5) y: (-95)\n\ngo to x: (11) y: (-132)\n\nshow\n\ngo to x: (-11) y: (-146)\n\n@スプライト1\n\nwhen I receive [start v]\ngo to x: (-183) y: (125)\nshow\nforever\n    go to [back v] layer\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [name v]) = [0%]> then\n            switch costume to (100% v)\n            broadcast (Unmute v)\n        else\n            switch costume to (0% v)\n            broadcast (Mute v)\n        end\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen flag clicked\nhide\n\n@スプライト3\n\ndefine 動き回るぅぅ！\ngo to [front v] layer\nsay []\nset size to (80) %\nshow\nsay [星とハート押してぇ！！！！]\nrepeat (12)\n    glide (0.08) secs to (random position v)\n    start sound [highspeed-movement1 v]\nend\ngo to x: (120) y: (-10)\nsay [星とハート...ね？\(拒否権なんて最初からなかった\)]\n\nwhen [timer v] > (0.01)\n動き回るぅぅ！\n\nwhen flag clicked\nsay []\nhide\nforever\n    reset timer\nend\n\n@スプライト2\n\ndefine 動き回るぅぅ！\nsay []\ngo to [front v] layer\nset size to (80) %\nshow\nsay [星とハート押してぇ！！！！]\nrepeat (12)\n    glide (0.08) secs to (random position v)\n    start sound [highspeed-movement1 v]\nend\ngo to x: (-120) y: (-10)\nsay [星とハート...ね？\(拒否権なんて最初からなかった\)]\n\nwhen [timer v] > (0.01)\n動き回るぅぅ！\n\nwhen flag clicked\nsay []\nhide\nforever\n    reset timer\nend\n\n@スプライト4\n\nwhen [timer v] > (0.01)\nshow\n\nwhen flag clicked\nsay []\nhide\nforever\n    reset timer\nend\n\n@スプライト5\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.1)\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n@Don't touch\n\nwhen flag clicked\nhide\n\nwhen I receive [goal v]\nnext costume\n\nwhen I receive [start v]\nshow\nswitch costume to (コスチューム1 v)\n\n@Logo If you want it.\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nwait (1) seconds\nrepeat (60)\n    change [brightness v] effect by (2)\n    set x to ((0) + (pick random (([abs v] of (randomness) ) * (-1)) to ([abs v] of (randomness) )))\n    change [randomness v] by (.5)\nend\nset x to (0)\nwait (1) seconds\nforever\n    repeat until <(direction) < [90]>\n        change [rotation speed v] by (-1)\n    end\n    repeat until <[90] < (direction)>\n        change [rotation speed v] by (1)\n    end\nend\n\nwhen flag clicked\nset [rotation speed v] to [0]\nforever\n    change x by (X speed)\n    change y by (Y speed)\n    turn right (rotation speed) degrees\nend\n\nwhen I receive [intro v]\nset [clone phase v] to [11]\ncreate clone of (_myself_ v)\nset size to (100) %\npoint in direction (90)\nswitch costume to (logo v)\nset [randomness v] to [0]\nset [intro on? v] to [1]\nshow\nset [y speed v] to [23]\nset [x speed v] to [0]\ngo to x: (0) y: (-999)\nrepeat until <(Y speed) < [0.1]>\n    change [y speed v] by (-1)\nend\nchange [y speed v] by (-1)\nwait (1.8) seconds\nset [y speed v] to [40]\nwait (.3) seconds\nset size to (90) %\ngo to x: (0) y: (-999)\nset [y speed v] to [0]\nglide (.2) secs to x: (0) y: (110)\nglide (.1) secs to x: (0) y: (0)\nset [clone phase v] to [1]\ncreate clone of (_myself_ v)\nset [clone phase v] to [2]\ncreate clone of (_myself_ v)\nset [clone phase v] to [3]\ncreate clone of (_myself_ v)\nglide (.1) secs to x: (0) y: (-150)\npoint in direction (45)\nset [y speed v] to [16]\nrepeat (32)\n    change [brightness v] effect by ((100) / (-32))\n    change [y speed v] by (-.5)\nend\nwait (.8) seconds\nglide (.1) secs to x: (-100) y: (98)\nset [clone phase v] to [4]\ncreate clone of (_myself_ v)\nwait (0) seconds\nglide (.1) secs to x: (0) y: (98)\nset [clone phase v] to [6]\ncreate clone of (_myself_ v)\nwait (0) seconds\nglide (.1) secs to x: (100) y: (98)\nset [clone phase v] to [5]\ncreate clone of (_myself_ v)\nwait (0) seconds\nglide (.2) secs to x: (0) y: (-98)\nwait (1.5) seconds\nglide (.1) secs to x: (-100) y: (-98)\nset [clone phase v] to [7]\ncreate clone of (_myself_ v)\nglide (.2) secs to x: (-30) y: (-98)\nset [clone phase v] to [8]\ncreate clone of (_myself_ v)\nglide (.2) secs to x: (100) y: (-98)\nwait (2) seconds\nglide (.1) secs to x: (0) y: (-259)\nset [clone phase v] to [9]\ncreate clone of (_myself_ v)\nwait (3.5) seconds\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\n\nwhen I receive [intro v]\nset volume to (0) %\nstart sound [621144_TheFatRat---Infinite-Power v]\nrepeat (20)\n    change volume by (5)\nend\n\nwhen I start as a clone\nif <<(clone phase) = [1]> or <(clone phase) = [2]>> then\n    forever\n        if <(clone phase) = [1]> then\n            point in direction (90)\n            switch costume to (imgonline-com-ua-shape-qh9sytmmwzd6k2 v)\n        end\n        if <(clone phase) = [2]> then\n            switch costume to (imgonline-com-ua-shape-qh9sytmmwzd6k2 v)\n            point in direction (-90)\n        end\n        if <<(x position) > [250]> or <(x position) < [-250]>> then\n            delete this clone\n        else\n            if <(clone phase) = [1]> then\n                change x by (10)\n            end\n            if <(clone phase) = [2]> then\n                change x by (-10)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    turn right (rotation speed) degrees\nend\n\nwhen I start as a clone\nif <(clone phase) = [3]> then\n    set size to (0) %\n    switch costume to (tntend v)\n    point in direction (120)\n    forever\n        repeat until <[100] > (direction)>\n            change [rotation speed v] by (-.5)\n        end\n        repeat until <(direction) > [80]>\n            change [rotation speed v] by (.5)\n        end\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nif <(clone phase) = [3]> then\n    forever\n        if <(size) < [100]> then\n            change size by (4)\n        end\n    end\nend\n\nwhen flag clicked\nbroadcast (Intro v)\n\nwhen I start as a clone\nif <(clone phase) = [4]> then\n    set size to (50) %\n    switch costume to (heart purple v)\n    point in direction (120)\n    forever\n        repeat until <[100] > (direction)>\n            change [rotation speed v] by (-.5)\n        end\n        repeat until <(direction) > [80]>\n            change [rotation speed v] by (.5)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(clone phase) = [5]> then\n    set size to (150) %\n    switch costume to (star v)\n    point in direction (120)\n    forever\n        repeat until <[100] > (direction)>\n            change [rotation speed v] by (-.5)\n        end\n        repeat until <(direction) > [80]>\n            change [rotation speed v] by (.5)\n        end\n    end\nend\n\nset [clone phase v] to [5]\n\nswitch costume to (tntend v)\npoint in direction (120)\n\nwhen I start as a clone\nif <(clone phase) = [6]> then\n    set size to (100) %\n    switch costume to (star2 v)\n    point in direction (120)\n    forever\n        repeat until <[100] > (direction)>\n            change [rotation speed v] by (-.5)\n        end\n        repeat until <(direction) > [80]>\n            change [rotation speed v] by (.5)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(clone phase) = [7]> then\n    set size to (100) %\n    switch costume to (star4 v)\n    point in direction (120)\n    forever\n        repeat until <[100] > (direction)>\n            change [rotation speed v] by (-.5)\n        end\n        repeat until <(direction) > [80]>\n            change [rotation speed v] by (.5)\n        end\n    end\nend\n\nwhen I start as a clone\nset [rotation speed v] to [0]\nif <(clone phase) = [8]> then\n    set size to (200) %\n    switch costume to (star6 v)\n    point in direction (120)\n    forever\n        repeat until <[100] > (direction)>\n            change [rotation speed v] by (-.5)\n        end\n        repeat until <(direction) > [80]>\n            change [rotation speed v] by (.5)\n        end\n    end\nend\n\nwait (0) seconds\n\nwhen I start as a clone\nif <(clone phase) = [9]> then\n    point in direction (90)\n    set size to (100) %\n    switch costume to (star7 v)\n    glide (1) secs to x: (0) y: (0)\n    set [clone phase v] to [10]\n    create clone of (_myself_ v)\n    wait (2) seconds\n    glide (1.1) secs to x: (0) y: (-999)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone phase) = [10]> then\n    point in direction (90)\n    set size to (100) %\n    switch costume to (star7 v)\n    glide (1) secs to x: (0) y: (180)\n    broadcast (intro killall v)\n    wait (1) seconds\n    glide (1) secs to x: (0) y: (-999)\n    broadcast (intro end v)\nend\n\nwhen I receive [intro killall v]\nif <not <<(clone phase) = [9]> or <(clone phase) = [10]>>> then\n    hide\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clone phase) = [11]> then\n    show\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    switch costume to (blew v)\nend\n\nwhen I receive [intro end v]\nbroadcast (Start v)\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n
↑これはコンテストみたいなものです！\n\nこれは見ての通り@hgwrs16さんとのコラボです！\n長かった夢がついにかないました！！\n\n@hgwrs16さんの作品↓\nhttps://scratch.mit.edu/projects/408867042\n\n#TNTend #Hgwrs16 #Platformer 