The Enchanted Castle / # Kinight # Platformer # Fantasy # Adventure

Instructions:          -----------------⁅Enchanted Castle⁆---------------\n                 ⚠Please read the instruction FIRST⚠\n\nFinally, Enchanted Catsle has finished!\n\n-Use arrow key to move\n-M or N to use sword\n-1,2,3,4 for change weapon(If you buy it)\n-More instruction is in the game\n\nItem is not finished yet, so, you can only use Shield and Heart, and Clear the Screen now.\n\nStory: Isaac1221\nCode: Isaac1221\nImage: @isaac1221, @xamuil, @Hobson-TV, @griffpatch and GOOGLE\n\nEnjoy~ and  ❤⭐ Follow

@Stage\n\nwhen flag clicked\nswitch backdrop to (logo v)\n\nwhen I receive [animation start v]\nswitch backdrop to (start\(animation\) v)\n\nwhen I receive [wizard's death v]\nswitch backdrop to (logo v)\n\nwhen I receive [game start page v]\nwait (5) seconds\nswitch backdrop to (start v)\n\nwhen I receive [game start v]\nstop all sounds\nwait (5) seconds\nswitch backdrop to (start1 v)\n\nwhen flag clicked\nset [backsong v] to [2]\nforever\n    stop all sounds\n    if <(LEVEL) = [1]> then\n        set [backsong v] to [0]\n    end\n    if <(LEVEL) = [6]> then\n        switch backdrop to (dawn v)\n    end\n    if <(LEVEL) = [10]> then\n        switch backdrop to (night v)\n    end\n    if <(LEVEL) = [11]> then\n        switch backdrop to (in2 v)\n        set [backsong v] to [1]\n    end\n    if <(LEVEL) = [17]> then\n        switch backdrop to (start1 v)\n        set [backsong v] to [0]\n    end\n    if <(LEVEL) = [20]> then\n        switch backdrop to (in2 v)\n        set [backsong v] to [0]\n    end\n    if <(LEVEL) = [23]> then\n        switch backdrop to (in3 v)\n    end\nend\n\nwhen I receive [inside v]\nwait (3) seconds\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nclear graphic effects\nswitch backdrop to (in v)\n\nrepeat (3)\n\nstart sound [Boom Cloud v]\n\nwhen I receive [come on v]\nforever\n    if <(backsong) = [0]> then\n        start sound [04 - Overworld Day v]\n    else\n        if <(backsong) = [1]> then\n    end\nend\n\nstop all sounds\n\nplay sound [Cave v] until done\n\nstop all sounds\n\nrepeat until <(backdrop [number v]) = [12]>\n    start sound [04 - Overworld Day v]\nend\n\nwait (4) seconds\nswitch backdrop to (start2 v)\nbroadcast (Wait a minute, Where have you been? v)\n\nwhen I receive [skip v]\nwait (2) seconds\nswitch backdrop to (start v)\n\n@entrance \n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [wizard falling v]\ngo to x: (-90) y: (-37)\nshow\nrepeat (10)\n    next costume\n    wait (0.2) seconds\nend\nif <touching (falling wizard v)?> then\n    switch costume to (3 v)\nend\nwait (1) seconds\nhide\n\nwhen I receive [come on v]\nclear graphic effects\nchange size by (-10)\ngo to [front v] layer\nforever\n    hide\n    if <(LEVEL) = [1]> then\n        show\n        go to x: (196) y: (-110)\n    end\n    if <(LEVEL) = [2]> then\n        show\n        go to x: (196) y: (-110)\n    end\n    if <(LEVEL) = [3]> then\n        show\n        go to x: (220) y: (-110)\n    end\n    if <(LEVEL) = [4]> then\n        show\n        go to x: (210) y: (-43)\n    end\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (220) y: (-56)\n    end\n    if <(LEVEL) = [6]> then\n        show\n        go to x: (220) y: (-28)\n    end\n    if <(LEVEL) = [7]> then\n        show\n        go to x: (218) y: (-119)\n    end\n    if <(LEVEL) = [8]> then\n        show\n        go to x: (218) y: (-100)\n    end\n    if <(LEVEL) = [9]> then\n        show\n        go to x: (225) y: (-113)\n    end\n    if <(LEVEL) = [10]> then\n        show\n        go to x: (225) y: (-90)\n    end\n    if <(LEVEL) = [17]> then\n        show\n        go to x: (225) y: (-110)\n    end\n    if <(LEVEL) = [18]> then\n        show\n        go to x: (225) y: (15)\n    end\n    if <(LEVEL) = [19]> then\n        show\n        go to x: (225) y: (-100)\n    end\n    if <(LEVEL) = [20]> then\n        show\n        go to x: (221) y: (-125)\n    end\n    if <(LEVEL) = [21]> then\n        show\n        go to x: (221) y: (-125)\n    end\n    if <(LEVEL) = [22]> then\n        show\n        go to x: (221) y: (-25)\n    end\n    if <(LEVEL) = [23]> then\n        change [color v] effect by (1)\n        go to x: (195) y: (-15)\n        show\n    end\nend\n\nwhen I receive [come on v]\nforever\n    next costume\n    wait (0.2) seconds\nend\n\ngo to [front v] layer\n\ncreate clone of (_myself_ v)\n\nwhen I receive [skip v]\ngo to [back v] layer\nhide\n\n@Moon\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nwait (5) seconds\nshow\ngo to x: (180) y: (125)\nswitch costume to (moon3 v)\nforever\n    if <(LEVEL) = [11]> then\n        hide\n    end\nend\n\n@Other Assets\n\n@Terrain (16x16) (2)\n\n@스프라이트 6\n\n@Thunder\n\nwhen flag clicked\ngo to x: (242) y: (-108)\nhide\n\nwhen I receive [cat v]\npoint in direction (-90)\nshow\nglide (3) secs to x: (-50) y: (-108)\nsay [Are you okay?] for (2) seconds\nwait (2) seconds\nswitch costume to (thunder v)\nwait (0.1) seconds\nswitch costume to (thunder2 v)\nwait (0.1) seconds\nswitch costume to (crouch v)\nbroadcast (Getup v)\nwait (1) seconds\nsay [So? Everything fine?] for (2) seconds\nbroadcast (1 v)\n\nwhen I receive [cat v]\nrepeat (10)\n    switch costume to (run v)\n    wait (0.05) seconds\n    switch costume to (run2 v)\n    wait (0.05) seconds\n    switch costume to (run3 v)\n    wait (0.05) seconds\n    switch costume to (run4 v)\n    wait (0.05) seconds\nend\nwait (0.5) seconds\nswitch costume to (getup v)\n\nwhen I receive [2 v]\nsay [Oh, what happened?] for (2) seconds\nbroadcast (3 v)\n\nwhen I receive [4 v]\nsay [Gosh, what a terrible news! Then who can beat 'him', if you can't?] for (3) seconds\nwait (0.5) seconds\nbroadcast (5 v)\n\nwhen I receive [6 v]\nsay [No, you can't! No!] for (2) seconds\nsay [I must go and bring Gandalf the Grey, or, or, Radagast the Brown!] for (3) seconds\nsay [Hold on! I'll be right back!] for (2) seconds\npoint in direction (90)\nrepeat (5)\n    switch costume to (run v)\n    wait (0.05) seconds\n    switch costume to (run2 v)\n    wait (0.05) seconds\n    switch costume to (run3 v)\n    wait (0.05) seconds\n    switch costume to (run4 v)\n    wait (0.05) seconds\nend\nsay [Hey! Let me go! Oh, my tail!] for (2) seconds\nwait (0.5) seconds\npoint in direction (-90)\nswitch costume to (idle2 v)\nbroadcast (7 v)\n\nwhen I receive [8 v]\nsay [Okay......] for (2) seconds\nwait (0.5) seconds\nbroadcast (9 v)\n\nwhen I receive [10 v]\nwait (1) seconds\nrepeat (10)\n    switch costume to (run v)\n    wait (0.05) seconds\n    switch costume to (run2 v)\n    wait (0.05) seconds\n    switch costume to (run3 v)\n    wait (0.05) seconds\n    switch costume to (run4 v)\n    wait (0.05) seconds\nend\n\nwhen I receive [10 v]\nwait (1) seconds\npoint in direction (90)\nglide (3) secs to x: (260) y: (-108)\nhide\nwait (1) seconds\nbroadcast (Thunder found Arzion v)\n\nwhen I receive [10 v]\nwait (2) seconds\nsay [Sleep well.] for (2) seconds\nbroadcast (Game start page v)\n\nwhen I receive [game start page v]\nhide\n\nwhen I receive [game start v]\ngo to x: (250) y: (-130)\npoint in direction (-90)\nwait (10) seconds\nshow\nrepeat (5)\n    switch costume to (run v)\n    wait (0.05) seconds\n    switch costume to (run2 v)\n    wait (0.05) seconds\n    switch costume to (run3 v)\n    wait (0.05) seconds\n    switch costume to (run4 v)\n    wait (0.05) seconds\nend\npoint towards (arzion v)\n\nwhen I receive [game start v]\nwait (10) seconds\nglide (1) secs to x: (100) y: (-130)\nwait (1) seconds\nswitch costume to (idle2 v)\nwait (1) seconds\nswitch costume to (taunt2 v)\nwait (0.2) seconds\nswitch costume to (taunt3 v)\nwait (0.2) seconds\nswitch costume to (taunt4 v)\nwait (0.2) seconds\nswitch costume to (taunt v)\nwait (0.2) seconds\nswitch costume to (taunt6 v)\nwait (0.2) seconds\nswitch costume to (idle2 v)\nwait (1) seconds\nask [Excuse me. You're Arzion? \(y/n\)] and wait\nwait (3) seconds\nif <(answer) = [y]> then\n    say [Ah! Finally! Come on! Follow me. You must come with me. I'm Thunder] for (2) seconds\n    wait (1) seconds\n    say [Ah...... maybe we'll meet at the Enchanted Castle. Please don't ask why. Bye! And watch out for the Monster] for (4) seconds\n    wait (1) seconds\n    say [Press M or N key to use sword. And Arrow Key to move. Touch entrance and click UP ARROW key to continue. Don't leave the path!] for (4) seconds\n    point in direction (90)\n    wait (1) seconds\n    broadcast (Come on v)\nelse\n    say [Oh, well, I'll find someone else] for (3) seconds\n    wait (0.5) seconds\n    say [Goodbye.] for (2) seconds\n    ask [Are you sure? y/n] and wait\n    if <(answer) = [n]> then\n        say [Ah! Finally! Come on! Follow me. You must come with me. I'm Thunder] for (2) seconds\n        wait (1) seconds\n        say [Ah...... maybe we'll meet at the Enchanted Castle. Please don't ask why. Bye! And watch out for the monster] for (4) seconds\n        wait (1) seconds\n        say [Press M or N key to use sword. And Arrow Key to move. Don't leave the path!] for (4) seconds\n        point in direction (90)\n        wait (1) seconds\n        broadcast (Come on v)\n    else\n        say [Oh, well, I'll find someone else] for (3) seconds\n        wait (0.5) seconds\n        say [Goodbye.] for (2) seconds\n    end\nend\n\nwhen flag clicked\nswitch costume to (g v)\nforever\n    if  then\n        switch costume to (stand v)\n        wait (0.05) seconds\n        switch costume to (run1 v)\n        wait (0.05) seconds\n        switch costume to (run2 v)\n        wait (0.05) seconds\n        switch costume to (run3 v)\n        wait (0.05) seconds\n        switch costume to (run4 v)\n        wait (0.05) seconds\n        switch costume to (run1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (stand2 v)\n        wait (0.05) seconds\n        switch costume to (run1-1 v)\n        wait (0.05) seconds\n        switch costume to (run1-2 v)\n        wait (0.05) seconds\n        switch costume to (run1-3 v)\n        wait (0.05) seconds\n        switch costume to (run1-4 v)\n        wait (0.05) seconds\n        switch costume to (run1-1 v)\n    end\nend\n\nwhen I receive [come on v]\nrepeat (10)\n    switch costume to (up2 v)\n    wait (0.08) seconds\n    switch costume to (up6 v)\n    wait (0.08) seconds\nend\nhide\n\nwhen I receive [come on v]\nglide (0.5) secs to x: (x position) y: (200)\n\nwhen flag clicked\nset [level v] to [0]\nforever\n    if <(LEVEL) = [11]> then\n    end\nend\n\nwhen I receive [yay v]\ngo to x: (-36) y: (-146)\nswitch costume to (crouch v)\npoint in direction (-90)\nshow\nwait (0.5) seconds\nswitch costume to (idle2 v)\nsay [Ah! You've come! I thought you were dead] for (3) seconds\nsay [Welcome to Enchanted Castle. Let's go!] for (2) seconds\n\nbroadcast (YAY v)\n\n@Wizard\n\nwhen flag clicked\nswitch costume to (down3 v)\ngo to x: (-77) y: (-102)\nhide\n\nwhen I receive [getup v]\nshow\nswitch costume to (down2 v)\nwait (0.5) seconds\nswitch costume to (down v)\n\nwhen I receive [1 v]\nsay [No] for (2) seconds\nbroadcast (2 v)\n\nwhen I receive [3 v]\nsay [I failed] for (2) seconds\nbroadcast (4 v)\n\nwhen I receive [5 v]\nsay [Go and find Arzion. He's a carpenter. Also, he is the only one who can defeat 'him'] for (4) seconds\nwait (0.5) seconds\nsay [And now, I need to sleep] for (2) seconds\nwait (0.5) seconds\nsay [Forever and ever] for (2) seconds\nbroadcast (6 v)\n\nwhen I receive [7 v]\nsay [NO! They're in middle-earth, not here. Please, leave me along. Just you and me] for (4) seconds\nwait (0.1) seconds\nsay [Promise me you'll find him and tell him what I told you.] for (4) seconds\nwait (0.5) seconds\nbroadcast (8 v)\n\nwhen I receive [9 v]\nsay [Farewell, my dear cat] for (2) seconds\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\nclear graphic effects\nbroadcast (10 v)\n\nwhen I receive [wizard's death v]\nswitch costume to (down3 v)\ngo to x: (-77) y: (-102)\nshow\n\nwhen I receive [game start page v]\nhide\n\nwhen I receive [skip v]\nhide\nstop [other scripts in sprite v]\n\n@스프라이트 1\n\n@Animation\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nbroadcast (Label v)\nstart sound [123 v]\n\nwhen I receive [animation start v]\nwait (3) seconds\nswitch costume to (모양 2 v)\nwait (0.05) seconds\nswitch costume to (모양 3 v)\nwait (0.05) seconds\nswitch costume to (모양 1 v)\nbroadcast (lightening v)\n\nwhen I receive [화면 전환 v]\nwait (1) seconds\nrepeat (10)\n    change [brightness v] effect by (15)\nend\nhide\nclear graphic effects\nbroadcast (Wizard's death v)\n\nclear graphic effects\n\nwhen I receive [fighting wizard v]\nwait (1) seconds\nbroadcast (Animation start v)\nswitch costume to (모양 1 v)\n\nwhen flag clicked\nstop all sounds\nclear sound effects\n\nwhen I receive [skip v]\nstop [other scripts in sprite v]\nhide\n\n@Real Shield\n\nwhen flag clicked\nhide\n\nwhen I receive [shield up v]\nshow\nwait (20) seconds\nhide\n\nif <<key (m v) pressed?> and <key (m v) pressed?>> then\nend\nif <<key (m v) pressed?> and <key (m v) pressed?>> then\n    repeat (17)\n        change size by (1)\n    end\nend\nif <<key (m v) pressed?> and <key (m v) pressed?>> then\n    wait (8) seconds\n    hide\n    set [ghost v] effect to (100)\n    set size to (1) %\nend\n\nwhen I receive [come on v]\nhide\nforever\n    turn right (50) degrees\nend\n\nwhen I receive [shield up v]\nforever\n    change [brightness v] effect by (50)\n    wait (0.05) seconds\n    change [brightness v] effect by (-50)\n    wait (0.05) seconds\nend\n\nwhen I receive [shield up v]\nforever\n    go to (arzion v)\nend\n\n@Slash\n\nwhen I receive [animation start v]\nclear graphic effects\nswitch costume to (1 v)\nwait (1) seconds\nstart sound [High Whoosh2 v]\nshow\nrepeat (10)\n    change [ghost v] effect by (8)\nend\nhide\nclear graphic effects\ngo to x: (118) y: (-61)\nswitch costume to (2 v)\nshow\nstart sound [High Whoosh2 v]\nrepeat (10)\n    change [ghost v] effect by (8)\nend\nhide\nclear graphic effects\n\nwhen flag clicked\ngo to x: (-80) y: (67)\nhide\n\nwait (1) seconds\n\nwhen I receive [skip v]\nhide\nstop [other scripts in sprite v]\n\n@Thumbnails\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [thumbnail v]\nswitch costume to (모양 1 v)\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nclear graphic effects\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\nclear graphic effects\nbroadcast (Fighting Wizard v)\n\nwhen I receive [skip v]\nhide\nstop [other scripts in sprite v]\n\n@Lightening\n\nwhen flag clicked\nhide\n\nwhen I receive [lightening v]\ngo to x: (36) y: (28)\nswitch costume to (모양 1 v)\nshow\nrepeat (10)\n    change [ghost v] effect by (15)\nend\nhide\nclear graphic effects\nwait (0.2) seconds\nswitch costume to (모양 2 v)\nshow\nrepeat (10)\n    change [ghost v] effect by (15)\nend\nhide\nclear graphic effects\nbroadcast (Wizard falling v)\nwait (3) seconds\nswitch costume to (모양 1 v)\nshow\nrepeat (10)\n    change [ghost v] effect by (15)\nend\nhide\nclear graphic effects\nwait (0.2) seconds\nswitch costume to (모양 2 v)\nshow\nrepeat (10)\n    change [ghost v] effect by (15)\nend\nhide\nclear graphic effects\n\nwhen I receive [skip v]\nhide\nstop [other scripts in sprite v]\n\n@Falling wizard\n\nwhen flag clicked\ngo to x: (-22) y: (168)\nhide\n\nwhen I receive [wizard falling v]\nwait (3) seconds\nshow\nglide (0.2) secs to x: (-100) y: (-96)\nrepeat (10)\n    change [brightness v] effect by (5)\nend\nhide\nclear graphic effects\nwait (3) seconds\nbroadcast (화면 전환 v)\n\nwhen I receive [skip v]\nhide\nstop [other scripts in sprite v]\n\n@Boss\n\nwhen flag clicked\nshow\ngo to x: (153) y: (-5)\nwait (40) seconds\nsay [You can't beat the Darkness] for (2) seconds\nhide\n\nwhen I receive [skip v]\nhide\nstop [other scripts in sprite v]\n\n@LEVEL\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [game start v]\ngo to x: (0) y: (0)\n\nwhen I receive [next v]\nwait (0.05) seconds\n\nwhen flag clicked\nset [level v] to [0]\nhide\n\n\n\nforever\n\nwhen I receive [next v]\n\nwhen I receive [next v]\nchange [level v] by (1)\nwait (0.05) seconds\nnext costume\nset [pixelate v] effect to (5)\ngo to x: (0) y: (0)\n\nwhen I receive [game start v]\nset [pixelate v] effect to (5)\nwait (5) seconds\nshow\nswitch costume to (1 v)\nset [level v] to [1]\n\nwhen I receive [adventure begin! v]\ngo to x: (0) y: (0)\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nforever\n\nchange [level v] by (1)\n\n@Animation (Wizard's death)LEVELLEVEL\n\nwhen flag clicked\nswitch costume to (wizard's death v)\ngo to x: (0) y: (-70)\nhide\n\nwhen I receive [wizard's death v]\nshow\nwait (1) seconds\nbroadcast (Cat v)\n\nwhen I receive [game start page v]\nwait (5) seconds\nhide\n\n@Air\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [wizard's death v]\nshow\n\nwhen I receive [game start page v]\nwait (5) seconds\nhide\n\nwhen I receive [come on v]\ngo to x: (0) y: (0)\nhide\ngo to [front v] layer\nset [ghost v] effect to (60)\nforever\n    hide\n    if <<(LEVEL) = [20]> or <(LEVEL) > [20]>> then\n        show\n        repeat (60)\n            change [ghost v] effect by (-1)\n        end\n    else\n        if <(LEVEL) > [20]> then\n            clear graphic effects\n        end\n    end\n    if <<(LEVEL) = [22]> or <(LEVEL) > [22]>> then\n        show\n        repeat (5)\n            change [color v] effect by (1)\n        end\n        set [color v] effect to (5)\n    else\n        if <(LEVEL) > [20]> then\n            clear graphic effects\n        end\n    end\nend\n\n@Arzion\n\ndefine action\nshow\npoint in direction (90)\nshow\nset [xj v] to [0]\nset [yj v] to [0]\nset [player charge level v] to [1]\nforever\n    set [xj v] to ((XJ) * (0.9))\n    change x by (XJ)\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (level2 v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (level2 v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (level2 v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (level2 v)?>> then\n                        change y by (1)\n                    end\n                end\n            end\n        end\n    end\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        change x by ((XJ) * (-1))\n        change y by (-5)\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            if <(XJ) > [0]> then\n                set [xj v] to [-5]\n            else\n                set [xj v] to [5]\n            end\n            set [yj v] to [12]\n        else\n            set [xj v] to [0]\n        end\n    end\n    change [yj v] by (-1)\n    change y by (YJ)\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        change y by ((YJ) * (-1))\n        set [yj v] to [0]\n    end\n    change y by (-1)\n    if <<touching (entrance  v)?> and <key (up arrow v) pressed?>> then\n        wait (1) seconds\n        repeat (20)\n            change [whirl v] effect by (5)\n        end\n        hide\n        clear graphic effects\n        wait (0.1) seconds\n        broadcast (next v)\n        go to (arzion's v)\n        go to x: (x position) y: (-20)\n        show\n        repeat (20)\n            change [brightness v] effect by (5)\n        end\n        clear graphic effects\n        set [xj v] to [0]\n        set [yj v] to [0]\n    end\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        if  then\n            set [yj v] to [12]\n            switch costume to (g9 v)\n            if <<touching (level v)?> or <touching (level2 v)?>> then\n                switch costume to (g v)\n            end\n        end\n    end\n    change y by (1)\n    if <<touching (spike v)?> or <<touching (dem v)?> or <<touching (chaos v)?> or <<touching (chain v)?> or <<touching (lava monster v)?> or <<touching (drill v)?> or <<<touching (rock v)?> or <<<touching (wolves v)?> or <touching (slime v)?>> or <<<touching (spikes v)?> or <<touching (dark wizard v)?> or <<touching (darklord's weapon v)?> or <touching (dark wizard's sword v)?>>>> or <touching (doorkeeper v)?>>>> or <touching (water monster v)?>>>>>>>> then\n        wait (0.02) seconds\n        broadcast (Ouch v)\n        change y by (30)\n        change [brightness v] effect by (10)\n        clear graphic effects\n        repeat until <(y position) < [-180]>\n            turn right (15) degrees\n            change y by (-5)\n        end\n        if <(y position) < [-180]> then\n            hide\n            wait (0.5) seconds\n            show\n            go to (arzion's v)\n            point in direction (90)\n            set [xj v] to [0]\n            set [yj v] to [0]\n            switch costume to (stand v)\n        end\n    end\n    if <touching (arm v)?> then\n        change [xj v] by (-3)\n    end\n    if <<touching (enterances v)?> and <key (up arrow v) pressed?>> then\n        wait (1) seconds\n        repeat (10)\n            change [ghost v] effect by (5)\n        end\n        hide\n        clear graphic effects\n        wait (0.1) seconds\n        broadcast (next v)\n        go to (arzion's v)\n        show\n        repeat (20)\n            change [brightness v] effect by (5)\n        end\n        clear graphic effects\n        set [xj v] to [0]\n        set [yj v] to [0]\n        go to x: (x position) y: (-20)\n    end\n    if <(y position) < [-122]> then\n        set [player charge level v] to [0]\n    end\nend\n\ndefine action2\nshow\nwait (1) seconds\nforever\n    if  then\n        change [xj v] by (-0.7)\n    end\n    if  then\n        change [xj v] by (0.7)\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nhide\n\nwhen flag clicked\nclear graphic effects\nswitch costume to (stand v)\nforever\n    if  then\n        switch costume to (stand v)\n        wait (0.05) seconds\n        switch costume to (run2 v)\n        wait (0.05) seconds\n        switch costume to (run3 v)\n        wait (0.05) seconds\n        switch costume to (run4 v)\n        wait (0.05) seconds\n        switch costume to (run1 v)\n        wait (0.05) seconds\n        switch costume to (stand v)\n        wait (0.05) seconds\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (stand2 v)\n        wait (0.05) seconds\n        switch costume to (run1-2 v)\n        wait (0.05) seconds\n        switch costume to (run1-3 v)\n        wait (0.05) seconds\n        switch costume to (run1-4 v)\n        wait (0.05) seconds\n        switch costume to (run1-1 v)\n        wait (0.05) seconds\n        switch costume to (stand2 v)\n        wait (0.05) seconds\n    end\n    if <key (down arrow v) pressed?> then\n        switch costume to (squiz v)\n        wait (0.05) seconds\n        switch costume to (squiz2 v)\n        wait (0.05) seconds\n        switch costume to (squiz3 v)\n        wait (0.05) seconds\n        switch costume to (squiz4 v)\n        wait (0.05) seconds\n        switch costume to (squiz5 v)\n        wait (0.05) seconds\n        switch costume to (squiz6 v)\n        wait (0.05) seconds\n        repeat until <not <key (down arrow v) pressed?>>\n            switch costume to (squiz6 v)\n        end\n        if <not <key (down arrow v) pressed?>> then\n            switch costume to (squiz6 v)\n            wait (0.05) seconds\n            switch costume to (squiz5 v)\n            wait (0.05) seconds\n            switch costume to (squiz4 v)\n            wait (0.05) seconds\n            switch costume to (squiz3 v)\n            wait (0.05) seconds\n            switch costume to (squiz2 v)\n            wait (0.05) seconds\n            switch costume to (squiz v)\n            wait (0.05) seconds\n            switch costume to (stand v)\n            wait (0.05) seconds\n        else\n        end\n    else\n    end\nend\n\nwhen I receive [game start v]\nwait (5) seconds\nshow\ngo to x: (15) y: (-122)\nswitch costume to (stand v)\nwait (1) seconds\nrepeat (20)\n    switch costume to (모양 2 v)\n    wait (0.1) seconds\n    switch costume to (모양 4 v)\n    wait (0.1) seconds\nend\n\nwhen I receive [come on v]\naction\n\nwhen I receive [come on v]\naction2\n\nglide (0.5) secs to x: (x position) y: (10)\n\ngo to x: (-220) y: (-120)\n\nset [xj v] to ((XJ) * (0.9))\nchange x by (XJ)\n\nwhen I receive [come on v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (3)\n    set [ghost v] effect to (80)\nend\ndelete this clone\n\nwhen flag clicked\n\nwhen [space v] key pressed\n\ngo to (entrance  v)\n\nif <key (down arrow v) pressed?> then\n    set [xj v] to [0]\n    set [yj v] to [0]\nend\n\nwhen I receive [game over v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\nhide\nstop [all v]\n\nwhen [b v] key pressed\ngo to (entrance  v)\n\n@Gandalf\n\nwhen flag clicked\nswitch costume to (g v)\nforever\n    if  then\n        switch costume to (g v)\n        wait (0.1) seconds\n        switch costume to (g2 v)\n        wait (.1) seconds\n        switch costume to (g3 v)\n        wait (.1) seconds\n        switch costume to (g4 v)\n        wait (.1) seconds\n        switch costume to (g5 v)\n        wait (.1) seconds\n        switch costume to (g6 v)\n        wait (.1) seconds\n        switch costume to (g7 v)\n        wait (.1) seconds\n        switch costume to (g8 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (g10 v)\n        wait (0.1) seconds\n        switch costume to (g11 v)\n        wait (.1) seconds\n        switch costume to (g12 v)\n        wait (.1) seconds\n        switch costume to (g13 v)\n        wait (.1) seconds\n        switch costume to (g14 v)\n        wait (.1) seconds\n        switch costume to (g15 v)\n        wait (.1) seconds\n        switch costume to (g16 v)\n        wait (.1) seconds\n        switch costume to (g17 v)\n    end\nend\n\nwhen I receive [level 1 start v]\nswitch backdrop to (blue sky 2 2 v)\naction\n\nwhen flag clicked\nhide\n\ndefine action\nshow\nset [xj v] to [0]\nset [yj v] to [0]\nwait (1) seconds\npoint in direction (90)\nset [level v] to [0]\nshow\nset [xj v] to [0]\nset [yj v] to [0]\nforever\n    set [xj v] to ((XJ) * (0.9))\n    change x by (XJ)\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (level2 v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (level2 v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (level2 v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (level2 v)?>> then\n                        change y by (1)\n                    end\n                end\n            end\n        end\n    end\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        change x by ((XJ) * (-1))\n        change y by (-5)\n        if  then\n            if <(XJ) > [0]> then\n                set [xj v] to [-5]\n            else\n                set [xj v] to [5]\n            end\n            set [yj v] to [12]\n        else\n            set [xj v] to [0]\n        end\n    end\n    change [yj v] by (-1)\n    change y by (YJ)\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        change y by ((YJ) * (-1))\n        set [yj v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <touching (level2 v)?>> then\n        if  then\n            set [yj v] to [12]\n            switch costume to (g9 v)\n            if <<touching (level v)?> or <touching (level2 v)?>> then\n                switch costume to (g v)\n            end\n        end\n    end\n    change y by (1)\n    if <<touching (obstacle v)?> or <<<touching (spider  v)?> or <touching (spider 2 v)?>> or <<<touching (crash hammer2 v)?> or <touching (crash hammer1 v)?>> or <<touching (arrow v)?> or <touching (spike v)?>>>>> then\n        broadcast (staff hide v)\n        broadcast (Killed v)\n        start sound [Woosh v]\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        go to (gandlfs v)\n        clear graphic effects\n        set [xj v] to [0]\n        set [yj v] to [0]\n    end\n    if <touching (water v)?> then\n        set [touching water v] to [1]\n    else\n        set [touching water v] to [0]\n    end\n    if <touching (level changer v)?> then\n        broadcast (staff hide v)\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        wait (1) seconds\n        broadcast (next v)\n        clear graphic effects\n        go to (gandlfs v)\n        set [xj v] to [0]\n        set [yj v] to [0]\n    end\n    if <(LEVEL) = [8]> then\n        broadcast (Dol guldur near v)\n    end\n    if <(LEVEL) = [10]> then\n        broadcast (Dol guldur VERY near v)\n    end\n    if <<touching (level ending v)?> or <touching (level ending2 v)?>> then\n        repeat (50)\n            change [brightness v] effect by (2)\n        end\n        wait (1) seconds\n        broadcast (LEVEL 1 END v)\n        clear graphic effects\n        set [xj v] to [0]\n        set [yj v] to [0]\n        hide\n    end\n    if <(LEVEL) = [17]> then\n        if <touching (level ending v)?> then\n            repeat (50)\n                change [brightness v] effect by (2)\n            end\n            wait (1) seconds\n            broadcast (LEVEL 2 ENd v)\n            broadcast (LEVEL 3 UNLOCK v)\n            clear graphic effects\n            set [xj v] to [0]\n            set [yj v] to [0]\n            hide\n        end\n    end\n    if <touching (back v)?> then\n        broadcast (staff hide v)\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        wait (1) seconds\n        broadcast (back v)\n        clear graphic effects\n        go to (gandlfs v)\n        set [xj v] to [0]\n        set [yj v] to [0]\n    end\nend\n\ndefine action2\nshow\nclear graphic effects\nset [touching water v] to [0]\ngo to (gandlfs v)\nwait (1) seconds\nforever\n    if  then\n        set [sword v] to [0]\n        change [xj v] by (-1)\n    end\n    if  then\n        set [sword v] to [1]\n        change [xj v] by (1)\n    end\n    if <key (down arrow v) pressed?> then\n        set [xj v] to [0]\n        set [yj v] to [0]\n    end\nend\n\nwhen I receive [level 1 start v]\nswitch backdrop to (blue sky 2 2 v)\naction2\n\nwhen I receive [end v]\nhide\n\ngo to x: (300) y: (200)\n\nswitch backdrop to (mountains \(1\) v)\n\nwhen I receive [level 2 start v]\ngo to x: (-205) y: (100)\nshow\n\nwhen I receive [level 2 start v]\ngo to x: (-205) y: (100)\nshow\n\nwhen [space v] key pressed\ngo to (level changer v)\n\nwhen I receive [level 3 start v]\ngo to x: (-205) y: (100)\nshow\n\nif <touching (real v)?> then\n    broadcast (staff hide v)\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    wait (1) seconds\n    broadcast (Real v)\n    clear graphic effects\n    go to (gandlfs v)\n    set [xj v] to [0]\n    set [yj v] to [0]\nend\n\n@Weapon\n\nwhen flag clicked\nswitch costume to (sword v)\nhide\n\nwhen [m v] key pressed\n\nwhen flag clicked\nforever\n    go to (arzion v)\nend\n\nwhen I receive [game start v]\nhide\nforever\n    if <<(Weapon choose) = [1]> and <key (m v) pressed?>> then\n        show\n        change x by (3)\n        change y by (-3)\n        switch costume to (sword v)\n        wait (0.05) seconds\n        switch costume to (sword1-1 v)\n        wait (0.05) seconds\n        switch costume to (sword1-2 v)\n        start sound [High Whoosh v]\n        wait (0.05) seconds\n        switch costume to (sword1-3 v)\n        wait (0.05) seconds\n        switch costume to (sword1-4 v)\n        wait (0.05) seconds\n        switch costume to (sword1-5 v)\n        wait (0.05) seconds\n        switch costume to (sword v)\n        change x by (-3)\n        change y by (3)\n        hide\n    end\n    if <<(Weapon choose) = [1]> and <key (n v) pressed?>> then\n        show\n        change x by (-3)\n        change y by (-3)\n        switch costume to (sword v)\n        wait (0.05) seconds\n        switch costume to (sword2-1 v)\n        wait (0.05) seconds\n        switch costume to (sword2-2 v)\n        start sound [High Whoosh v]\n        wait (0.05) seconds\n        switch costume to (sword2-3 v)\n        wait (0.05) seconds\n        switch costume to (sword2-4 v)\n        wait (0.05) seconds\n        switch costume to (sword2-5 v)\n        wait (0.05) seconds\n        switch costume to (sword v)\n        change x by (3)\n        change y by (3)\n        hide\n    end\n    if <<(Weapon choose) = [2]> and <key (m v) pressed?>> then\n        show\n        change x by (3)\n        change y by (-3)\n        switch costume to (ax v)\n        wait (0.05) seconds\n        start sound [High Whoosh v]\n        switch costume to (ax3 v)\n        wait (0.05) seconds\n        change x by (-3)\n        change y by (3)\n        hide\n    end\n    if <<(Weapon choose) = [2]> and <key (n v) pressed?>> then\n        show\n        change x by (-3)\n        change y by (-3)\n        switch costume to (ax2 v)\n        wait (0.05) seconds\n        start sound [High Whoosh v]\n        switch costume to (ax4 v)\n        wait (0.05) seconds\n        change x by (3)\n        change y by (3)\n        hide\n    end\n    if <<(Weapon choose) = [3]> and <key (m v) pressed?>> then\n        show\n        change x by (3)\n        change y by (-3)\n        switch costume to (silversword v)\n        wait (0.05) seconds\n        start sound [High Whoosh v]\n        switch costume to (silversword2 v)\n        wait (0.05) seconds\n        switch costume to (silversword3 v)\n        wait (0.05) seconds\n        switch costume to (silversword5 v)\n        wait (0.05) seconds\n        change x by (-3)\n        change y by (3)\n        hide\n    end\n    if <<(Weapon choose) = [3]> and <key (n v) pressed?>> then\n        show\n        change x by (3)\n        change y by (-3)\n        switch costume to (silversword v)\n        wait (0.05) seconds\n        start sound [High Whoosh v]\n        switch costume to (silversword4 v)\n        wait (0.05) seconds\n        switch costume to (silversword6 v)\n        wait (0.05) seconds\n        switch costume to (silversword7 v)\n        wait (0.05) seconds\n        change x by (-3)\n        change y by (3)\n        hide\n    end\n    if <<(Weapon choose) = [4]> and <key (m v) pressed?>> then\n        show\n        change x by (3)\n        change y by (-3)\n        switch costume to (staff v)\n        wait (0.05) seconds\n        start sound [High Whoosh v]\n        switch costume to (staff2 v)\n        wait (0.05) seconds\n        switch costume to (staff3 v)\n        wait (0.05) seconds\n        change x by (-3)\n        change y by (3)\n        hide\n    end\n    if <<(Weapon choose) = [4]> and <key (n v) pressed?>> then\n        show\n        change x by (3)\n        change y by (-3)\n        switch costume to (staff v)\n        wait (0.05) seconds\n        start sound [High Whoosh v]\n        switch costume to (staff4 v)\n        wait (0.05) seconds\n        switch costume to (staff5 v)\n        wait (0.05) seconds\n        change x by (-3)\n        change y by (3)\n        hide\n    end\nend\n\nhide\n\nwhen flag clicked\nset [weapon choose v] to [1]\nset [ax v] to [0]\nset [silversword v] to [0]\nset [wand v] to [0]\nforever\n    if <key (1 v) pressed?> then\n        set [weapon choose v] to [1]\n    end\n    if <(Ax) = [1]> then\n        if <key (2 v) pressed?> then\n            set [weapon choose v] to [2]\n        end\n    end\n    if <(Silversword) = [1]> then\n        if <key (3 v) pressed?> then\n            set [weapon choose v] to [3]\n        end\n    end\n    if <(Wand) = [1]> then\n        if <key (4 v) pressed?> then\n            set [weapon choose v] to [4]\n        end\n    end\nend\n\n\n\nwhen I receive [clear off! v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nswitch costume to (silversword8 v)\nwait (3) seconds\nhide\n\n@Screen\n\nwhen I receive [game start page v]\nswitch costume to (모양 1 v)\nscreen\nwait (1) seconds\nbroadcast (start button v)\n\nwhen flag clicked\ngo to [front v] layer\nhide\ngo to x: (0) y: (400)\n\ndefine screen\nshow\nglide (4) secs to x: (0) y: (0)\nwait (1) seconds\nglide (3) secs to x: (465) y: (0)\nhide\n\nwhen I receive [game start v]\nswitch costume to (모양 1 v)\nscreen\nstop [this script v]\n\nwhen I receive [no v]\nwait (5) seconds\nswitch costume to (모양 1 v)\nscreen\n\nwhen I receive [skip v]\nhide\nstop [this script v]\n\nswitch costume to (모양 1 v)\nscreen\n\n@Flag\n\nwhen flag clicked\ngo to x: (-170) y: (80)\nhide\n\nwhen I receive [game start page v]\nwait (5) seconds\nshow\nforever\n    switch costume to (flag_1 v)\n    wait (0.2) seconds\n    switch costume to (flag_2 v)\n    wait (0.2) seconds\n    switch costume to (flag_3 v)\n    wait (0.2) seconds\n    switch costume to (flag_4 v)\n    wait (0.2) seconds\nend\n\nwhen I receive [inside v]\nwait (3) seconds\nhide\n\n@Flag2\n\nwhen flag clicked\ngo to x: (170) y: (80)\nhide\n\nwhen I receive [game start page v]\nwait (5) seconds\nshow\nforever\n    switch costume to (flag_1 v)\n    wait (0.2) seconds\n    switch costume to (flag_2 v)\n    wait (0.2) seconds\n    switch costume to (flag_3 v)\n    wait (0.2) seconds\n    switch costume to (flag_4 v)\n    wait (0.2) seconds\nend\n\nwhen I receive [inside v]\nwait (3) seconds\nhide\n\n@Start button\n\nwhen flag clicked\ngo to x: (0) y: (-90)\nhide\nset size to (1) %\n\nwhen I receive [start button v]\nshow\nwait (1) seconds\nrepeat (50)\n    change size by (2)\nend\nwait (0.5) seconds\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        if <mouse down?> then\n            wait (1) seconds\n            repeat (100)\n                change size by (-1)\n            end\n            hide\n            broadcast (Inside v)\n        end\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [game start v]\nhide\n\n@LEVEL2\n\nwhen flag clicked\npoint in direction (90)\nhide\n\nwhen I receive [swamp hide v]\nswitch costume to (level 1 6 v)\ngo to x: (0) y: (250)\nwait (1) seconds\nshow\nglide (1) secs to x: (0) y: (0)\n\nwhen I receive [next v]\nset [pause v] to [8]\nset [strike v] to [8]\nset [scale v] to [5]\ngo to x: (0) y: (300)\nhide\nforever\n    hide\n    if <(LEVEL) = [6]> then\n        switch costume to (level 1 6 v)\n        show\n    end\n    if <(LEVEL) = [9]> then\n        switch costume to (level 1 2 v)\n        clear graphic effects\n        show\n        go to x: (120) y: (-106)\n        if <<touching (staff fireball v)?> or <touching (weapon v)?>> then\n            start sound [Crunch v]\n            change [brightness v] effect by (30)\n            wait (0.1) seconds\n            change [brightness v] effect by (-30)\n            wait (0.1) seconds\n            change [strike v] by (-1)\n            if <(Strike) < [0]> then\n                repeat (5)\n                    change [mosaic v] effect by (50)\n                end\n                turn right (15) degrees\n                go to x: (166) y: (-133)\n                repeat until <(LEVEL) = [18]>\n                    hide\n                    clear graphic effects\n                end\n            else\n                show\n                clear graphic effects\n            end\n        else\n            clear graphic effects\n        end\n    end\n    if <(LEVEL) = [19]> then\n        point in direction (90)\n        switch costume to (level 1 4 v)\n        clear graphic effects\n        show\n        go to x: (120) y: (-106)\n        if <<touching (staff fireball v)?> or <touching (weapon v)?>> then\n            start sound [Crunch v]\n            change [brightness v] effect by (30)\n            wait (0.1) seconds\n            change [brightness v] effect by (-30)\n            wait (0.1) seconds\n            change [strike v] by (-1)\n            if <(Strike) < [0]> then\n                repeat (5)\n                    change [mosaic v] effect by (50)\n                end\n                turn right (15) degrees\n                go to x: (166) y: (-133)\n            else\n                show\n                clear graphic effects\n            end\n        else\n            clear graphic effects\n        end\n    end\n    if <(LEVEL) = [23]> then\n        show\n        point in direction (90)\n        switch costume to (level 1 9 v)\n        clear graphic effects\n        show\n        if <<touching (staff fireball v)?> or <touching (weapon v)?>> then\n            start sound [Crunch v]\n            change [brightness v] effect by (30)\n            wait (0.1) seconds\n            change [brightness v] effect by (-30)\n            wait (0.1) seconds\n            change [pause v] by (-1)\n            if <(Pause) < [0]> then\n                repeat (5)\n                    change [mosaic v] effect by (50)\n                end\n                broadcast (Boss die v)\n            else\n                show\n                clear graphic effects\n            end\n        else\n            clear graphic effects\n        end\n    end\nend\n\nwhen flag clicked\nif <(LEVEL) = [23]> then\n    go to x: (0) y: (-338)\n    wait (1) seconds\n    glide (1) secs to x: (0) y: (209)\nend\n\ndefine Set Shaking Wall at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine Setin'\nif <(LEVEL) = [22]> then\n    Set Shaking Wall at x: [-194] y: [10]\n    Set Shaking Wall at x: [-90] y: [63]\n    Set Shaking Wall at x: [10] y: [150]\nend\n\nwhen I start as a clone\nswitch costume to (level 1 8 v)\nshow\nforever\n    if <touching (arzion v)?> then\n        Shaking\n    end\nend\n\ndefine Shaking\nrepeat (10)\n    change x by (-5)\n    wait (0.05) seconds\n    change x by (5)\n    wait (0.05) seconds\nend\nrepeat until <(y position) < [-82]>\n    change y by (-20)\n    change [ghost v] effect by (5)\nend\nclear graphic effects\n\nrepeat (10)\n\nwhen I receive [ouch v]\n\nwhen I receive [next v]\nSetin'\n\nSetin'\n\n@Log\n\n@Radagast2\n\n@Background\n\nwhen flag clicked\n\nwhen I receive [next v]\nforever\n    hide\n    if <(LEVEL) = [2]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 4 v)\n    end\n    if <(LEVEL) = [3]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 5 v)\n    end\n    if <(LEVEL) = [4]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 6 v)\n    end\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 7 v)\n    end\n    if <(LEVEL) = [6]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 8 v)\n    end\n    if <(LEVEL) = [7]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 9 v)\n    end\n    if <(LEVEL) = [9]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 2 v)\n    end\n    if <(LEVEL) = [10]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 3 v)\n    end\n    if <(LEVEL) = [13]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 10 v)\n    end\n    if <(LEVEL) = [14]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 11 v)\n    end\n    if <(LEVEL) = [17]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 12 v)\n    end\n    if <(LEVEL) = [18]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 13 v)\n    end\nend\n\nset [level v] to [0]\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nforever\n    hide\n    if <(LEVEL) = [1]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 1 v)\n    end\nend\n\n@Heart Attack\n\n@Clear the Screen\n\n@Random\n\n@Shield\n\nwhen flag clicked\nhide\n\n@Heart\n\n@Ice\n\n@Ice Skull\n\nwhen flag clicked\nhide\n\ndefine Setting Skull at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine set skull\nif <(LEVEL) = [6]> then\nend\n\nwhen I receive [next v]\nset skull\n\nwhen I start as a clone\nshow\nrepeat until <<touching (weapon v)?> or <touching (shield v)?>>\n    switch costume to (skull_v2_1 v)\n    wait (0.1) seconds\n    switch costume to (skull_v2_2 v)\n    wait (0.1) seconds\n    switch costume to (skull_v2_4 v)\n    wait (0.1) seconds\n    switch costume to (skull_v2_3 v)\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nforever\n    if <<touching (weapon v)?> or <touching (shield v)?>> then\n        switch costume to (shotgun ice tail4 v)\n        wait (0.1) seconds\n        switch costume to (shotgun ice tail3 v)\n        wait (0.1) seconds\n        switch costume to (shotgun ice tail2 v)\n        wait (0.1) seconds\n        switch costume to (shotgun ice tail v)\n        wait (0.1) seconds\n        delete this clone\n    end\nend\n\nSetting Skull at x: [0] y: [0]\n\n@Dark Wizard\n\ndefine Spawn at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine SETTT\nif <(LEVEL) = [18]> then\n    Spawn at x: [200] y: [-127]\nend\n\nwhen I start as a clone\nshow\nforever\n    next costume\n    wait (0.07) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    wait (2.5) seconds\n    broadcast (Lighteningball v)\nend\n\nwhen I start as a clone\nforever\n    if <<touching (staff fireball v)?> or <touching (weapon v)?>> then\n        start sound [NPC_Killed_9 v]\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\nSETTT\n\nwhen I receive [next v]\ndelete this clone\n\n@Dark Wizard's Sword\n\nwhen flag clicked\nhide\nforever\n    go to (dark wizard v)\nend\n\nif <(LEVEL) = [12]> then\n\nwhen I receive [lighteningball v]\nwait (0.1) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (1 v)\n    wait (0.05) seconds\n    switch costume to (2 v)\n    wait (0.05) seconds\nend\n\nwhen I start as a clone\nforever\n    change x by (-5)\n    if <<<touching (arzion v)?> or <<touching (real shield v)?> or <touching (_edge_ v)?>>> or <touching (weapon v)?>> then\n        wait (0.1) seconds\n        delete this clone\n    end\nend\n\nrepeat until <touching (_edge_ v)?>\nend\n\nif  then\nend\n\n@Intro\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [shield v]\nwait (7) seconds\nswitch costume to (fighting cat3 v)\ngo to x: (0) y: (0)\nshow\nShutdown\n\nwhen I receive [heart v]\nwait (7) seconds\nswitch costume to (fighting cat4 v)\ngo to x: (0) y: (0)\nshow\nShutdown\n\ndefine Shutdown\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n        if <mouse down?> then\n            hide\n            clear graphic effects\n        end\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [heart attack item v]\nwait (7) seconds\nswitch costume to (heart attack v)\ngo to x: (0) y: (0)\nshow\nShutdown\n\nwhen I receive [random v]\nwait (7) seconds\nswitch costume to (fighting cat2 v)\ngo to x: (0) y: (0)\nshow\nShutdown\n\nwhen I receive [clear the screen v]\nwait (7) seconds\nswitch costume to (fighting cat v)\ngo to x: (0) y: (0)\nshow\nShutdown\n\nstop [this script v]\n\nstop [this script v]\n\nstop [this script v]\n\n@Spike\n\nwhen flag clicked\nhide\n\nwhen I receive [come on v]\nhide\nforever\n    if <(LEVEL) = [2]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 1 v)\n    end\n    if <(LEVEL) = [3]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 2 v)\n    end\n    if <(LEVEL) = [4]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 3 v)\n    end\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 4 v)\n    end\n    if <(LEVEL) = [6]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 5 v)\n    end\n    if <(LEVEL) = [7]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 7 v)\n    end\n    if <(LEVEL) = [8]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 7 v)\n    end\n    if <(LEVEL) = [8]> then\n        change [pixelate v] effect by (30)\n        wait (0.05) seconds\n        change [pixelate v] effect by (-30)\n        wait (0.05) seconds\n    end\n    if <(LEVEL) = [12]> then\n        hide\n    end\n    if <(LEVEL) = [13]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 8 v)\n    end\n    if <(LEVEL) = [13]> then\n        change [pixelate v] effect by (30)\n        wait (0.05) seconds\n        change [pixelate v] effect by (-30)\n        wait (0.05) seconds\n    end\n    if <(LEVEL) = [14]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 9 v)\n    end\n    if <(LEVEL) = [14]> then\n        change [pixelate v] effect by (30)\n        wait (0.05) seconds\n        change [pixelate v] effect by (-30)\n        wait (0.05) seconds\n    end\n    if <(LEVEL) = [15]> then\n        hide\n    end\n    if <(LEVEL) = [16]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 10 v)\n    end\n    if <(LEVEL) = [16]> then\n        change [pixelate v] effect by (30)\n        wait (0.05) seconds\n        change [pixelate v] effect by (-30)\n        wait (0.05) seconds\n    end\n    if <(LEVEL) = [19]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 11 v)\n    end\n    if <(LEVEL) = [20]> then\n        hide\n    end\n    if <(LEVEL) = [22]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (모양 6 v)\n    end\n    if <(LEVEL) = [22]> then\n        change [pixelate v] effect by (30)\n        wait (0.05) seconds\n        change [pixelate v] effect by (-30)\n        wait (0.05) seconds\n    end\n    if <(LEVEL) = [22]> then\n        repeat until <(LEVEL) > [22]>\n            change y by (0.1)\n        end\n    end\n    if <(LEVEL) = [23]> then\n        hide\n    end\nend\n\nwhen I receive [swamp hide v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nclear graphic effects\n\nswitch costume to (모양 6 v)\n\ngo [forward v] (3) layers\n\ngo [backward v] (1) layers\n\ngo to [back v] layer\n\nwhen I receive [ouch v]\ngo to x: (0) y: (0)\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\nSet Spike\n\ndefine Set moving spike at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine Set Spike\nif <(LEVEL) = [20]> then\n    Set moving spike at x: [-12] y: [-153]\n    Set moving spike at x: [1] y: [-153]\n    Set moving spike at x: [14] y: [-153]\nend\n\nwhen I start as a clone\nshow\nforever\n    wait (0.5) seconds\n    switch costume to (8 v)\n    wait (0.1) seconds\n    switch costume to (2 v)\n    wait (0.1) seconds\n    switch costume to (3 v)\n    wait (0.1) seconds\nend\n\nswitch costume to (3 v)\n\nwhen I start as a clone\nshow\nforever\n    if <touching (weapon v)?> then\n        start sound [Basketball Bounce v]\n        change [brightness v] effect by (39)\n        wait (0.1) seconds\n        clear graphic effects\n        wait (0.1) seconds\n    end\nend\n\n@Arzion's\n\nwhen I receive [come on v]\nshow\nforever\n    hide\n    if <(LEVEL) = [2]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [3]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [4]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [5]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-64)\n    end\n    if <(LEVEL) = [6]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (0)\n    end\n    if <(LEVEL) = [7]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-33)\n    end\n    if <(LEVEL) = [8]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [9]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [10]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [11]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [12]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [13]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\n    if <(LEVEL) = [14]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-82)\n    end\n    if <(LEVEL) = [15]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-100)\n    end\n    if <(LEVEL) = [16]> then\n        switch costume to (모양 1 v)\n        go to x: (-11) y: (-100)\n    end\n    if <(LEVEL) = [17]> then\n        switch costume to (모양 1 v)\n        go to x: (-220) y: (-120)\n    end\nend\n\nwhen flag clicked\nhide\n\n@Counter\n\nwhen flag clicked\ngo to x: (0) y: (100)\nhide\n\nwhen I receive [come on v]\ngo to [front v] layer\nswitch costume to (모양 1 v)\nshow\ngo [backward v] (2) layers\nforever\n    if <key (p v) pressed?> then\n        switch costume to (모양 2 v)\n        broadcast (Sight v)\n    end\n    if <key (x v) pressed?> then\n        switch costume to (모양 1 v)\n        broadcast (HIdd v)\n    end\nend\n\n@Swamp monster\n\ndefine Swamp monster clone at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine setup\nif <(LEVEL) = [6]> then\n    Swamp monster clone at x: [-160] y: [-131]\nelse\nend\n\nwhen I receive [next v]\nsetup\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (모양 1 v)\n    wait (0.1) seconds\n    switch costume to (모양 2 v)\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\nend\n\nwhen flag clicked\nswitch costume to (모양 1 v)\nhide\n\nwhen I start as a clone\nshow\nforever\n    repeat until <(x position) = [241]>\n        change x by (2)\n        if <(x position) = [241]> then\n            hide\n            go to x: (-238) y: (y position)\n            show\n        end\n    end\nend\n\nwait (0.1) seconds\n\nwhen I start as a clone\nshow\nforever\n    if <touching (bolt v)?> then\n        repeat until <(y position) < [-180]>\n            turn right (15) degrees\n            change y by (-5)\n        end\n        hide\n        broadcast (Swamp hide v)\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    if <touching (weapon v)?> then\n        delete this clone\n    end\nend\n\n@Skip\n\nwhen flag clicked\ngo to [front v] layer\nclear graphic effects\ngo to x: (206) y: (-158)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n        if <mouse down?> then\n            wait (0.05) seconds\n            broadcast (Skip v)\n            hide\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nhide\n\nwhen I receive [animation start v]\n\nclear graphic effects\n\nwhen I receive [skip v]\nstop [other scripts in sprite v]\nbroadcast (Game start page v)\n\n@Health\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (5 v)\ngo to x: (126) y: (135)\nhide\n\nwhen I receive [ouch v]\nwait (0.3) seconds\nnext costume\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (Game Over v)\n    end\nend\n\nwhen I receive [hidd v]\nhide\n\nwhen I receive [health up v]\nswitch costume to (5 v)\n\nwhen I receive [sight v]\ngo to [front v] layer\nshow\n\n@Projectile2\n\nforever\n    switch costume to (lightningball v)\n    wait (0.05) seconds\n    switch costume to (lightningball2 v)\n    wait (0.05) seconds\nend\n\nswitch costume to (hiteffect3 v)\nwait (0.1) seconds\n\nswitch costume to (firesliceeffect3 v)\nwait (0.1) seconds\nswitch costume to (firesliceeffect4 v)\nwait (0.1) seconds\nswitch costume to (firesliceeffect5 v)\nwait (0.1) seconds\nswitch costume to (firesliceeffect6 v)\nwait (0.1) seconds\nswitch costume to (firesliceeffect7 v)\nwait (0.1) seconds\n\n@Water monster\n\ndefine Set water monster at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine Set WM\nif <(LEVEL) = [8]> then\n    Set water monster at x: [-55] y: [-165]\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\nSet WM\n\nwhen I start as a clone\nforever\n    repeat (20)\n        change y by (5)\n    end\n    wait (0.1) seconds\n    repeat (20)\n        change y by (-5)\n    end\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nforever\n    if <<<touching (weapon v)?> or <touching (real shield v)?>> or <touching (staff fireball v)?>> then\n        start sound [NPC_Killed_1 v]\n        repeat (10)\n            change [mosaic v] effect by (10)\n        end\n        clear graphic effects\n        change [coin v] by (3)\n        delete this clone\n    end\nend\n\n@Coin\n\ndefine Coin Clone at x: (x) y: (y) Size (s)\ngo to x: (x) y: (y)\nset size to (s) %\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    if <<touching (arzion v)?> or <<touching (staff fireball v)?> or <touching (weapon v)?>>> then\n        change [coin v] by (1)\n        start sound [Coin v]\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\ndefine set coin\nif <(LEVEL) = [2]> then\n    Coin Clone at x: [-71] y: [-123] Size [60]\n    Coin Clone at x: [-43] y: [-100] Size [60]\n    Coin Clone at x: [-12] y: [-80] Size [60]\n    Coin Clone at x: [25] y: [-88] Size [60]\n    Coin Clone at x: [51] y: [-110] Size [60]\nelse\n    if <(LEVEL) = [3]> then\n        Coin Clone at x: [-88] y: [-122] Size [60]\n        Coin Clone at x: [-56] y: [-90] Size [60]\n        Coin Clone at x: [-15] y: [-98] Size [60]\n        Coin Clone at x: [44] y: [-40] Size [60]\n    else\n        if <(LEVEL) = [4]> then\n            Coin Clone at x: [-49] y: [-128] Size [60]\n            Coin Clone at x: [-10] y: [-65] Size [60]\n            Coin Clone at x: [40] y: [-116] Size [60]\n        else\n            if <(LEVEL) = [5]> then\n                Coin Clone at x: [-55] y: [-60] Size [60]\n                Coin Clone at x: [-55] y: [-65] Size [60]\n                Coin Clone at x: [-55] y: [-70] Size [60]\n                Coin Clone at x: [55] y: [-60] Size [60]\n                Coin Clone at x: [55] y: [-65] Size [60]\n                Coin Clone at x: [55] y: [-70] Size [60]\n            else\n                if <(LEVEL) = [6]> then\n                    Coin Clone at x: [-80] y: [-40] Size [60]\n                    Coin Clone at x: [-60] y: [-40] Size [60]\n                    Coin Clone at x: [-40] y: [-40] Size [60]\n                    Coin Clone at x: [-20] y: [-40] Size [60]\n                    Coin Clone at x: [0] y: [-40] Size [60]\n                    Coin Clone at x: [20] y: [-40] Size [60]\n                    Coin Clone at x: [40] y: [-40] Size [60]\n                    Coin Clone at x: [60] y: [-40] Size [60]\n                    Coin Clone at x: [80] y: [-40] Size [60]\n                    Coin Clone at x: [100] y: [-40] Size [60]\n                else\n                    if <(LEVEL) = [8]> then\n                        Coin Clone at x: [0] y: [-100] Size [60]\n                        Coin Clone at x: [-100] y: [-100] Size [60]\n                        Coin Clone at x: [-60] y: [-45] Size [60]\n                        Coin Clone at x: [150] y: [-116] Size [60]\n                    else\n                        if <(LEVEL) = [9]> then\n                            Coin Clone at x: [-170] y: [-50] Size [60]\n                            Coin Clone at x: [-100] y: [-100] Size [60]\n                            Coin Clone at x: [225] y: [155] Size [60]\n                            Coin Clone at x: [200] y: [155] Size [60]\n                        else\n                            if <(LEVEL) = [10]> then\n                                Coin Clone at x: [-35] y: [-110] Size [60]\n                                Coin Clone at x: [-5] y: [-110] Size [60]\n                                Coin Clone at x: [25] y: [-110] Size [60]\n                            else\n                                if <(LEVEL) = [12]> then\n                                    Coin Clone at x: [-80] y: [-140] Size [60]\n                                    Coin Clone at x: [130] y: [-140] Size [60]\n                                else\n                                    if <(LEVEL) = [13]> then\n                                        Coin Clone at x: [-50] y: [-90] Size [60]\n                                    else\n                                        if <(LEVEL) = [17]> then\n                                            Coin Clone at x: [-130] y: [54] Size [60]\n                                            Coin Clone at x: [-150] y: [60] Size [70]\n                                            Coin Clone at x: [-170] y: [70] Size [90]\n                                            Coin Clone at x: [-190] y: [80] Size [110]\n                                        else\n                                            if <(LEVEL) = [19]> then\n                                                Coin Clone at x: [162] y: [54] Size [60]\n                                                Coin Clone at x: [40] y: [0] Size [60]\n                                                Coin Clone at x: [40] y: [20] Size [60]\n                                                Coin Clone at x: [40] y: [40] Size [60]\n                                            else\n                                                if <(LEVEL) = [22]> then\n                                                    Coin Clone at x: [-60] y: [140] Size [60]\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (coin_4 v)\n    wait (0.1) seconds\n    switch costume to (coin_3 v)\n    wait (0.1) seconds\n    switch costume to (coin_2 v)\n    wait (0.1) seconds\n    switch costume to (coin_1 v)\n    wait (0.1) seconds\nend\n\nnext costume\n\nwhen I receive [next v]\nshow variable [coin v]\nset coin\n\nwhen flag clicked\nhide variable [coin v]\nset [coin v] to [0]\nset size to (60) %\nset rotation style [left-right v]\nhide\n\nif <<touching (arzion v)?> or <touching (weapon v)?>> then\n    if <(s) = [60]> then\n    else\n        if <(s) = [200]> then\n            change [coin v] by (10)\n        end\n    end\nend\n\nCoin Clone at x: [40] y: [0] Size [60]\nCoin Clone at x: [40] y: [20] Size [60]\nCoin Clone at x: [40] y: [40] Size [60]\n\n@Bubble\n\nwhen I start as a clone\ngo to (swamp monster v)\nshow\nset size to (pick random (40) to (90)) %\n\nwhen I start as a clone\nrepeat until <not <touching (spikes v)?>>\n    change x by (pick random (1) to (3))\n    wait (pick random (0) to (0.5)) seconds\n    change x by (pick random (-1) to (-3))\n    wait (pick random (0) to (0.5)) seconds\nend\n\nwhen I start as a clone\nrepeat until <not <touching (spikes v)?>>\n    switch costume to (costume1 v)\n    change y by (2)\nend\nswitch costume to (costume2 v)\nwait (0.1) seconds\nhide\ndelete this clone\n\nwhen I receive [come on v]\nforever\n    hide\n    go to (swamp monster v)\n    if <(LEVEL) = [6]> then\n        wait (pick random (0.1) to (0.7)) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nhide\n\nforever\n\nwhen I receive [swamp hide v]\nhide\n\n@sign\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nhide\nforever\n    if <(LEVEL) = [2]> then\n        switch costume to (2 v)\n        show\n        go to x: (-107) y: (-122)\n        point in direction (105)\n    end\n    if <(LEVEL) = [3]> then\n        hide\n    end\n    if <(LEVEL) = [6]> then\n        show\n        switch costume to (1 v)\n        go to x: (-155) y: (-42)\n        point in direction (105)\n        if <touching (arzion v)?> then\n            say [Swamp Monster is dangerous. -Thunder-] for (3) seconds\n            ask [Want my hlep? \(y/n\)] and wait\n            if < (answer) contains [y]?> then\n                broadcast (THunderbolt v)\n            else\n                say [Then do it yourself!] for (2) seconds\n            end\n        end\n    end\n    if <(LEVEL) = [7]> then\n        hide\n    end\n    if <(LEVEL) = [11]> then\n        show\n        switch costume to (5 v)\n        go to x: (-107) y: (-140)\n        point in direction (105)\n    end\n    if <(LEVEL) = [12]> then\n        hide\n    end\n    if <(LEVEL) = [20]> then\n        hide\n    end\nend\n\nwhen I receive [thunderbolt v]\nforever\n    hide\nend\n\n@bolt\n\nwhen I receive [bolt v]\ngo to x: (0) y: (28)\nshow\nrepeat (10)\n    switch costume to (thundara v)\n    wait (0.1) seconds\n    switch costume to (thundara2 v)\n    wait (0.1) seconds\n    switch costume to (thundara3 v)\n    wait (0.1) seconds\n    switch costume to (thundara4 v)\n    wait (0.1) seconds\n    switch costume to (thundara5 v)\n    wait (0.1) seconds\n    switch costume to (thundara6 v)\n    wait (0.1) seconds\n    switch costume to (thundara7 v)\n    wait (0.1) seconds\nend\nhide\n\nwhen flag clicked\nhide\n\n@Chaos\n\nwhen flag clicked\npoint in direction (90)\nclear graphic effects\nhide\nforever\n    hide\n    if <(LEVEL) = [9]> then\n        show\n        switch costume to (costume1 \(3\)2 v)\n        go to x: (215) y: (-129)\n        Shake\n        go to x: (193) y: (-96)\n        Activate\n    end\n    if <(LEVEL) = [9]> then\n        wait (5) seconds\n        Spin\n        say [At last!] for (2) seconds\n    end\nend\n\ndefine Shake\nclear graphic effects\nrepeat (30)\n    change x by (4)\n    wait (0.05) seconds\n    change x by (-4)\n    wait (0.05) seconds\nend\nwait (0.1) seconds\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nswitch costume to (costume1 \(3\)3 v)\n\ndefine Activate\nclear graphic effects\nforever\n    turn right (30) degrees\nend\n\ndefine Spin\nforever\n    repeat (10)\n        change size by (10)\n    end\n    wait (0.05) seconds\n    repeat (10)\n        change size by (-10)\n    end\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nset [chaos life v] to [5]\nforever\n    if <<touching (weapon v)?> or <touching (staff fireball v)?>> then\n        change [brightness v] effect by (30)\n        wait (0.1) seconds\n        change [brightness v] effect by (-30)\n        wait (0.1) seconds\n        change [chaos life v] by (-1)\n        if <(Chaos life) < [0]> then\n            repeat (5)\n                change [mosaic v] effect by (50)\n            end\n            repeat until <(LEVEL) = [50]>\n                hide\n                clear graphic effects\n            end\n        else\n            show\n            clear graphic effects\n        end\n    else\n        clear graphic effects\n    end\nend\n\n@Counter Buttons\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [come on v]\nswitch costume to (모양 1 v)\ngo to x: (-221) y: (154)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n        go to [front v] layer\n        if <mouse down?> then\n            start sound [Clang v]\n            broadcast (Soldout v)\n            go to [front v] layer\n            switch costume to (모양 2 v)\n            wait (0.5) seconds\n            ask [Type the first letter of Item's name that you want to buy. If you don't want anything, type x] and wait\n            if <(answer) = [A]> then\n                if <<(Coin) > [20]> or <(Coin) = [20]>> then\n                    broadcast (Unlocked v)\n                    say [Sold] for (2) seconds\n                    set [ax v] to [1]\n                    change [coin v] by (-20)\n                else\n                    say [Not enough Gold] for (2) seconds\n                end\n            else\n                if <(answer) = [B]> then\n                    if <<(Coin) > [40]> or <(Coin) = [40]>> then\n                        broadcast (Unlocked v)\n                        say [Sold] for (2) seconds\n                        set [silversword v] to [1]\n                        change [coin v] by (-40)\n                    else\n                        say [Not enough Gold] for (2) seconds\n                    end\n                else\n                    if <(answer) = [W]> then\n                        if <<(Coin) > [50]> or <(Coin) = [50]>> then\n                            broadcast (Unlocked v)\n                            say [Sold] for (2) seconds\n                            set [wand v] to [1]\n                            change [coin v] by (-50)\n                        else\n                            say [Not enough Gold] for (2) seconds\n                        end\n                    else\n                        if <(answer) = [S]> then\n                            if <<(Coin) > [25]> or <(Coin) = [25]>> then\n                                broadcast (Shield v)\n                                say [Sold] for (2) seconds\n                                change [coin v] by (-25)\n                            else\n                                say [Not enough Gold] for (2) seconds\n                            end\n                        else\n                            if <(answer) = [L]> then\n                                if <<(Coin) > [28]> or <(Coin) = [28]>> then\n                                    broadcast (Heart v)\n                                    say [Sold] for (2) seconds\n                                    change [coin v] by (-28)\n                                else\n                                    say [Not enough Gold] for (2) seconds\n                                end\n                            else\n                                if <(answer) = [H]> then\n                                    if <<(Coin) > [30]> or <(Coin) = [30]>> then\n                                        broadcast (Heart Attack Item v)\n                                        say [Sold] for (2) seconds\n                                        change [coin v] by (-30)\n                                    else\n                                        say [Not enough Gold] for (2) seconds\n                                    end\n                                else\n                                    if <(answer) = [R]> then\n                                        if <<(Coin) > [35]> or <(Coin) = [35]>> then\n                                            broadcast (RANDOM v)\n                                            say [Sold] for (2) seconds\n                                            change [coin v] by (-35)\n                                        else\n                                            say [Not enough Gold] for (2) seconds\n                                        end\n                                    else\n                                        if <(answer) = [C]> then\n                                            if <<(Coin) > [55]> or <(Coin) = [55]>> then\n                                                broadcast (Clear the Screen v)\n                                                say [Sold] for (2) seconds\n                                                change [coin v] by (-55)\n                                            else\n                                                say [Not enough Gold] for (2) seconds\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    if <key (x v) pressed?> then\n        switch costume to (모양 1 v)\n    end\nend\n\nchange [coin v] by (1)\ndelete this clone\n\nwhen I receive [end v]\nhide variable [level v]\nhide variable [coin v]\nhide\n\n@DEM\n\ndefine Setting DEM at: (x) Set y at: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [next v]\nSet DEM\n\ndefine Set DEM\nif <(LEVEL) = [4]> then\n    Setting DEM at: [99] Set y at: [-127]\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nforever\n    repeat (9)\n        set [demx v] to [0]\n        point in direction (0)\n        next costume\n        wait (0.1) seconds\n    end\n    repeat (9)\n        set [demx v] to [1]\n        point in direction (-1)\n        next costume\n        wait (0.1) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(DEMX) = [0]> then\n        change x by (2)\n    else\n        change x by (-3)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (weapon v)?> or <touching (real shield v)?>> then\n        start sound [NPC_Killed_9 v]\n        repeat (10)\n            change [pixelate v] effect by (20)\n        end\n        clear graphic effects\n        change [coin v] by (1)\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\n@Cloud\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nhide\nif <(LEVEL) = [6]> then\n    go to x: (-234) y: (143)\nend\n\nforever\nend\n\nshow\n\nwhen I receive [thunderbolt v]\nshow\nswitch costume to (cloud2 v)\nglide (3) secs to x: (-3) y: (143)\nswitch costume to (cloud v)\nwait (0.1) seconds\nswitch costume to (cloud3 v)\nwait (0.1) seconds\nswitch costume to (cloud4 v)\nwait (0.1) seconds\nbroadcast (Bolt v)\nwait (9) seconds\nglide (3) secs to x: (-234) y: (143)\nhide\n\n@De-BuBuff\n\n@Weapon Counter\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (1 v)\ngo to x: (-70) y: (130)\nhide\n\nwhen I receive [hidd v]\nhide\n\nforever\n    if <key (p v) pressed?> then\n        show\n    end\n    if <key (x v) pressed?> then\n        hide\n    end\nend\n\nwhen I receive [axe v]\nswitch costume to (모양 3 v)\n\nwhen I receive [sight v]\ngo to [front v] layer\nshow\n\n@Ending Credit\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [game over v]\ngo to [front v] layer\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nclear graphic effects\n\nwhen I receive [game over v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [end v]\ngo to [front v] layer\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nclear graphic effects\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nclear graphic effects\nhide\n\n@Another Ar\n\nwhen flag clicked\nhide\n\nwhen I receive [inside v]\nwait (3) seconds\ngo to x: (-127) y: (-118)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        if <mouse down?> then\n            broadcast (Game Start v)\n            stop [this script v]\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    repeat until <touching (_edge_ v)?>\n        change x by (10)\n        if <touching (_edge_ v)?> then\n            hide\n            stop [this script v]\n        end\n    end\nend\n\n@Arrow\n\nwhen I receive [inside v]\nwait (3) seconds\nshow\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen I receive [game start v]\nhide\n\nwhen flag clicked\nhide\n\n@enterances\n\nwhen flag clicked\nhide\n\ndefine Enter x at: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine set Enter\nif <(LEVEL) = [11]> then\n    Enter x at: [210] y: [-146]\nelse\n    if <(LEVEL) = [12]> then\n        Enter x at: [210] y: [-150]\n    else\n        if <(LEVEL) = [13]> then\n            Enter x at: [210] y: [-90]\n        else\n            if <(LEVEL) = [14]> then\n                Enter x at: [210] y: [-40]\n            else\n                if <(LEVEL) = [15]> then\n                    Enter x at: [210] y: [-125]\n                else\n                    if <(LEVEL) = [16]> then\n                        Enter x at: [-210] y: [100]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [next v]\nset Enter\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I start as a clone\nshow\nrepeat (5)\n    switch costume to (quake v)\n    wait (0.15) seconds\n    switch costume to (quake2 v)\n    wait (0.15) seconds\n    switch costume to (quake3 v)\n    wait (0.15) seconds\nend\nswitch costume to (quake v)\nwait (0.15) seconds\nswitch costume to (quake2 v)\nwait (0.15) seconds\nswitch costume to (quake3 v)\nwait (0.15) seconds\nswitch costume to (quake4 v)\nwait (0.15) seconds\nswitch costume to (quake5 v)\nwait (0.15) seconds\nswitch costume to (quake6 v)\nwait (0.15) seconds\nswitch costume to (quake7 v)\nwait (0.15) seconds\n\n@download\n\n@스프라이트 2\n\n@Counter Buttons2\n\nwhen I receive [come on v]\ngo to x: (-178) y: (154)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n        if <mouse down?> then\n            start sound [Clang v]\n            switch costume to (모양 2 v)\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    if <key (x v) pressed?> then\n        switch costume to (모양 1 v)\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [end v]\nhide\n\n@Big Coin\n\ndefine Coin Clone at x: (x) y: (y) Size (s)\ngo to x: (x) y: (y)\nset size to (s) %\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    if <<touching (arzion v)?> or <touching (weapon v)?>> then\n        change [coin v] by (10)\n        start sound [Coin v]\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\ndefine set coin\nif <(LEVEL) = [7]> then\n    Coin Clone at x: [0] y: [-100] Size [200]\nelse\n    if <(LEVEL) = [11]> then\n        Coin Clone at x: [0] y: [-100] Size [200]\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (coin_4 v)\n    wait (0.1) seconds\n    switch costume to (coin_3 v)\n    wait (0.1) seconds\n    switch costume to (coin_2 v)\n    wait (0.1) seconds\n    switch costume to (coin_1 v)\n    wait (0.1) seconds\nend\n\nnext costume\n\nwhen I receive [next v]\nshow variable [coin v]\nset coin\n\nwhen flag clicked\nset size to (200) %\nhide\n\nif <<touching (arzion v)?> or <touching (weapon v)?>> then\n    if <(s) = [60]> then\nend\n\n@Arm\n\ndefine SPAWN at x: (x) y: (y) Direction (g) Size (s)\ngo to x: (x) y: (y)\npoint in direction (g)\nset size to (s) %\ncreate clone of (_myself_ v)\n\ndefine ACTT\nif <(LEVEL) = [9]> then\n    SPAWN at x: [191] y: [-115] Direction [90] Size (pick random (130) to (140))\n    SPAWN at x: [177] y: [-93] Direction [120] Size (pick random (130) to (140))\n    SPAWN at x: [190] y: [-58] Direction [140] Size (pick random (130) to (140))\nend\n\nwhen I start as a clone\nwait (5) seconds\nshow\nforever\n    repeat (60)\n        turn left (3) degrees\n    end\n    wait (0.2) seconds\n    repeat (60)\n        turn right (3) degrees\n    end\n    if <<touching (weapon v)?> or <(Chaos life) < [0]>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        clear graphic effects\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nACTT\n\n@Item unlock!\n\nwhen flag clicked\nhide\n\n@Shine\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\npoint in direction (90)\n\nwhen I receive [unlocked v]\n\nshow\ngo to x: (0) y: (0)\nrepeat (200)\n    turn right (7) degrees\nend\nhide\npoint in direction (90)\n\n@Chain\n\nwhen flag clicked\nhide\npoint in direction (90)\n\ndefine Chain Axe\npoint in direction (90)\nforever\n    repeat until <(direction) = [40]>\n        turn left (2) degrees\n    end\n    wait (0.1) seconds\n    repeat until <(direction) = [140]>\n        turn right (2) degrees\n    end\n    wait (0.1) seconds\nend\n\ndefine Set Chain Axe at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nrepeat (10)\nend\n\nrepeat (10)\nend\n\nturn right (5) degrees\n\nwhen I start as a clone\nshow\nChain Axe\n\ndefine SETINGS\nif <(LEVEL) = [12]> then\n    Set Chain Axe at x: [-100] y: [145]\n    Set Chain Axe at x: [130] y: [145]\nend\n\nwhen I start as a clone\nchange [brightness v] effect by (-30)\n\nwhen I receive [next v]\nSETINGS\n\nwhen I receive [next v]\ndelete this clone\n\n@Wolves\n\ndefine Set wolf\nif <(LEVEL) = [16]> then\n    Set Wolfman at x: [-203] y: [-64] De [0]\n    Set Wolfman at x: [104] y: [-65] De [0]\n    Set Wolfman at x: [-77] y: [118] De [0]\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\n\ndefine Wolf act\nforever\n    repeat until <<touching (staff fireball v)?> or <touching (weapon v)?>>\n        point in direction (0)\n        repeat (28)\n            change x by (2)\n        end\n        point in direction (-1)\n        repeat (28)\n            change x by (-2)\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (gnollshaman_walk_1 v)\nforever\n    repeat until <<touching (staff fireball v)?> or <touching (weapon v)?>>\n        switch costume to (gnollshaman_walk_1 v)\n        wait (0.05) seconds\n        switch costume to (gnollshaman_walk_2 v)\n        wait (0.05) seconds\n        switch costume to (gnollshaman_walk_3 v)\n        wait (0.05) seconds\n        switch costume to (gnollshaman_walk_4 v)\n        wait (0.05) seconds\n    end\n    if <touching (weapon v)?> then\n        start sound [hit organic 1 v]\n        change [brightness v] effect by (10)\n        repeat (10)\n            change [pixelate v] effect by (10)\n        end\n        change [coin v] by (2)\n        delete this clone\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [next v]\nSet wolf\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    repeat until <<touching (staff fireball v)?> or <touching (weapon v)?>>\n        Wolf act\n    end\nend\n\ndefine Set Wolfman at x: (x) y: (y) De (d)\npoint in direction (d)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\n@Lava Monster\n\nwhen flag clicked\nswitch costume to (모양 1 v)\nhide\nforever\n    hide\n    if <(LEVEL) = [14]> then\n        show\n        go to x: (222) y: (-138)\n    end\n    if <(LEVEL) = [14]> then\n        switch costume to (모양 1 v)\n        wait (0.1) seconds\n        switch costume to (모양 2 v)\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    end\nend\n\n@FIREBALL\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [14]> then\n        go to (lava monster v)\n        wait (1) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nrepeat until \nend\n\ndefine FIREBALL\nglide (2) secs to (arzion v)\npoint towards (arzion v)\n\nwhen I start as a clone\nFIREBALL\n\nwhen I start as a clone\nshow\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nforever\n    if <<touching (level v)?> or <<touching (weapon v)?> or <touching (_edge_ v)?>>> then\n        delete this clone\n    end\nend\n\n@Drill\n\ndefine Set Drill x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine Settttt\nif <(LEVEL) = [15]> then\n    Set Drill x: [-150] y: [-105]\n    Set Drill x: [-50] y: [0]\n    Set Drill x: [40] y: [-105]\n    Set Drill x: [70] y: [0]\n    Set Drill x: [80] y: [-105]\n    Set Drill x: [120] y: [0]\nelse\n    if <(LEVEL) = [16]> then\n        Set Drill x: [120] y: [0]\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\nSettttt\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nforever\n    turn right (15) degrees\nend\n\nwhen I start as a clone\nshow\nforever\n    if <touching (weapon v)?> then\n        start sound [Basketball Bounce v]\n        change [brightness v] effect by (39)\n        wait (0.1) seconds\n        clear graphic effects\n        wait (0.1) seconds\n    end\nend\n\n@Crash Hammer\n\nchange [brightness v] effect by (-10)\n\nclear graphic effects\n\n@Golem\n\ndefine Set Golem at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine Set GOLEM\nif <(LEVEL) = [5]> then\n    Set Golem at x: [158] y: [5]\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [golem life v] to [1]\nswitch costume to (golem_idle_1 v)\nshow\nwait (0.5) seconds\nrepeat (5)\n    switch costume to (golem_idle_1 v)\n    wait (0.1) seconds\n    switch costume to (golem_idle_2 v)\n    wait (0.1) seconds\n    switch costume to (golem_idle_3 v)\n    wait (0.1) seconds\n    switch costume to (golem_idle_4 v)\n    wait (0.1) seconds\n    switch costume to (golem_idle_5 v)\n    wait (0.1) seconds\n    switch costume to (golem_idle_6 v)\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nwait (2) seconds\nrepeat until <(GOLEM LIFE) = [0]>\n    wait (3) seconds\n    switch costume to (golem throw1 v)\n    wait (0.1) seconds\n    switch costume to (golem throw2 v)\n    wait (0.1) seconds\n    switch costume to (golem throw3 v)\n    wait (0.1) seconds\n    switch costume to (golem throw4 v)\n    wait (0.05) seconds\n    switch costume to (golem throw5 v)\n    broadcast (ROCK v)\n    wait (0.05) seconds\n    switch costume to (golem throw7 v)\n    wait (0.05) seconds\n    switch costume to (golem throw6 v)\n    wait (0.3) seconds\nend\n\nwhen I receive [next v]\nSet GOLEM\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <<touching (staff fireball v)?> or <touching (weapon v)?>> then\n        change [brightness v] effect by (10)\n        broadcast (Golem Hit v)\n        wait (0.2) seconds\n        clear graphic effects\n    end\nend\n\nwhen I receive [golem hide v]\nset [golem life v] to [0]\nswitch costume to (golem die v)\nwait (0.2) seconds\nswitch costume to (golem die v)\ndelete this clone\n\nchange [coin v] by (30)\nstop [this script v]\n\nwhen I receive [golem hide v]\n\n@REAL Boss\n\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [come on v]\nhide\nforever\n    if <(LEVEL) = [23]> then\n        show\n        go to x: (187) y: (-10)\n        set [brightness v] effect to (-50)\n    end\nend\n\nwhen I receive [come on v]\nif <(LEVEL) = [23]> then\n    say [At last!!!] for (1) seconds\n    say [That Great Wizard sent you, huh?] for (3) seconds\n    say [But, there is no light, that can defeat the Darkness, boy] for (3) seconds\n    say [You can't defeat me] for (2) seconds\nend\n\nwhen I receive [boss die v]\nsay [NOOOOOOOOOOOOOOOOOO! My shield! All my power is crashed!] for (3) seconds\nsay [I'll be back! I'll revenge!] for (2) seconds\nrepeat (10)\n    change [mosaic v] effect by (25)\nend\nhide\nclear graphic effects\nbroadcast (End v)\n\n@ROCK\n\nwhen flag clicked\nhide\n\nwhen I receive [come on v]\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    go to (golem v)\nend\n\nwait (1) seconds\n\nwhen I receive [rock v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (golem throw2 v)\nshow\npoint towards (arzion v)\nforever\n    if <not <(GOLEM LIFE) = [0]>> then\n        move (10) steps\n        if <<<touching (weapon v)?> or <<touching (real shield v)?> or <touching (arzion v)?>>> or <<touching (staff fireball v)?> or <touching (_edge_ v)?>>> then\n            start sound [Crunch v]\n            switch costume to (cra v)\n            wait (0.05) seconds\n            switch costume to (cra2 v)\n            wait (0.05) seconds\n            switch costume to (cra3 v)\n            wait (0.05) seconds\n            switch costume to (cra4 v)\n            wait (0.05) seconds\n            switch costume to (cra5 v)\n            wait (0.05) seconds\n            switch costume to (cra6 v)\n            wait (0.05) seconds\n            delete this clone\n        end\n    end\nend\n\nwait (1) seconds\n\nwhen I receive [golem hide v]\ndelete this clone\n\nforever\n\n@UNLOCKED ITEM\n\nwhen I receive [sight v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [hidd v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (5 v)\ngo to x: (0) y: (0)\nhide\nforever\n    ITEM\n    repeat until <<key (7 v) pressed?> or <<key (8 v) pressed?> or <<key (5 v) pressed?> or <<key (6 v) pressed?> or <key (9 v) pressed?>>>>>\n        switch costume to (7 v)\n        if <<key (7 v) pressed?> or <<key (8 v) pressed?> or <<key (5 v) pressed?> or <<key (6 v) pressed?> or <key (9 v) pressed?>>>>> then\n            ITEM\n        else\n            switch costume to (7 v)\n        end\n    end\nend\n\ndefine ITEM\nswitch costume to (5 v)\nwait (5) seconds\nswitch costume to (2 v)\nwait (10) seconds\nswitch costume to (3 v)\nwait (20) seconds\nswitch costume to (4 v)\nwait (25) seconds\nswitch costume to (6 v)\nwait (35) seconds\n\nwhen I receive [clear the screen v]\nswitch costume to (7 v)\n\nwhen I receive [heart v]\nswitch costume to (3 v)\n\nwhen I receive [heart attack item v]\nswitch costume to (4 v)\n\nwhen I receive [random v]\nswitch costume to (6 v)\n\nwhen I receive [shield v]\nswitch costume to (2 v)\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [2]> or <(costume [number v]) > [2]>> then\n        if <key (5 v) pressed?> then\n            broadcast (Shield up v)\n        end\n    end\n    if <<(costume [number v]) = [3]> or <(costume [number v]) > [3]>> then\n        if <key (6 v) pressed?> then\n            broadcast (Health up v)\n        end\n    end\n    if <<(costume [number v]) = [6]> or <(costume [number v]) > [6]>> then\n        if <key (9 v) pressed?> then\n            broadcast (clear off! v)\n        end\n    end\nend\n\n@Staff fireball\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\nwhen I receive [come on v]\nforever\n    hide\n    go to (weapon v)\n    if <key (m v) pressed?> then\n        set [degre v] to [90]\n    else\n        if <key (n v) pressed?> then\n            set [degre v] to [-90]\n        end\n    end\n    if <<(Weapon choose) = [4]> and <<key (m v) pressed?> or <key (n v) pressed?>>> then\n        wait (0.1) seconds\n        create clone of (_myself_ v)\n        wait (0.5) seconds\n    end\nend\n\nwhen I start as a clone\nshow\npoint in direction (Degre)\nforever\n    move (10) steps\n    if <<touching (boss v)?> or <<touching (dark wizard v)?> or <<touching (dark wizard's sword v)?> or <<touching (dark wizard's sword v)?> or <<touching (_edge_ v)?> or <touching (level2 v)?>>>>>> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nrepeat until <<touching (boss v)?> or <<touching (dark wizard v)?> or <<touching (dark wizard's sword v)?> or <<touching (dark wizard's sword v)?> or <touching (level2 v)?>>>>>\n\nwhen I receive [next v]\ndelete this clone\n\n@Golem Life\n\nwhen flag clicked\nhide\n\nwhen I receive [come on v]\nswitch costume to (17 v)\nforever\n    hide\n    if <(LEVEL) = [5]> then\n        go to x: (150) y: (29)\n        show\n    else\n        hide\n    end\n    if <(LEVEL) = [6]> then\n        hide\n    end\nend\n\nwhen I receive [golem hit v]\nwait (0.05) seconds\nnext costume\nforever\n    if <(costume [number v]) = [18]> then\n        hide\n        broadcast (Golem Hide v)\n    else\n        show\n    end\nend\n\nwhen I receive [golem hide v]\nforever\n    switch costume to (18 v)\n    hide\nend\n\n@Slime\n\ndefine Set Slime at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\ndefine Set Slime\nif <(LEVEL) = [2]> then\n    Set Slime at x: [225] y: [-128]\nend\n\nwhen I receive [next v]\nSet Slime\n\nwhen I start as a clone\nshow\nforever\n    if <(LEVEL) = [2]> then\n        switch costume to (1 v)\n        wait (0.2) seconds\n        switch costume to (2 v)\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <touching (weapon v)?> then\n        start sound [hit organic 1 v]\n        repeat (30)\n            change [color v] effect by (5)\n        end\n        clear graphic effects\n        repeat (10)\n            change [mosaic v] effect by (25)\n        end\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    if <(LEVEL) = [2]> then\n        glide (3) secs to x: (50) y: (-128)\n        wait (0.1) seconds\n        glide (3) secs to x: (225) y: (-128)\n        wait (0.1) seconds\n    end\nend\n\n@Plants\n\ndefine Set plants at x: (x) y: (y) Plants Number: (n)\ngo to x: (x) y: (y)\nswitch costume to <(n) = (costume [number v])>\ncreate clone of (_myself_ v)\n\ndefine Set Plants\nforever\n    if <(LEVEL) = [2]> then\n        Set plants at x: [-176] y: [-139] Plants Number: <<(n) = [11]> or <<(n) = [1]> or <(n) = [6]>>>\n        Set plants at x: [-148] y: [-139] Plants Number: <<(n) = [11]> or <<(n) = [1]> or <(n) = [6]>>>\n        Set plants at x: [-50] y: [-138] Plants Number: <<(n) = [11]> or <<(n) = [1]> or <(n) = [6]>>>\n        Set plants at x: [77] y: [-139] Plants Number: <<(n) = [11]> or <<(n) = [1]> or <(n) = [6]>>>\n    end\nend\n\nwhen I start as a clone\nwait (1) seconds\nnext costume\nwait (pick random (0.05) to (0.5)) seconds\nnext costume\nwait (pick random (0.05) to (0.5)) seconds\nnext costume\nwait (pick random (0.05) to (0.5)) seconds\nnext costume\nwait (pick random (0.05) to (0.5)) seconds\nnext costume\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\nSet Plants\n\nwhen I start as a clone\nshow\nforever\n    if <touching (weapon v)?> then\n        delete this clone\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@Doorkeeper\n\nwhen I start as a clone\nshow\nset [keeper death v] to [5]\nforever\n    switch costume to (forestguardian_idle_1 v)\n    set [brightness v] effect to (-30)\n    wait (1) seconds\n    repeat (3)\n        switch costume to (forestguardian_idle_1 v)\n        wait (0.1) seconds\n        switch costume to (forestguardian_idle_2 v)\n        wait (0.1) seconds\n        switch costume to (forestguardian_idle_3 v)\n        wait (0.1) seconds\n        switch costume to (forestguardian_idle_4 v)\n        wait (0.1) seconds\n    end\n    repeat until <(Keeper death) < [0]>\n        wait (2) seconds\n        switch costume to (fight v)\n        wait (0.1) seconds\n        switch costume to (fight2 v)\n        wait (0.2) seconds\n        switch costume to (fight3 v)\n        start sound [Crunch v]\n        wait (0.2) seconds\n        switch costume to (fight4 v)\n        wait (0.1) seconds\n        if <(Keeper death) < [0]> then\n            repeat (10)\n                change [pixelate v] effect by (25)\n            end\n            clear graphic effects\n            change [coin v] by (100)\n            delete this clone\n        end\n    end\nend\n\ndefine setttttt\nif <(LEVEL) = [19]> then\n    Set Keeper at x: [0] y: [-110]\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\nsetttttt\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <<touching (weapon v)?> or <touching (staff fireball v)?>> then\n        start sound [Basketball Bounce v]\n        change [brightness v] effect by (10)\n        wait (0.1) seconds\n        change [brightness v] effect by (-10)\n        wait (0.1) seconds\n        change [keeper death v] by (-1)\n    end\nend\n\ndefine Set Keeper at x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\n@스프라이트 3\n\n@buf\n\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nset [pixelate v] effect to (30)\n\n@Label\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [skip v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [label v]\nwait (1) seconds\nshow\nswitch costume to (label1 v)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (0.5) seconds\nswitch costume to (label2 v)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (0.5) seconds\nswitch costume to (label3 v)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (0.5) seconds\nswitch costume to (label4 v)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (0.5) seconds\nswitch costume to (label5 v)\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (0.5) seconds\nswitch costume to (label6 v)\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (0.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (0.5) seconds\nhide\nbroadcast (Thumbnail v)\n\nstart sound [123 v]\n\n@2zdqt97s2d821\n\n@Soldout\n\nwhen flag clicked\ngo to x: (-105) y: (135)\nhide\nswitch costume to (1 v)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [unlocked v]\n\nwait (0.05) seconds\nnext costume\n\nwhen I receive [soldout v]\n\nshow\n\nwhen [x v] key pressed\n\nhide\n\n@Fake Item\n\nwhen I receive [heart v]\nswitch costume to (h v)\nGrow\n\nwhen I receive [clear the screen v]\nswitch costume to (f v)\nGrow\n\nwhen I receive [heart attack item v]\nswitch costume to (hc v)\nGrow\n\nwhen I receive [random v]\nswitch costume to (r v)\nGrow\n\nwhen I receive [silver sword v]\nswitch costume to (silversword v)\nGrow\n\nwhen I receive [shield v]\nswitch costume to (s v)\nGrow\n\nwhen I receive [axe v]\nswitch costume to (ax v)\nGrow\n\nwhen I receive [wand v]\nswitch costume to (staff v)\nGrow\n\nwhen flag clicked\nset size to (1) %\ngo to x: (0) y: (0)\nhide\nforever\n    go to [front v] layer\nend\n\ndefine Grow\nwait (1) seconds\nshow\nrepeat (110)\n    change size by (2)\nend\nset size to (220) %\nrepeat (5)\n    change [brightness v] effect by (30)\n    wait (0.1) seconds\n    change [brightness v] effect by (-30)\n    wait (0.1) seconds\nend\nclear graphic effects\nwait (0.5) seconds\nhide\n\n@Weapon Choose\n\nwhen flag clicked\ngo to x: (-225) y: (-165)\nhide\n\nwhen I receive [come on v]\nswitch costume to (모양 1 v)\nshow\nforever\n    go to [front v] layer\n    if <key (1 v) pressed?> then\n        switch costume to (모양 1 v)\n    else\n        if <key (2 v) pressed?> then\n            switch costume to (모양 2 v)\n        else\n            if <key (3 v) pressed?> then\n                switch costume to (모양 3 v)\n            else\n                if <key (4 v) pressed?> then\n                    switch costume to (모양 4 v)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@DarkLord's Weapon\n\nwhen flag clicked\ngo to x: (-240) y: (-140)\nhide\n\nwhen I receive [come on v]\nforever\n    if <(LEVEL) = [23]> then\n        go to x: (-240) y: (-140)\n        wait (5) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    glide (3) secs to (random position v)\nend\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (thunder strike4 v)\n    wait (0.95) seconds\n    switch costume to (thunder strike3 v)\n    wait (0.95) seconds\n    switch costume to (thunder strike2 v)\n    wait (0.95) seconds\n    switch costume to (thunder strike1 v)\n    wait (0.95) seconds\nend\n\ndelete this clone\n\nwhen I receive [ouch v]\n\nwhen I start as a clone\nshow\nforever\n    if <<<<touching (staff fireball v)?> or <touching (arzion v)?>> or <touching (real shield v)?>> or <touching (weapon v)?>> then\n        switch costume to (tstrike v)\n        wait (0.95) seconds\n        switch costume to (tstrike2 v)\n        wait (0.95) seconds\n        delete this clone\n    end\nend\n\n@ghost\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nforever\n    repeat (10)\n        change y by (1)\n    end\n    wait (0.05) seconds\n    repeat (10)\n        change y by (-1)\n    end\n    wait (0.05) seconds\nend\n\nwhen I receive [come on v]\nforever\n    if <(LEVEL) = [21]> then\n        wait (3) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    glide (2) secs to (arzion v)\nend\n\nwhen I start as a clone\nshow\nforever\n    if <<<touching (real shield v)?> or <touching (staff fireball v)?>> or <touching (weapon v)?>> then\n        delete this clone\n    end\nend\n\nwhen I receive [next v]\ndelete this clone\n\n@스프라이트 4\n\nwhen flag clicked\nhide\ngo to x: (-32) y: (25)\n\nwhen I receive [wait a minute, where have you been? v]\nshow\ngo to [back v] layer\nsay [Wait a minute, Where have you been?] for (4) seconds\nchange x by (40)\nsay [Private] for (2) seconds\nstop [all v]\n\n@스프라이트 5\n\nwhen I receive [end v]\nwait (5) seconds\nswitch backdrop to (start2 v)\ngo to [front v] layer\nbroadcast (Wait a minute, Where have you been? v)\n\nwhen I receive [end v]\ngo to x: (0) y: (0)\nwait (4) seconds\nshow\n\nwhen flag clicked\nhide\n\n