360° Platformer #Games
@Stage\n\nwhen flag clicked\nforever\n    play sound [Unlimited v] until done\nend\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nstop all sounds\nplay sound [Never Mind v] until done\n\n@스프라이트 1\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset rotation style [left-right v]\ngo to x: (0) y: (0)\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>>> then\n        point in direction (-90)\n    end\n    if <touching color (#ff0000)?> then\n        broadcast (원위치 v)\n    end\n    if <not <<touching (스프라이트 4 v)?> or <touching (스프라이트 2 v)?>>> then\n        if <<touching color (#ffde00)?> or <touching color (#000000)?>> then\n            broadcast (다음 v)\n            wait (0.1) seconds\n        end\n    end\nend\n\n@스프라이트 2\n\ndefine 크기 (크기)\nswitch costume to (. v)\nset size to (크기) %\nswitch costume to (모양 1 v)\n\nwhen flag clicked\n원위치\n크기 [200]\nforever\n    change [y v] by (1)\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n        change [회전 v] by (-0.3)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>>> then\n        change [회전 v] by (0.3)\n    end\n    set [회전 v] to ((회전) * (0.8))\n    turn right (회전) degrees\n    if <touching (스프라이트 1 v)?> then\n        change y by (-1)\n        if <touching (스프라이트 1 v)?> then\n            change y by (-1)\n            if <touching (스프라이트 1 v)?> then\n                change y by (-1)\n                if <touching (스프라이트 1 v)?> then\n                    change y by (-1)\n                    if <touching (스프라이트 1 v)?> then\n                        change y by (4)\n                        turn right ((회전) * (-1)) degrees\n                        set [회전 v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (스프라이트 1 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (1)\n    if <touching (스프라이트 1 v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>>> then\n            set [y v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen I receive [win v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [회전 v] to [0]\nset [y v] to [0]\nstop all sounds\n\nwhen I receive [원위치 v]\n원위치\n\ndefine 원위치\npoint in direction (90)\ngo to x: (-10) y: (-500)\ngo to [back v] layer\nset [회전 v] to [0]\nset [y v] to [0]\n\nwhen I receive [다음 v]\n원위치\nnext costume\n\n@스프라이트 3\n\ndefine 크기 (크기)\nswitch costume to (. v)\nset size to (크기) %\nswitch costume to (모양 1 v)\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (-10) y: (-500)\ngo to [back v] layer\n크기 [200]\n\nwhen I receive [win v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [회전 v] to [0]\nset [y v] to [0]\nstop all sounds\n\nwhen flag clicked\nforever\n    go to x: ([x position v] of [스프라이트 2 v]) y: ([y position v] of [스프라이트 2 v])\nend\n\nwhen flag clicked\nforever\n    point in direction ([direction v] of [스프라이트 2 v])\nend\n\nwhen flag clicked\nforever\n    switch costume to ([costume # v] of [스프라이트 2 v])\nend\n\n@스프라이트 4\n\nwhen I receive [다음 v]\nshow\ngo to [front v] layer\ngo to x: (-404) y: (0)\nglide (1) secs to x: (0) y: (0)\nwait (0.5) seconds\nglide (1) secs to x: (404) y: (0)\nhide\n\nwhen flag clicked\ngo to x: (-404) y: (0)\nhide\n\nwhen flag clicked\nforever\n    if <([costume # v] of [스프라이트 2 v]) = [5]> then\n        broadcast (Win v)\n        wait until <not <([costume # v] of [스프라이트 2 v]) = [5]>>\n    end\nend\n\n@스프라이트 5\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n
move with arrow keys