3D Platformer
@Stage\n\n@스프라이트 1\n\nwhen flag clicked\nshow\nset [level v] to [1]\nhide variable [level v]\nset size to (70) %\ngo to x: (-218) y: (25)\nforever\n    set rotation style [left-right v]\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <<touching (tull v)?> or <touching (---- v)?>> then\n        change y by (1)\n        if <<touching (tull v)?> or <touching (---- v)?>> then\n            change y by (1)\n            if <<touching (tull v)?> or <touching (---- v)?>> then\n                change y by (1)\n                if <<touching (tull v)?> or <touching (---- v)?>> then\n                    change y by (1)\n                    if <<touching (tull v)?> or <touching (---- v)?>> then\n                        change y by (1)\n                        if <<touching (tull v)?> or <touching (---- v)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching (tull v)?> or <touching (---- v)?>> then\n        if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> or <key (w v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching (tull v)?> or <touching (---- v)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <<<<touching color (#f10000)?> or <touching color (#af0000)?>> or <touching color (#ff0000)?>> or <touching (스프라이트 19 v)?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-218) y: (25)\n        set [ghost v] effect to (0)\n    end\n    if <<<touching (drum v)?> or <touching (drum2 v)?>> or <touching (drum3 v)?>> then\n        set [yv v] to [20]\n    end\n    if <(x position) > [230]> then\n        broadcast (NEXT v)\n        repeat (4)\n            change [ghost v] effect by (25)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-218) y: (25)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-218) y: (25)\n    end\nend\n\nwhen I receive [next level v]\nset [ghost v] effect to (0)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    if <touching (drum v)?> then\n        play drum (1 v) for (0.25) beats\n    end\nend\n\nset size to (70) %\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\n@스프라이트 2\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [next level v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\nwait (1) seconds\nbroadcast (start v)\n\nwhen I receive [start v]\nshow\nforever\n    go to x: (-209) y: (-125)\n    if <touching (스프라이트 1 v)?> then\n        set [color v] effect to (75)\n        set instrument to (1 v)\n        play note (48) for (0.25) beats\n        set [color v] effect to (0)\n        wait (0.6) seconds\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\n@스프라이트 3\n\nwhen I receive [start v]\nforever\n    go to x: (-148) y: (-125)\n    if <touching (스프라이트 1 v)?> then\n        set [color v] effect to (75)\n        set instrument to (1 v)\n        play note (50) for (0.25) beats\n        set [color v] effect to (0)\n        wait (0.6) seconds\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [next level v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\nwait (1) seconds\nbroadcast (start v)\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nforever\n    if <(LEVEL) = [9]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\n@스프라이트 4\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [start v]\nforever\n    go to x: (-88) y: (-125)\n    if <touching (스프라이트 1 v)?> then\n        set [color v] effect to (75)\n        set instrument to (1 v)\n        play note (52) for (0.25) beats\n        set [color v] effect to (0)\n        wait (0.6) seconds\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [next level v]\nwait (0.1) seconds\nstop [other scripts in sprite v]\nwait (1) seconds\nbroadcast (start v)\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nforever\n    if <(LEVEL) = [9]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\n@스프라이트 5\n\nwhen I receive [start v]\nforever\n    go to x: (-28) y: (-125)\n    if <touching (스프라이트 1 v)?> then\n        set [color v] effect to (75)\n        set instrument to (1 v)\n        play note (53) for (0.25) beats\n        set [color v] effect to (0)\n        wait (0.6) seconds\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nforever\n    if <<(LEVEL) = [4]> or <(LEVEL) = [9]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\n@스프라이트 6\n\nwhen flag clicked\n\nwhen I receive [start v]\nswitch costume to (모양 1 v)\nforever\n    go to x: (32) y: (-125)\n    if <touching (스프라이트 1 v)?> then\n        set [color v] effect to (75)\n        set instrument to (1 v)\n        play note (55) for (0.25) beats\n        set [color v] effect to (0)\n        wait (0.6) seconds\n    else\n        set [color v] effect to (0)\n    end\n    if <(LEVEL) = [3]> then\n        switch costume to (모양 2 v)\n    else\n        switch costume to (모양 1 v)\n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nforever\n    if <<(LEVEL) = [4]> or <(LEVEL) = [9]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\n@스프라이트 7\n\nwhen flag clicked\n\nwhen I receive [start v]\nforever\n    go to x: (93) y: (-125)\n    if <touching (스프라이트 1 v)?> then\n        set [color v] effect to (75)\n        set instrument to (1 v)\n        play note (57) for (0.25) beats\n        set [color v] effect to (0)\n        wait (0.6) seconds\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nif  then\n    hide\nelse\n    show\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nforever\n    if <<(LEVEL) = [4]> or <(LEVEL) = [9]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\n@스프라이트 8\n\nset instrument to (1 v)\nplay note (48) for (0.25) beats\n\nwhen flag clicked\n\nwhen I receive [start v]\nforever\n    go to x: (153) y: (-125)\n    if <touching (스프라이트 1 v)?> then\n        set [color v] effect to (75)\n        set instrument to (1 v)\n        play note (59) for (0.25) beats\n        set [color v] effect to (0)\n        wait (0.6) seconds\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nforever\n    if <<(LEVEL) = [4]> or <(LEVEL) = [9]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\n@스프라이트 9\n\nwhen flag clicked\n\nwhen I receive [start v]\nforever\n    go to x: (213) y: (-125)\n    if <touching (스프라이트 1 v)?> then\n        set [color v] effect to (75)\n        set instrument to (1 v)\n        play note (60) for (0.25) beats\n        set [color v] effect to (0)\n        wait (0.6) seconds\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nforever\n    if <<(LEVEL) = [9]> or <(LEVEL) = [4]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\n@스프라이트 10\n\nwhen flag clicked\nswitch costume to (모양 1 v)\ngo to [front v] layer\nforever\n    go to x: (17) y: (47)\nend\n\nset instrument to (8 v)\nplay note (60) for (0.25) beats\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nforever\n    if <(LEVEL) = [9]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [next level v]\nforever\n    if <(LEVEL) = [4]> then\n        switch costume to (모양 2 v)\n    else\n        switch costume to (모양 1 v)\n    end\nend\n\nwhen flag clicked\nshow\n\n@tull\n\nwhen flag clicked\nshow\nswitch costume to (모양 1 v)\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\n@mep\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (모양 1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nhide\n\n@DRUM\n\nwhen flag clicked\ngo to x: (-90) y: (-18)\nhide\nforever\n    if <(LEVEL) = [4]> then\n        show\n    else\n        hide\n    end\nend\n\n@스프라이트 15\n\nwhen flag clicked\ngo to x: (-70) y: (37)\nhide\nwait (1) seconds\nforever\n    if <(LEVEL) = [5]> then\n        switch costume to (모양 2 v)\n        show\n        repeat until <not <(LEVEL) = [5]>>\n            wait (1) seconds\n            next costume\n            set instrument to (10 v)\n            play note (72) for (0.5) beats\n            next costume\n            wait (2) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen I receive [next level v]\nif <(LEVEL) = [6]> then\n    stop [other scripts in sprite v]\n    hide\nend\n\n@스프라이트 14\n\nwhen flag clicked\ngo to x: (29) y: (70)\nhide\nwait (1) seconds\nforever\n    if <(LEVEL) = [5]> then\n        switch costume to (모양 2 v)\n        show\n        repeat until <not <(LEVEL) = [5]>>\n            wait (2) seconds\n            next costume\n            set instrument to (9 v)\n            play note (72) for (0.5) beats\n            next costume\n            wait (1) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen I receive [next level v]\nif <(LEVEL) = [6]> then\n    stop [other scripts in sprite v]\n    hide\nend\n\n@스프라이트 13\n\nwhen flag clicked\ngo to x: (155) y: (41)\nhide\nwait (1) seconds\nforever\n    if <(LEVEL) = [5]> then\n        switch costume to (모양 2 v)\n        show\n        repeat until <not <(LEVEL) = [5]>>\n            wait (3) seconds\n            next costume\n            set instrument to (10 v)\n            play note (72) for (0.5) beats\n            next costume\n        end\n    else\n        hide\n    end\nend\n\nswitch costume to (모양 2 v)\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen I receive [next level v]\nif <(LEVEL) = [6]> then\n    stop [other scripts in sprite v]\n    hide\nend\n\n@스프라이트 11\n\nwhen flag clicked\nforever\n    show\n    go to x: (3) y: (-15)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nhide\n\n@스프라이트 12\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [next v]\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nchange [level v] by (1)\nbroadcast (next level v)\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nhide\n\n@mep2\n\nwhen I receive [music on v]\nset instrument to (15 v)\nplay note (81) for (0.5) beats\nplay note (81) for (0.5) beats\nplay note (82) for (0.5) beats\nplay note (84) for (0.5) beats\nplay note (84) for (0.5) beats\nplay note (82) for (0.5) beats\nplay note (81) for (0.5) beats\nplay note (79) for (0.5) beats\nplay note (77) for (1) beats\nplay note (79) for (0.5) beats\nplay note (81) for (0.5) beats\nplay note (81) for (0.5) beats\nplay note (79) for (0.5) beats\nplay note (79) for (1) beats\nplay note (81) for (0.5) beats\nplay note (81) for (0.5) beats\nplay note (82) for (0.5) beats\nplay note (84) for (0.5) beats\nplay note (84) for (0.5) beats\nplay note (82) for (0.5) beats\nplay note (81) for (0.5) beats\nplay note (79) for (0.5) beats\nplay note (77) for (1) beats\nplay note (79) for (0.5) beats\nplay note (81) for (0.5) beats\nplay note (79) for (0.4) beats\nrest for (0.25) beats\nplay note (77) for (0.35) beats\nplay note (77) for (0.65) beats\nbroadcast (THE END v)\n\n@sim\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait (0.1) seconds\ngo to [front v] layer\nforever\n    if <(LEVEL) = [6]> then\n        go to x: (74) y: (-71)\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [next level v]\nif <(LEVEL) = [7]> then\n    stop [other scripts in sprite v]\n    hide\nend\n\n@sim2\n\nwhen flag clicked\nhide\nwait (1) seconds\ngo to [front v] layer\nforever\n    if <(LEVEL) = [6]> then\n        go to x: (69) y: (147)\n        show\n        repeat until <not <(LEVEL) = [6]>>\n            repeat (11)\n                change y by (-15)\n            end\n            play drum (4 v) for (0.1) beats\n            repeat (11)\n                change y by (15)\n            end\n            wait (1.6) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [next level v]\nif <(LEVEL) = [7]> then\n    stop [other scripts in sprite v]\n    hide\nend\n\n@DRUM2\n\nwhen flag clicked\ngo to x: (-32) y: (-16)\nhide\nforever\n    if <(LEVEL) = [7]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (스프라이트 1 v)?> then\n        play drum (1 v) for (0.25) beats\n    end\nend\n\n@DRUM3\n\nwhen flag clicked\ngo to x: (129) y: (-18)\nhide\nforever\n    if <(LEVEL) = [7]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (스프라이트 1 v)?> then\n        play drum (1 v) for (0.25) beats\n    end\nend\n\n@스프라이트 16\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    next costume\n    wait (0.3) seconds\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [8]> then\n        show\n    else\n        hide\n    end\nend\n\n@<>\n\nwhen flag clicked\npoint in direction (90)\nforever\n    turn right (3) degrees\nend\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [9]> then\n        show\n    else\n        hide\n    end\nend\n\n@스프라이트 17\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [10]> then\n        go to [back v] layer\n        show\n        if <touching (스프라이트 1 v)?> then\n            wait (0.2) seconds\n            broadcast (END v)\n            hide\n            stop [this script v]\n        end\n    else\n        hide\n    end\nend\n\n@스프라이트 18\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\n@스프라이트 19\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [9]> then\n        show\n        set [ghost v] effect to (100)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\ngo to (<> v)\nforever\n    turn right (3) degrees\nend\n\n@스프라이트 20\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nwait (0.2) seconds\ngo to [front v] layer\nshow\ngo to x: (-227) y: (-120)\nswitch costume to (모양 2 v)\nrepeat (23)\n    change x by (10)\nend\nswitch costume to (모양 1 v)\nwait (0.5) seconds\nbroadcast (music on v)\nforever\n    wait (0.1) seconds\n    switch costume to (모양 3 v)\n    wait (0.1) seconds\n    switch costume to (모양 4 v)\n    wait (0.1) seconds\n    switch costume to (모양 5 v)\n    wait (0.1) seconds\n    switch costume to (모양 4 v)\nend\n\n@스프라이트 21\n\nwhen I receive [music on v]\nforever\n    wait (0.42) seconds\n    next costume\nend\n\nwhen I receive [the end v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nswitch costume to (모양 1 v)\nhide\n\nwhen I receive [end v]\nwait (0.01) seconds\ngo to [front v] layer\nshow\n\n@----\n\nwhen flag clicked\npoint in direction (90)\ngo to (<> v)\nforever\n    turn right (3) degrees\nend\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [9]> then\n        show\n        set [ghost v] effect to (100)\n    else\n        hide\n    end\nend\n\n@스프라이트 22\n\nwhen flag clicked\nhide\n\nwhen I receive [the end v]\nstart sound [Cheer v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\n    go to [front v] layer\nend\n\n
このプロジェクトをリミックスして、自分だけのプラットフォーマーを作ろう！\n\nPlease remix this project!\n\n操作方法：矢印キーで操作\nOperation method: Arrow keys\n\nスパイクや、溶岩をよけてゴールを目指しましょう\nAvoid the spikes and lava to reach the goal!