-Hazard-  Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nforever\n    if <(Stage) = [7]> then\n        switch backdrop to (背景3 v)\n    end\nend\n\nwhen I receive [start v]\nswitch backdrop to (背景2 v)\nforever\n    play sound [Blooom - Be Around v] until done\nend\n\n@Ground\n\nwhen flag clicked\nset [stage v] to [0]\nswitch costume to (1 v)\nhide\nforever\n    set [stage v] to (costume [number v])\nend\n\nwhen I receive [start v]\nshow\nforever\n    if <(Stage) = [7]> then\n        broadcast (Cave v)\n    end\nend\n\nwhen I receive [goal v]\nnext costume\n\n@Player\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\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 (100) %\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [start v]\ngo to x: (-194) y: (33)\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nreset timer\nswitch costume to (1 v)\nswitch backdrop to (2 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 (saws 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 (red bar 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        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        set [y v] to [23]\n        create clone of (_myself_ v)\n        broadcast (アニメーション v)\n    end\n    if <<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> then\n        switch costume to (2 v)\n        if <[-166] > (y position)> then\n            go to x: (-194) y: (33)\n        end\n    else\n        switch costume to (1 v)\n        if <[-166] > (y position)> then\n            go to x: (-194) y: (33)\n        end\n    end\n    if <(Stage) = [11]> then\n    else\n        if <(x position) > [215]> then\n            broadcast (Goal v)\n            go to x: (-194) y: (33)\n            hide\n            wait (1) seconds\n            show\n        end\n    end\n    if <(Stage) = [19]> then\n        set [☁ your time v] to (timer)\n        broadcast (記録表示 v)\n        show variable [☁ world record v]\n        show variable [☁ your time v]\n        if <(☁ World Record) > [50]> then\n            set [☁ world record v] to (☁ Your Time)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [goal v]\nwait (2) seconds\n\n@スプライト1\n\nwhen flag clicked\nhide\ngo [backward v] (1) layers\nswitch costume to (コスチューム1 v)\n\nwhen I receive [goal v]\nnext costume\n\nwhen I receive [start v]\nshow\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@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@Saws\n\nwhen flag clicked\nforever\n    if <(Stage) = [8]> then\n        go to x: (13) y: (-45)\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    turn right (15) degrees\nend\n\n@skip\n\nwhen flag clicked\nswitch costume to (grass v)\nhide\nset size to (75) %\nforever\n    point in direction (([sin v] of ((timer) * (1200)) ) + (90))\n    wait (..2) seconds\n    if <(Stage) > [6]> then\n        switch costume to (cave v)\n    else\n        switch costume to (grass v)\n    end\n    if <(Stage) = [11]> then\n        hide\n    end\nend\n\nwhen I receive [start v]\nshow\ngo to [front v] layer\ngo to x: (-180) y: (-155)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Goal v)\n\nwhen I receive [cutscene boss v]\nhide\n\n@sun\n\nwhen flag clicked\nhide\ngo to x: (-5) y: (-25)\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 I receive [start v]\nshow\n\nwhen I receive [start v]\nforever\n    if <<<<<(Stage) = [7]> or <(Stage) = [8]>> or <(Stage) = [9]>> or <(Stage) = [10]>> or <(Stage) = [11]>> then\n        hide\n    else\n        show\n    end\nend\n\n@スプライト3\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [goal v]\nnext costume\n\n@文字\n\nwhen flag clicked\ngo to [front v] layer\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    set y to (((([sin v] of ((timer) * (250)) ) + (18)) * (1.5)) * (5))\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        switch costume to (10 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [11]> then\n        switch costume to (11 v)\n        start sound [people-performance-cheer1 v]\n    end\nend\n\n@clouds\n\nwhen flag clicked\nhide\nif <<<<<(Stage) = [7]> or <(Stage) = [8]>> or <(Stage) = [9]>> or <(Stage) = [10]>> or <(Stage) = [11]>> then\nelse\n    repeat (5)\n        create clone of (_myself_ v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (60) to (240))\n        repeat (220)\n            change x by (2)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (110)\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\nend\n\nwhen I receive [start v]\n\nwhen I receive [cave v]\ndelete this clone\n\n@スプライト2\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Awsome Intro!\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]\nstop [other scripts in sprite v]\nbroadcast (Start v)\ndelete this clone\n\n
Allow keys to move! Or mobile controls\nDown to crouch \nClick skip to skip!\n\n矢印キーで移動！ またはモバイルコントロール\n下キーでしゃがむ\nスキップするにはスキップをクリックしてください！