360° Platformer

Instructions: 【日本語&English】\n矢印キーかWASDキーで動きます\nUse the arrow keys or the WASD key\n\nマグマや棘を避けて進んで下さい‼\nAvoid magma and thorns‼\n\n黄色はジャンプしてはいけない所です‼（一応w）\nYellow is a moving walkway in the opposite direction‼\n\n旗の上に乗って下さい\nGet on the flag\n\n頑張って下さい^^\nGood luck with:D\n\n当たり判定、易しいです

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景 v)\n\nwhen flag clicked\nforever\n    set volume to (50) %\n    play sound [houkagonoyuzora v] until done\nend\n\nwhen [timer v] > (0)\nswitch backdrop to (背景1 v)\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n@地面\n\nwhen I receive [reset v]\npoint in direction (90)\ngo to x: (0) y: (-450)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [jump v]\nset [y v] to [-20]\nstart sound [ボヨン v]\n\nwhen I receive [ reverse v]\nchange [x v] by (-0.4)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [x v] by (-0.4)\nend\n\nwhen I receive [next stage v]\nswitch costume to (2 v)\npoint in direction (90)\ngo to x: (0) y: (-450)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nswitch costume to ( v)\nset size to (150) %\nswitch costume to (1 v)\nshow\nset [x v] to [0]\npoint in direction (90)\nset [y v] to [0]\ngo to x: (0) y: (-450)\nforever\n    change [y v] by (1)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (0.4)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.4)\n    end\n    set [x v] to ((x) * (0.8))\n    turn left (x) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        turn left ((0) - (x)) degrees\n                        change y by (4)\n                        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [50]>>> then\n                            if <[0] < (x)> then\n                                set [x v] to [-1.5]\n                            else\n                                set [x v] to [1.5]\n                            end\n                            set [y v] to [-10]\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (player v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [50]>>> then\n            change [y v] by (-15)\n            start sound [ニュッ2 v]\n            if <touching (player v)?> then\n                if <<[100] < (direction)> or <(direction) > [98]>> then\n                    broadcast (Reset v)\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <[-180] = (direction)> then\n        point in direction (165)\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\nset size to (15) %\ngo to x: (0) y: (0)\nshow\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        point in direction (-90)\n    end\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <<(y position) > (mouse y)> and <touching (地面 v)?>>>> then\n        switch costume to (しゃがみ v)\n    else\n        switch costume to (ねみ〜 v)\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <<touching color (#ff0101)?> or <touching color (#ff6767)?>> then\n        broadcast (Reset v)\n    end\n    if <touching color (#a397ff)?> then\n        broadcast (Jump v)\n    end\n    if <([costume name v] of [地面 v]) = [1]> then\n        if <touching color (#ccff67)?> then\n            broadcast (Next Stage v)\n        end\n    end\n    change y by (5)\nend\n\n@雲\n\nwhen I start as a clone\nshow\nset [雲\(クローン\) v] to (pick random (13) to (145))\nset y to (雲\(クローン\))\ngo to [back v] layer\ngo [forward v] (pick random (0) to (2)) layers\nset [ghost v] effect to (pick random (0) to (20))\nset size to (pick random (80) to (100)) %\nforever\n    go to x: (279) y: (雲\(クローン\))\n    glide (pick random (3) to (8)) secs to x: (-279) y: (雲\(クローン\))\n    hide\n    wait (pick random (2) to (5)) seconds\n    show\n    glide (pick random (3) to (8)) secs to x: (279) y: (雲\(クローン\))\nend\n\nwhen flag clicked\nrepeat (pick random (2) to (4))\n    create clone of (_myself_ v)\nend\nshow\nset [雲 v] to (pick random (13) to (145))\nset y to (雲)\ngo to [back v] layer\nset [ghost v] effect to (pick random (0) to (20))\nset size to (pick random (80) to (100)) %\nforever\n    go to x: (-279) y: (雲)\n    glide (pick random (3) to (8)) secs to x: (279) y: (雲)\n    hide\n    wait (pick random (2) to (5)) seconds\n    show\n    glide (pick random (3) to (8)) secs to x: (-279) y: (雲)\nend\n\nwhen [timer v] > (0)\nhide\n\n@スプライト1\n\nwhen flag clicked\nshow\nforever\n    go to x: (231) y: (168)\n    glide (1.5) secs to x: (186) y: (110)\n    glide (1.5) secs to x: (231) y: (168)\nend\n\nwhen [timer v] > (0)\nhide\n\n