Snow platformer

Instructions: Use the arrow keys to move!　　　　　　　　　　　　

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景2 v)\nset [ghost v] effect to (60)\n\nwhen I receive [start v]\nforever\n    switch backdrop to (背景3 v)\nend\n\nwhen flag clicked\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to [front v] layer\nshow\ngo to x: () y: ()\nforever\n    if <(ステージ) = [1]> then\n        switch costume to (コスチューム1 v)\n    end\n    if <(ステージ) = [2]> then\n        switch costume to (コスチューム2 v)\n    end\n    if <(ステージ) = [3]> then\n        switch costume to (コスチューム3 v)\n    end\n    if <(ステージ) = [4]> then\n        switch costume to (コスチューム4 v)\n    end\n    if <(ステージ) = [5]> then\n        switch costume to (コスチューム5 v)\n    end\n    if <(ステージ) = [6]> then\n        switch costume to (コスチューム6 v)\n    end\n    if <(ステージ) = [7]> then\n        switch costume to (コスチューム8 v)\n    end\n    if <(ステージ) = [8]> then\n        switch costume to (コスチューム9 v)\n    end\n    if <(ステージ) = [9]> then\n        switch costume to (コスチューム10 v)\n    end\n    if <(ステージ) = [10]> then\n        switch costume to (コスチューム9 v)\n    end\n    if <(ステージ) = [11]> then\n        switch costume to (コスチューム10 v)\n    end\nend\n\nwhen flag clicked\n\n@バネ\n\nwhen flag clicked\nhide\n\nforever\n    if <touching (黄色いやつ v)?> then\n        switch costume to (コスチューム2 v)\n        wait (0.3) seconds\n        switch costume to (コスチューム1 v)\n        wait (0.1) seconds\n    end\n    if <(ステージ) = [1]> then\n        hide\n    end\n    if <(ステージ) = [2]> then\n        show\n        go to x: (6) y: (-180)\n    end\n    if <(ステージ) = [3]> then\n        hide\n    end\n    if <(ステージ) = [5]> then\n        show\n        go to x: (-83) y: (-180)\n    end\nend\n\n@スプライト2\n\nwhen flag clicked\nset size to (100) %\nshow\nforever\n    change size by ([cos v] of (sun) )\n    change [sun v] by (4)\n    switch costume to (コスチューム2 v)\nend\n\n@スプライト3\n\nwhen flag clicked\nhide\n\nif <(ステージ) = [7]> then\n    switch costume to (コスチューム3 v)\n    go to x: (-38) y: (-127)\n    show\nend\n\nwhen I receive [start v]\nshow\nswitch costume to (コスチューム4 v)\nforever\n    go to [back v] layer\n    turn right (5) degrees\n    if <(ステージ) = [1]> then\n        hide\n    end\n    if <(ステージ) = [4]> then\n        switch costume to (コスチューム1 v)\n        show\n        go to x: (53) y: (-137)\n    end\n    if <(ステージ) = [5]> then\n        hide\n    end\n    if <(ステージ) = [6]> then\n        switch costume to (コスチューム3 v)\n        go to x: (-38) y: (-127)\n        show\n    end\n    go to [back v] layer\n    if <(ステージ) = [7]> then\n        hide\n    end\nend\n\nshow\nswitch costume to (コスチューム2 v)\n\n@スプライト7\n\nwhen I start as a clone\n\nshow\nturn right (pick random (0) to (360)) degrees\nset size to (pick random (5) to (10)) %\nrepeat (15)\n    move (2) steps\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\n@スプライト5\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    go to [back v] layer\n    set [ghost v] effect to (50)\n    if <(ステージ) = [1]> then\n        hide\n    end\n    if <(ステージ) = [2]> then\n        show\n        go to x: (41) y: (-124)\n        switch costume to (costume4 v)\n    end\n    if <(ステージ) = [3]> then\n        hide\n    end\n    if <(ステージ) = [4]> then\n        show\n        switch costume to (costume2 v)\n        go to x: (41) y: (-124)\n    end\n    if <(ステージ) = [5]> then\n        hide\n    end\nend\n\n@スプライト6\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (0)\nset size to (pick random (1.01) to (50)) %\ngo to x: (500) y: (pick random (-180.01) to (180))\nglide (pick random (1.01) to (1,2)) secs to x: (-240) y: (pick random (-180.01) to (180))\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nset [ghost v] effect to (pick random (70) to (100))\n\n@スプライト13\n\nwhen flag clicked\nhide\n\ndefine next\nrepeat (5)\n    change [ghost v] effect by (10)\nend\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\nbroadcast (next v)\n\nwhen flag clicked\nswitch costume to (コスチューム2 v)\ngo to x: (100) y: (15)\nshow\nset [ghost v] effect to (100)\n\nif <(音楽) = [2]> then\n    play sound [ねこくんbgm3 v] until done\nend\n\nwhen I receive [うわああああああ v]\nswitch costume to (指やじるしの無料素材2 v)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (start v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [tugitugi v]\nswitch costume to (指やじるしの無料素材 v)\nset [ghost v] effect to (100)\nrepeat (5)\n    change [ghost v] effect by (10)\nend\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        next\n    end\nend\n\n@スプライト4\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (ha-toto v)\nforever\n    if <(やられ) = [1]> then\n        switch costume to (ha-toto2 v)\n    end\n    if <(やられ) = [2]> then\n        switch costume to (ha-toto3 v)\n    end\n    if <(やられ) = [3]> then\n        broadcast (さーむね v)\n    end\nend\n\n@スプライト8\n\nwhen I receive [さーむね v]\nshow\ngo to [front v] layer\nset [ghost v] effect to (0)\nbroadcast (終わり v)\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (0)\nset [ghost v] effect to (99999)\n\n@スプライト9\n\nwhen flag clicked\nhide\nforever\n    glide (0.5) secs to x: (-21) y: (-162)\n    glide (0.5) secs to x: (-21) y: (-180)\nend\n\nwhen I receive [start v]\nforever\n    if <(ステージ) = [1]> then\n        show\n        switch costume to (コスチューム1 v)\n    end\n    if <(ステージ) = [2]> then\n        hide\n        hide\n    end\n    if <(ステージ) = [3]> then\n        show\n        switch costume to (コスチューム3 v)\n    end\n    if <(ステージ) = [4]> then\n        hide\n    end\n    if <(ステージ) = [5]> then\n        switch costume to (コスチューム2 v)\n        show\n    end\n    if <(ステージ) = [6]> then\n        hide\n    end\n    if <(ステージ) = [7]> then\n        switch costume to (コスチューム4 v)\n        show\n    end\n    if <(ステージ) = [8]> then\n        hide\n    end\nend\n\n@スプライト10\n\nwhen flag clicked\nshow\nhide\n\nwhen I receive [start v]\nshow\nforever\n    point in direction (90)\n    set [s v] to [0]\n    set size to (0) %\n    repeat (46)\n        if <mouse down?> then\n            delete this clone\n        end\n        set [s v] to (((s) * (0.75)) + (((130) - (size)) * (0.3)))\n        change size by (s)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [1]> then\n        switch costume to (コスチューム1 v)\n    end\n    if <(ステージ) = [2]> then\n        switch costume to (コスチューム2 v)\n    end\n    if <(ステージ) = [3]> then\n        switch costume to (コスチューム3 v)\n    end\n    if <(ステージ) = [4]> then\n        switch costume to (コスチューム4 v)\n    end\n    if <(ステージ) = [5]> then\n        switch costume to (コスチューム5 v)\n    end\n    if <(ステージ) = [6]> then\n        switch costume to (コスチューム6 v)\n    end\n    if <(ステージ) = [7]> then\n        switch costume to (コスチューム7 v)\n    end\n    if <(ステージ) = [8]> then\n        switch costume to (コスチューム8 v)\n    end\nend\n\n@スプライト11\n\nwhen this sprite clicked\nnext costume\nif <(costume [name v]) = [2]> then\n    set volume to (0) %\nelse\n    set volume to (100) %\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (1 v)\nset volume to (150) %\nforever\n    play sound [Illenium - Let You Go \(ft v] until done\n    if <(costume [name v]) = [1]> then\n        set volume to (150) %\n    end\nend\n\n@スプライト12\n\nwhen flag clicked\nhide\nset [音楽 v] to [0]\n\ndefine next\nrepeat (5)\n    change [ghost v] effect by (10)\nend\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [next v]\nset volume to (100) %\nnext costume\nnext\n\nwhen I receive [start v]\nhide\n\nwhen I receive [tugitugi v]\nforever\n    if <(costume [number v]) = [3]> then\n        wait until <(costume [number v]) = [3]>\n        broadcast (うわああああああ v)\n    end\nend\n\nwhen I receive [tugitugi v]\nswitch costume to (コスチューム2 v)\ngo to x: (32) y: (15)\nset [押された v] to [1]\nshow\nset [ghost v] effect to (100)\nnext\n\nwhen I receive [tugitugi v]\nset [音楽 v] to [1]\n\nwhen I receive [tugitugi v]\nset volume to (100) %\nforever\n    if <(音楽) = [1]> then\n        play sound [Sunshine v] until done\n    end\nend\n\nwhen I receive [start v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nforever\n    set [音楽 v] to [0]\nend\n\nwhen I receive [tugitugi v]\nset [音楽 v] to [1]\n\n@黄色いやつ\n\nwhen flag clicked\n\ndefine 初期化\nset [ghost v] effect to (0)\ngo to x: (-200) y: (-100)\nset [ｘ v] to [0]\nset [ｙ v] to [0]\n\nchange y by (1)\n\nwhen flag clicked\nforever\n    if <[230] < (x position)> then\n        change [ステージ v] by (1)\n        初期化\n        broadcast (次よお v)\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nset size to (size) %\nrepeat (10)\n    change [ghost v] effect by (50)\nend\ndelete this clone\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [やられ v] to [0]\nshow\ngo to [front v] layer\nset [next v] to [0]\nset [止まる v] to [0]\nhide variable [ｘ v]\nforever\n    if <touching (スプライト17 v)?> then\n        set [ｙ v] to [20]\n        broadcast (バネ v)\n    end\n    if <<touching (スプライト9 v)?> or <touching (スプライト3 v)?>> then\n        初期化\n        change [やられ v] by (1)\n        set volume to (60) %\n        play sound [６５ v] until done\n    end\nend\n\nwhen I receive [start v]\nshow\n初期化\nset [ステージ v] to [1]\nset [ｘ v] to [0]\nset [ｙ v] to [0]\nset [\(*´σｰ｀\)ｴﾍﾍ v] to [1]\nset rotation style [left-right v]\nforever\n    set rotation style [left-right v]\n    if <key (left arrow v) pressed?> then\n        change [ｘ v] by (-0.8)\n        create clone of (_myself_ v)\n        switch costume to (a3 v)\n    end\n    if <key (right arrow v) pressed?> then\n        change [ｘ v] by (0.8)\n        create clone of (_myself_ v)\n        switch costume to (a2 v)\n    end\n    change x by (ｘ)\n    set [ｘ v] to ((ｘ) * (0.9))\n    if <<<<touching (スプライト1 v)?> or <touching (スプライ23495673 v)?>> or <touching (59690930 v)?>> or > then\n        change y by (1)\n        if <<<<touching (スプライト1 v)?> or <touching (スプライ23495673 v)?>> or <touching (59690930 v)?>> or > then\n            change y by (1)\n        end\n        if <<<<touching (スプライト1 v)?> or <touching (スプライ23495673 v)?>> or <touching (59690930 v)?>> or > then\n            change y by (1)\n        end\n        if <<<<touching (スプライト1 v)?> or <touching (スプライ23495673 v)?>> or <touching (59690930 v)?>> or > then\n            change y by (1)\n        end\n        if <<<<touching (スプライト1 v)?> or <touching (スプライ23495673 v)?>> or <touching (59690930 v)?>> or > then\n            change y by (1)\n        end\n        if <<<<touching (スプライト1 v)?> or <touching (スプライ23495673 v)?>> or <touching (59690930 v)?>> or > then\n            change x by ((ｘ) * (-1.11))\n            change y by (-5)\n            if <key (up arrow v) pressed?> then\n        end\n    end\n    change y by (-1)\n    create clone of (_myself_ v)\n    if <key (up arrow v) pressed?> then\n        if <<<<touching (スプライト1 v)?> or <touching (スプライ23495673 v)?>> or <touching (59690930 v)?>> or > then\n            set [ｙ v] to [13]\n        end\n    end\n    change y by (ｙ)\n    change [ｙ v] by (-1)\n    if <<<<touching (スプライト1 v)?> or <touching (スプライ23495673 v)?>> or <touching (59690930 v)?>> or > then\n        change y by ((ｙ) * (-1))\n        set [ｙ v] to [0]\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(ステージ) = [8]> then\n        hide\n    end\nend\n\nbroadcast (kabekikku v)\nif <(ｘ) > [0]> then\n    set [ｘ v] to [-10]\nelse\n    set [ｘ v] to [10]\nend\nset [ｙ v] to [16]\n\nwhen I receive [終わり v]\nhide\n\n@スプライト15\n\nwhen flag clicked\nhide\nforever\n    go to (黄色いやつ v)\nend\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    if <<not <(ｘ) = [0]>> or <not <(ｙ) = [0]>>> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nif <<not <(X) = [0]>> or <not <(ｙ) = [0]>>> then\n    show\n    repeat (50)\n        turn right (15) degrees\n        change [ghost v] effect by (2)\n    end\n    delete this clone\nelse\n    delete this clone\nend\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen I start as a clone\n\nshow\nif <<not <(ｘ) = [10]>> or <not <(ｙ) = [10]>>> then\n    repeat (50)\n        turn right (15) degrees\n        change [ghost v] effect by (2)\n    end\n    delete this clone\nelse\n    delete this clone\nend\n\nshow\n\nwhen I receive [start v]\nforever\n    if <<not <(ｘ) = [10]>> or <not <(ｙ) = [10]>>> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nforever\n    go to (黄色いやつ v)\nend\n\n@スプライト14\n\nwhen I start as a clone\n\nif <(cloneID) = [logo]> then\n    show\n    set [clone_dir v] to [360]\n    switch costume to (bit v)\n    set size to (1200) %\n    switch costume to (logo v)\n    repeat until <[101] > (size)>\n        switch costume to (bit v)\n        change size by (((65) - (size)) / (6.9))\n        change [clone_dir v] by (((90) - (clone_dir)) / (6.9))\n        point in direction (clone_dir)\n        switch costume to (logo v)\n    end\n    repeat until <[66] > (size)>\n        change size by (((65) - (size)) / (6.9))\n        change [clone_dir v] by (((90) - (clone_dir)) / (6.9))\n        point in direction (clone_dir)\n    end\n    set [clone_dir v] to [0.5]\n    repeat until <(size) > [100]>\n        change [clone_dir v] by ((clone_dir) / (2))\n        change size by (clone_dir)\n        turn right ((clone_dir) / (-12)) degrees\n    end\n    repeat (7)\n        switch costume to (bit v)\n        change [clone_dir v] by ((clone_dir) / (2))\n        change size by (clone_dir)\n        turn right ((clone_dir) / (-12)) degrees\n        switch costume to (logo v)\n    end\n    hide\n    switch costume to (square1 v)\n    set [cloneid v] to [square2]\n    create clone of (_myself_ v)\n    switch costume to (square2 v)\n    set [cloneid v] to [square3]\n    create clone of (_myself_ v)\n    set [cloneid v] to [kirbyzaz]\n    create clone of (_myself_ v)\n    set [cloneid v] to [back3]\n    create clone of (_myself_ v)\n    repeat (8)\n        set [clone_size v] to [50]\n        set [cloneid v] to [square1]\n        create clone of (_myself_ v)\n        set [cloneid v] to [back2]\n        create clone of (_myself_ v)\n        switch costume to (square1 v)\n        wait (0.561) seconds\n    end\n    delete this clone\nend\n\nwhen flag clicked\n\ngo to x: (0) y: (0)\ngo to [front v] layer\npoint in direction (90)\nreset timer\nwait (0.7) seconds\nhide\nset [cloneid v] to [b1]\ncreate clone of (_myself_ v)\nset [cloneid v] to [b2]\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nset [cloneid v] to [back]\ncreate clone of (_myself_ v)\nset [cloneid v] to [logo]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nbroadcast (tugitugi v)\n\nset volume to (100) %\nwait (0.8) seconds\nplay sound [Alan Walker, K-391, Tungevaag, Mangoo - Play \[Xaf Remix\]3 v] until done\n\nwhen flag clicked\nwait (4) seconds\n\nbroadcast (tugitugi v)\n\n@スプライト16\n\nwhen I receive [tugitugi v]\nshow\nset [ghost v] effect to (100)\nrepeat (5)\n    change [ghost v] effect by (10)\nend\nrepeat (5)\n    change [ghost v] effect by (-10)\nend\nshow\ngo to [back v] layer\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        repeat (5)\n            change [ghost v] effect by (10)\n        end\n        repeat (5)\n            change [ghost v] effect by (-10)\n        end\n        broadcast (start v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nhide\n\n@スプライト17\n\nwhen flag clicked\nhide\ngo to [back v] layer\nswitch costume to (コスチューム1 v)\n\nwhen I receive [start v]\nforever\n    if <touching (黄色いやつ v)?> then\n        switch costume to (コスチューム2 v)\n        wait (0.2) seconds\n        wait (0.2) seconds\n        switch costume to (コスチューム1 v)\n    end\n    if <(ステージ) = [1]> then\n        hide\n    end\n    if <(ステージ) = [7]> then\n        show\n        go to x: (33) y: (-2)\n    end\n    if <(ステージ) = [8]> then\n        hide\n    end\nend\n\nswitch costume to (コスチューム1 v)\n\n