Zombie platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Alan Walker - Faded \(Lyrics\) v] until done\nend\n\n@스프라이트 2\n\nwhen flag clicked\nforever\n    go to (권총 2.0 v)\n    point in direction ([direction v] of [권총 2.0 v])\nend\n\nchange x by (10)\n\nwhen flag clicked\nhide\n\nwhen I receive [ㅋ v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\npoint in direction ([direction v] of [권총 2.0 v])\nshow\nrepeat until <<<touching (_edge_ v)?> or <touching (levels v)?>> or <touching (z v)?>>\n    move (40) steps\nend\ndelete this clone\n\ndelete this clone\n\n@권총 2.0\n\nwhen flag clicked\nset [오왼? v] to [오]\npoint in direction (90)\ngo to [back v] layer\nswitch costume to (권총\(보통 - 3\) v)\nforever\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        set [오왼? v] to [오]\n        point in direction (90)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        set [오왼? v] to [왼]\n        point in direction (-90)\n    end\nend\n\nif <mouse down?> then\n    broadcast (메시지1 v)\n    wait until <not <mouse down?>>\nend\n\nwhen I receive [ㅋ v]\nswitch costume to (권총\(발사 - 1\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(발사 - 2\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(발사 - 3\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(보통 - 3\) v)\n\ngo to x: (-12) y: (30)\n\nwhen flag clicked\nforever\n    if <(오왼?) = [오]> then\n        go to x: (([x position v] of [player v]) + (35)) y: ([y position v] of [player v])\n    else\n        go to x: (([x position v] of [player v]) + (-35)) y: ([y position v] of [player v])\n    end\nend\n\nwhen I receive [장전 v]\nswitch costume to (권총\(장전 - 1\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(장전 - 2\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(장전 - 3\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(장전 - 4\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(장전 - 5\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(장전 - 6\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(장전 - 7\) v)\nwait (0.00001) seconds\nswitch costume to (권총\(장전 - 8\) v)\n\npoint in direction (90)\n\n@섬광 2.0\n\nwhen I start as a clone\nif <(오왼?) = [오]> then\n    go to x: (([x position v] of [권총 2.0 v]) + (33)) y: (([y position v] of [권총 2.0 v]) + (3))\nelse\n    go to x: (([x position v] of [권총 2.0 v]) + (-33)) y: (([y position v] of [권총 2.0 v]) + (3))\nend\nstart sound [소음기 안낀 소리1 v]\nshow\nswitch costume to (pick random (1) to (4))\nwait (0.01) seconds\ndelete this clone\n\nhide\n\nwhen I start as a clone\n\nwhen I receive [ㅋ v]\ncreate clone of (_myself_ v)\n\nif <(오왼?) = [오]> then\n    go to x: (20) y: (31)\nelse\n    go to x: (-122) y: (31)\nend\n\n@스프라이트 4\n\nswitch costume to (모양 1 v)\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nshow\nchange y by (pick random (-10) to (10))\nchange x by (pick random (-10) to (10))\nset [2 v] to (pick random (5) to (-5))\nset [3 v] to (pick random (-5) to (5))\nchange x by (2)\nchange y by (3)\nrepeat until <<touching (_edge_ v)?> or <touching (levels v)?>>\n    change [3 v] by (-1)\n    turn right (2) degrees\n    change x by (2)\n    change y by (3)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nrepeat (1)\n    change [3 v] by (-1)\n    change x by (2)\n    change y by (3)\nend\n\nset [2 v] to [0]\n\ndefine 1\nrepeat (10)\n    next costume\n    create clone of (_myself_ v)\nend\nswitch costume to (모양 1 v)\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to x: (-100) y: (-15)\n\nforever\n\n\n\nstart sound [recording2 v]\n\nrepeat ((3) * (2))\n\nstart sound [recording2 v]\n\nchange x by (10)\n\nset x to ([x position v] of [스프라이트 1 v])\n\nchange x by (70)\n\nwait (0.5) seconds\n\ngo to x: (pick random (-200) to (200)) y: (-15)\n\nhide\n\nstart sound [recording2 v]\n\nstart sound [팝2 v]\n\nwhen I receive [restart v]\ngo to (player v)\nswitch costume to (모양 1 v)\n1\nset [pitch v] effect to (pick random (0) to (20))\nstart sound [recording4 v]\n\n@Enemy AI\n\nwhen flag clicked\nforever\n    \n        wait (0.1) seconds\n        next costume\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\nwait (0.001) seconds\nforever\n    if <touching (spikes v)?> then\n        go to x: (213) y: (-80)\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (213) y: (-80)\n\nwhen flag clicked\nwait (0.0001) seconds\n\nwhen flag clicked\ngo to x: (213) y: (-80)\nshow\n\nwhen I receive [ㅋ죽 v]\nstart sound [recording1 v]\n\nwhen I receive [ㅋ죽 v]\nhide\n\nwhen flag clicked\nhide\n\nrepeat (2)\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ v]\nshow\nrepeat (3)\n    go to x: (173) y: (-81)\nend\nstop [this script v]\n\nwhen flag clicked\nstop [other scripts in sprite v]\n\nwhen I receive [ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ v]\ngo to x: (xxx) y: (yyy)\nset [x-vel v] to [0]\nforever\n    change y by (에모)\n    change [에모 v] by (-1)\n    change y by (-1)\n    if <<touching (levels v)?> or <touching (z v)?>> then\n        set [에모 v] to ((에모) - ((에모) * (2)))\n        set [에모 v] to [0]\n    end\n    change y by (1)\n    if <<<touching (levels v)?> or <touching (z v)?>> or <(x position) < ([x position v] of [player v])>> then\n        change [x-vel v] by (0.5)\n        switch costume to (right v)\n    else\n        if <<not <<touching (levels v)?> or <touching (z v)?>>> or <([x position v] of [player v]) < (x position)>> then\n            change [x-vel v] by (-0.5)\n            switch costume to (left v)\n        end\n    end\n    set [x-vel v] to ((0.9) * (x-vel))\n    change x by (x-vel)\n    if <<touching (levels v)?> or <touching (z v)?>> then\n        change x by ((0) - (x-vel))\n        set [에모 v] to [4]\n        change y by (4)\n    end\nend\n\nwhen I receive [ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ v]\nforever\n    if <touching (스프라이트 2 v)?> then\n        broadcast (ㅋ죽 v)\n        hide\n    end\nend\n\nwhen I receive [ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ v]\nwait (0.001) seconds\nforever\n    if <<touching (levels v)?> or <touching (z v)?>> then\n        go to x: (X) y: (Y)\n    else\n        set [x v] to (x position)\n        set [y v] to (y position)\n    end\nend\n\nwhen I receive [ㅋㅋㅋㅋ아님 v]\nhide\nstop [other scripts in sprite v]\n\n@Levels\n\nwhen I receive [ㅋㅋㅋ v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [xxx v] to [0]\nset [yyy v] to [0]\n\nwhen I receive [ㅋㅋㅋ v]\nif <([costume # v] of [levels v]) = [7]> then\n    broadcast (ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ v)\nelse\n    broadcast (ㅋㅋㅋㅋ아님 v)\nend\nif <([costume # v] of [levels v]) = [4]> then\n    set [xxx v] to [213]\n    set [yyy v] to [-80]\nend\n\nwhen I receive [ㅋㅋㅋ v]\nif <([costume # v] of [levels v]) = [8]> then\n    broadcast (ㅋ2 v)\nelse\n    broadcast (ㅋ아님2 v)\nend\n\nwhen flag clicked\nforever\n    go to x: (7) y: (-108)\n    show\nend\n\n@z\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nforever\n    if <([costume # v] of [levels v]) = [3]> then\n        switch costume to (모양 1 v)\n        go to x: (4) y: (-81)\n        show\n    else\n        hide\n        if <([costume # v] of [levels v]) = [6]> then\n            switch costume to (모양 1 v)\n            go to x: (-80) y: (-81)\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    if <<([costume # v] of [levels v]) = [4]> or <([costume # v] of [levels v]) = [6]>> then\n        go to x: (9) y: (-146)\n        switch costume to (모양 2 v)\n        show\n    else\n        hide\n    end\nend\n\n@Player\n\nwhen flag clicked\ngo to x: (-188) y: (120)\nset [x - vel 2 v] to [0]\nforever\n    change y by (y - vel 2)\n    change [y - vel 2 v] by (-1)\n    change y by (-1)\n    if <touching (levels v)?> then\n        set [y - vel 2 v] to ((y - vel 2) - ((y - vel 2) * (2)))\n        set [y - vel 2 v] to [0]\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y - vel 2 v] to [12]\n        end\n    end\n    change y by (1)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x - vel 2 v] by (0.9)\n        switch costume to (right v)\n    else\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [x - vel 2 v] by (-0.9)\n            switch costume to (left v)\n        end\n    end\n    set [x - vel 2 v] to ((0.9) * (x - vel 2))\n    change x by (x - vel 2)\n    if <touching (levels v)?> then\n        change x by ((0) - (x - vel 2))\n    end\nend\n\nwhen flag clicked\nset [x 1 v] to (x position)\nset [y 1 v] to (y position)\nforever\n    if <touching (levels v)?> then\n        go to x: (X 1) y: (Y 1)\n    else\n        set [x 1 v] to (x position)\n        set [y 1 v] to (y position)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        go to x: (-217) y: (-80)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (z v)?> or <<touching (enemy ai v)?> or <touching (enemy ai2 v)?>>> then\n        broadcast (Restart v)\n        wait (0.01) seconds\n        go to x: (-196) y: (-41)\n        wait until <not <<touching (enemy ai v)?> or <touching (enemy ai2 v)?>>>\n    end\nend\n\nhide\nwait (2) seconds\n\nwhen I receive [restart v]\n\nwhen flag clicked\nforever\n    if <(x position) > [228]> then\n        broadcast (ㅋㅋㅋ v)\n    end\nend\n\nwhen I receive [ㅋㅋㅋ v]\ngo to x: (-201) y: (76)\n\nif <([costume # v] of [levels v]) = [5]> then\nelse\nend\n\ngo to x: (-196) y: (-41)\n\nwhen flag clicked\nshow\n\n@스프라이트 1\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    if <mouse down?> then\n        broadcast (ㅋ v)\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    if <([costume # v] of [levels v]) = [10]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\n\n@스프라이트 3\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@스프라이트 5\n\nswitch costume to (모양 1 v)\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nshow\nchange y by (pick random (-10) to (10))\nchange x by (pick random (-10) to (10))\nset [2 v] to (pick random (5) to (-5))\nset [3 v] to (pick random (-5) to (5))\nchange x by (2)\nchange y by (3)\nrepeat until <<touching (_edge_ v)?> or <touching (levels v)?>>\n    change [3 v] by (-1)\n    turn right (2) degrees\n    change x by (2)\n    change y by (3)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nrepeat (1)\n    change [3 v] by (-1)\n    change x by (2)\n    change y by (3)\nend\n\nset [2 v] to [0]\n\ndefine 1\nrepeat (10)\n    next costume\n    create clone of (_myself_ v)\nend\nswitch costume to (모양 1 v)\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to x: (-100) y: (-15)\n\nforever\nend\n\nif  then\nend\n\nstart sound [recording2 v]\n\nrepeat ((3) * (2))\n\nstart sound [recording2 v]\n\nchange x by (10)\n\nset x to ([x position v] of [스프라이트 1 v])\n\nchange x by (70)\n\nwait (0.5) seconds\n\ngo to x: (pick random (-200) to (200)) y: (-15)\n\nhide\n\nstart sound [recording2 v]\n\nstart sound [팝2 v]\n\nwhen I receive [ㅋ죽 v]\ngo to (enemy ai v)\nswitch costume to (모양 1 v)\n1\nset [pitch v] effect to (pick random (0) to (20))\nstart sound [recording4 v]\n\n@스프라이트 6\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to (mouse-pointer v)\nend\n\n@Enemy AI2\n\nwhen flag clicked\nforever\n    \n        wait (0.1) seconds\n        next costume\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\nwait (0.001) seconds\nforever\n    if <touching (spikes v)?> then\n        go to x: (213) y: (-80)\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (-213) y: (-80)\n\nwhen flag clicked\nwait (0.0001) seconds\n\nwhen flag clicked\ngo to x: (213) y: (-80)\nshow\n\nwhen I receive [ㅋㅋㅋㅋ죽\ v]\nstart sound [recording1 v]\n\nwhen I receive [ㅋ죽 v]\nhide\n\nwhen flag clicked\nhide\n\nrepeat (2)\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [ㅋ2 v]\nshow\nrepeat (3)\n    go to x: (-213) y: (-81)\nend\nstop [this script v]\n\nwhen flag clicked\nstop [other scripts in sprite v]\n\nwhen I receive [ㅋ2 v]\nshow\ngo to x: (-213) y: (-80)\nset [x-vel v] to [0]\nforever\n    change y by (에모)\n    change [에모 v] by (-1)\n    change y by (-1)\n    if <<touching (levels v)?> or <touching (z v)?>> then\n        set [에모 v] to ((에모) - ((에모) * (2)))\n        set [에모 v] to [0]\n    end\n    change y by (1)\n    if <<<touching (levels v)?> or <touching (z v)?>> or <(x position) < ([x position v] of [player v])>> then\n        change [x-vel v] by (0.5)\n        switch costume to (right v)\n    else\n        if <<not <<touching (levels v)?> or <touching (z v)?>>> or <([x position v] of [player v]) < (x position)>> then\n            change [x-vel v] by (-0.5)\n            switch costume to (left v)\n        end\n    end\n    set [x-vel v] to ((0.9) * (x-vel))\n    change x by (x-vel)\n    if <<touching (levels v)?> or <touching (z v)?>> then\n        change x by ((0) - (x-vel))\n        set [에모 v] to [4]\n        change y by (4)\n    end\nend\n\nwhen I receive [ㅋ2 v]\nforever\n    if <touching (스프라이트 2 v)?> then\n        broadcast (ㅋㅋㅋㅋ죽\ v)\n        hide\n    end\nend\n\nwhen I receive [ㅋ2 v]\nwait (0.001) seconds\nforever\n    if <<touching (levels v)?> or <touching (z v)?>> then\n        go to x: (X) y: (Y)\n    else\n        set [x v] to (x position)\n        set [y v] to (y position)\n    end\nend\n\nwhen I receive [ㅋ아님2 v]\nhide\nstop [other scripts in sprite v]\n\n@스프라이트 7\n\nswitch costume to (모양 1 v)\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nshow\nchange y by (pick random (-10) to (10))\nchange x by (pick random (-10) to (10))\nset [2 v] to (pick random (5) to (-5))\nset [3 v] to (pick random (-5) to (5))\nchange x by (2)\nchange y by (3)\nrepeat until <<touching (_edge_ v)?> or <touching (levels v)?>>\n    change [3 v] by (-1)\n    turn right (2) degrees\n    change x by (2)\n    change y by (3)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nrepeat (1)\n    change [3 v] by (-1)\n    change x by (2)\n    change y by (3)\nend\n\nset [2 v] to [0]\n\ndefine 1\nrepeat (10)\n    next costume\n    create clone of (_myself_ v)\nend\nswitch costume to (모양 1 v)\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to x: (-100) y: (-15)\n\nforever\nend\n\nif  then\nend\n\nstart sound [recording2 v]\n\nrepeat ((3) * (2))\n\nstart sound [recording2 v]\n\nchange x by (10)\n\nset x to ([x position v] of [스프라이트 1 v])\n\nchange x by (70)\n\nwait (0.5) seconds\n\ngo to x: (pick random (-200) to (200)) y: (-15)\n\nhide\n\nstart sound [recording2 v]\n\nstart sound [팝2 v]\n\nwhen I receive [ㅋㅋㅋㅋ죽\ v]\ngo to (enemy ai2 v)\nswitch costume to (모양 1 v)\n1\nset [pitch v] effect to (pick random (0) to (20))\nstart sound [recording4 v]\n\n@스프라이트 8\n\nwhen flag clicked\nhide\n\n
안녕하세요!오렛만에 올린 프젝 좀비 플렛포머 입니다.\n마우스 클릭해서 총을 쏘시면 됩니다\n----------------------------------------------------------------------------\n화살표키로 플레이어를 조종하세요.\n하트와 별눌러 주시면 감사하겠습니다:)