Home 2 [PIatformer] 

Instructions: This is a relatively difficult platformer. (Don't say I didn't warn you)\n=================================================\nA creature is lost in the night. Will you return him to its home?\n\nArrow keys or WASD to move.\n\n============TIPS FOR BEATING EACH LEVEL===========\nLevel 1: Pretty self explanatory.\nLevel 2: Just jump\nLevel 3: Try jumping into that huge floating thing...\nLevel 4: Try to fall off instead of landing on the platforms\nLevel 5: It's pretty self explanatory too\nLevel 6: Get to the highest place you can, then jump\nLevel 7: Very difficult, just time your jumps well\nLevel 8: Okay\n

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\n    play sound [Zelda Song.mp3 v] until done\nend\n\n@Player\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nset [level v] to [1]\ngo to x: (-225) y: (-125)\nset [x vel v] to [0]\nset [y vel v] to [0]\nforever\n    physics (10.5) (0.75)\n    Death\n    if <(y position) < [-173]> then\n        go to x: (-225) y: (-125)\n        change [number v] by (1)\n    end\n    if <(x position) > [235]> then\n        go to x: (-225) y: (-125)\n        broadcast (Change v)\n        hide\n        wait (1) seconds\n        show\n    end\n    change x by (Wind)\nend\n\nwhen I receive [start v]\nforever\n    if <<<not <key (right arrow v) pressed?>> and <not <key (left arrow v) pressed?>>> and <<touching (terrain v)?> or <touching (sprite2 v)?>>> then\n        repeat ([ceiling v] of (([abs v] of (Wind) ) + (1)) )\n            if <<touching (terrain v)?> or <touching (sprite2 v)?>> then\n                change x by (((Wind) / ([abs v] of (Wind) )) * (-3))\n            end\n        end\n        if <<touching (terrain v)?> or <touching (sprite2 v)?>> then\n            change x by (([ceiling v] of ([abs v] of (Wind) ) ) * ((Wind) / ([abs v] of (Wind) )))\n        end\n    end\n    if <<key (right arrow v) pressed?> and <<touching (terrain v)?> or <touching (sprite2 v)?>>> then\n        change x by (((Wind) / ([abs v] of (Wind) )) * (-3))\n    end\n    if <<key (left arrow v) pressed?> and <<touching (terrain v)?> or <touching (sprite2 v)?>>> then\n        change x by (((Wind) / ([abs v] of (Wind) )) * (-3))\n    end\nend\n\ndefine Death\nif <touching (lava v)?> then\n    go to x: (-225) y: (-125)\n    change [number v] by (1)\nend\nif <touching (spiky v)?> then\n    wait (0.005) seconds\n    go to x: (-225) y: (-125)\n    change [number v] by (1)\nend\nif <touching (invisitrap v)?> then\n    wait (0.08) seconds\n    go to x: (-225) y: (-125)\n    change [number v] by (1)\nend\nif <touching (spiky2 v)?> then\n    wait (0.005) seconds\n    go to x: (-225) y: (-125)\n    change [number v] by (1)\nend\n\nwhen [r v] key pressed\ngo to x: (-225) y: (-125)\n\nwhen I receive [end v]\nshow\ngo to x: (-225) y: (-139)\nstop [other scripts in sprite v]\nswitch costume to (stand v)\nwait (2.5) seconds\nswitch costume to (right v)\nwait (0.5) seconds\nglide (6) secs to x: (108) y: (-139)\nbroadcast (DONE v)\n\ndefine None\nchange y by (y vel)\nif <<touching (terrain v)?> or <touching (sprite2 v)?>> then\n    repeat ([abs v] of (y vel) )\n        if <<touching (terrain v)?> or <touching (sprite2 v)?>> then\n            change y by (((y vel) / ([abs v] of (y vel) )) * (-1))\n        end\n    end\n    if <<touching (terrain v)?> or <touching (sprite2 v)?>> then\n        change y by (y vel)\n    end\n    if <<(y vel) < [0.01]> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y vel v] to (jump height)\n    else\n        set [y vel v] to [0]\n    end\nelse\n    change [y vel v] by (-1)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x vel v] by ((1) + (Wind))\n    switch costume to (right v)\nelse\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x vel v] by ((-1) + (Wind))\n        switch costume to (left v)\n    else\n        switch costume to (stand v)\n    end\nend\nchange x by (x vel)\nif <<touching (terrain v)?> or <touching (sprite2 v)?>> then\n    repeat ([ceiling v] of (([abs v] of ((x vel) + (Wind)) ) + (1)) )\n        if <<touching (terrain v)?> or <touching (sprite2 v)?>> then\n            change x by ((((x vel) + (Wind)) / ([abs v] of ((x vel) + (Wind)) )) * (-1))\n        end\n    end\n    if <<touching (terrain v)?> or <touching (sprite2 v)?>> then\n        change x by (([ceiling v] of ([abs v] of ((x vel) + (Wind)) ) ) * (((x vel) + (Wind)) / ([abs v] of ((x vel) + (Wind)) )))\n    end\n    set [x vel v] to [0]\nend\nset [x vel v] to ((x vel) * (friction))\n\n@Terrain\n\nwhen I receive [next level v]\nswitch costume to (Level)\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\nset size to (600) %\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nset [ghost v] effect to (80)\n\n@Lava\n\nwhen I receive [start v]\nhide\n\nhide\n\nshow\n\nwhen I start as a clone\nshow\nif <(CloneType) = [1]> then\n    wait until <<<(Level) = [2]> or <(Level) = [4]>> or <<(Level) = [6]> or <<(Level) = [8]> or < or < or >>>>>\n    delete this clone\nelse\n    if <(CloneType) = [2]> then\n        wait until <<<(Level) = [2]> or <(Level) = [5]>> or <<(Level) = [7]> or <<(Level) = [9]> or < or < or >>>>>\n        delete this clone\n    else\n    end\nend\n\nwhen I start as a clone\nwait (0.001) seconds\nshow\n\nwhen I receive [start v]\nset [clonetype v] to [0]\npoint in direction (90)\nwait until <(Level) = [1]>\nset [clonetype v] to [1]\ngo to x: (4) y: (-68)\ncreate clone of (_myself_ v)\ngo to x: (137) y: (-68)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [3]>\ngo to x: (-7) y: (100)\ncreate clone of (_myself_ v)\ngo to x: (-80) y: (52)\ncreate clone of (_myself_ v)\ngo to x: (-116) y: (148)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [4]>\nset [clonetype v] to [2]\ngo to x: (17) y: (16)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\npoint in direction (-90)\ngo to x: (20) y: (-16)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [5]>\nset [clonetype v] to [1]\npoint in direction (90)\ngo to x: (-128) y: (-92)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\ngo to x: (75) y: (-8)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [6]>\nset [clonetype v] to [2]\npoint in direction (90)\ngo to x: (-164) y: (-92)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [7]>\nset [clonetype v] to [1]\npoint in direction (0)\ngo to x: (116) y: (-92)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [8]>\nset [clonetype v] to [2]\npoint in direction (90)\ngo to x: (-91) y: (-92)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\ngo to x: (16) y: (-11)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\n\nwhen I receive [start v]\nhide\ngo [backward v] (1) layers\nforever\n    set size to (50) %\n    switch costume to (Level)\nend\n\n@Spiky\n\nwhen I receive [start v]\nshow\n\nwhen I start as a clone\nshow\nif <(CloneType) = [1]> then\n    wait until <<<(Level) = [1]> or <(Level) = [2]>> or <<(Level) = [4]> or <<(Level) = [6]> or <<(Level) = [8]> or >>>>\n    delete this clone\nelse\n    if <(CloneType) = [2]> then\n        wait until <<<(Level) = [1]> or <(Level) = [2]>> or <<(Level) = [5]> or <<(Level) = [7]> or <<(Level) = [9]> or >>>>\n        delete this clone\n    end\nend\n\nrepeat (10)\n\nwhen I start as a clone\nchange y by (-12)\nswitch costume to (costume13 v)\nwait (0.5) seconds\nforever\n    if <(direction) = [90]> then\n        repeat (6)\n            change y by (2)\n        end\n        wait (0.8) seconds\n        repeat (6)\n            change y by (-2)\n        end\n        hide\n        wait (1) seconds\n        show\n    else\n        if <(direction) = [-90]> then\n            repeat (6)\n                change y by (-2)\n            end\n            wait (0.8) seconds\n            repeat (6)\n                change y by (2)\n            end\n            hide\n            wait (1) seconds\n            show\n        else\n            if <(direction) = [0]> then\n                repeat (6)\n                    change x by (2)\n                end\n                hide\n                wait (0.8) seconds\n                show\n                repeat (6)\n                    change x by (-2)\n                end\n                wait (1) seconds\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\npoint in direction (90)\nset [clonetype v] to [0]\nwait (0.01) seconds\nwait until <(Level) = [3]>\nset [clonetype v] to [1]\ngo to x: (-9) y: (-103)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [4]>\nset [clonetype v] to [2]\npoint in direction (-90)\nwait (0.01) seconds\ngo to x: (-159) y: (-110)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\ngo to x: (-72) y: (-110)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [5]>\nset [clonetype v] to [1]\npoint in direction (90)\ngo to x: (148) y: (-7)\ncreate clone of (_myself_ v)\nwait until <(Level) = [6]>\nset [clonetype v] to [2]\ngo to x: (40) y: (-139)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\npoint in direction (-90)\ngo to x: (-87) y: (31)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [7]>\nset [clonetype v] to [1]\npoint in direction (90)\ngo to x: (75) y: (-91)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\npoint in direction (0)\ngo to x: (67) y: (-93)\ncreate clone of (_myself_ v)\nchange y by (-12)\ncreate clone of (_myself_ v)\nchange y by (-12)\ncreate clone of (_myself_ v)\nchange y by (-12)\ncreate clone of (_myself_ v)\ngo to x: (187) y: (-9)\ncreate clone of (_myself_ v)\nchange y by (-12)\ncreate clone of (_myself_ v)\nchange y by (-12)\ncreate clone of (_myself_ v)\nchange y by (-12)\ncreate clone of (_myself_ v)\nchange y by (-12)\ncreate clone of (_myself_ v)\npoint in direction (90)\ngo to x: (124) y: (-55)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [8]>\nset [clonetype v] to [2]\npoint in direction (90)\ngo to x: (16) y: (-139)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\ngo to x: (52) y: (-91)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\ngo to x: (900) y: (900)\nforever\n    hide\n    go to [front v] layer\n    set size to (50) %\nend\n\ngo to x: (0) y: (150)\nshow\n\n@Spiky2\n\nwhen I receive [start v]\nshow\n\nwhen I start as a clone\nshow\nwait until <(Level) = [9]>\ndelete this clone\n\nwhen flag clicked\ngo to x: (900) y: (900)\nforever\n    hide\n    go to [front v] layer\n    set size to (50) %\nend\n\nwhen I start as a clone\nchange y by (-12)\nswitch costume to (costume13 v)\nwait (0.5) seconds\nforever\n    if <(direction) = [90]> then\n        repeat (6)\n            change y by (2)\n        end\n        wait (0.8) seconds\n        repeat (6)\n            change y by (-2)\n        end\n        hide\n        wait (1) seconds\n        show\n    else\n        if <(direction) = [-90]> then\n            repeat (6)\n                change y by (-2)\n            end\n            wait (0.8) seconds\n            repeat (6)\n                change y by (2)\n            end\n            hide\n            wait (1) seconds\n            show\n        else\n            if <(direction) = [0]> then\n                repeat (6)\n                    change x by (2)\n                end\n                hide\n                wait (0.8) seconds\n                show\n                repeat (6)\n                    change x by (-2)\n                end\n                wait (1) seconds\n            end\n        end\n    end\nend\n\nwhen I receive [start v]\npoint in direction (90)\nwait (0.01) seconds\nwait until <(Level) = [8]>\ngo to x: (100) y: (29)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait (0.4) seconds\ngo to x: (135) y: (77)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait (1.2) seconds\ngo to x: (195) y: (29)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\n\n@InvisiTrap\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    set [ghost v] effect to (100)\n    if <<touching (player v)?> or <(distance to [player v]) < [15]>> then\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n        wait (0.5) seconds\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n    end\nend\n\nwhen flag clicked\nhide\nset size to (100) %\ngo to x: (900) y: (900)\nset [ghost v] effect to (0)\nforever\n    go to [front v] layer\n    switch costume to (costume1 v)\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nset [clonetype v] to [0]\nhide\nwait (0.5) seconds\nwait until <(Level) = [3]>\nset [clonetype v] to [1]\ngo to x: (-160) y: (-130)\ncreate clone of (_myself_ v)\nchange x by (24)\ncreate clone of (_myself_ v)\ngo to x: (210) y: (126)\ncreate clone of (_myself_ v)\nchange x by (24)\ncreate clone of (_myself_ v)\nwait until <(Level) = [4]>\nset [clonetype v] to [2]\ngo to x: (-136) y: (-23)\ncreate clone of (_myself_ v)\nchange x by (-24)\ncreate clone of (_myself_ v)\ngo to x: (76) y: (38)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nwait until <(Level) = [6]>\nset [clonetype v] to [1]\ngo to x: (-36) y: (-106)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nwait until <(Level) = [8]>\nset [clonetype v] to [2]\ngo to x: (-137) y: (-83)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\nchange y by (24)\ncreate clone of (_myself_ v)\ngo to x: (-41) y: (-130)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nif <(CloneType) = [1]> then\n    wait until <<<(Level) = [1]> or <(Level) = [2]>> or <<(Level) = [4]> or <<(Level) = [7]> or < or < or >>>>>\n    delete this clone\nelse\n    if <(CloneType) = [2]> then\n        wait until <<<(Level) = [1]> or <(Level) = [2]>> or <<(Level) = [5]> or <<(Level) = [9]> or < or < or >>>>>\n        delete this clone\n    else\n    end\nend\n\nwhen I start as a clone\nforever\n    turn right (5) degrees\nend\n\n@Moon\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    show\n    go [backward v] (99) layers\n    go to x: (240) y: (125)\n    glide (60) secs to x: (0) y: (165)\n    glide (60) secs to x: (-255) y: (125)\n    hide\n    wait (2) seconds\nend\n\n@Star\n\nwhen flag clicked\n\nwhen I start as a clone\n\nhide\nrepeat (50)\n    go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180))\n    create clone of (_myself_ v)\nend\n\nshow\nforever\n    go [backward v] (99) layers\n    go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180))\n    wait (pick random (0) to (6)) seconds\n    show\n    wait (pick random (1) to (25)) seconds\nend\n\n@Thumbnail\n\nset [ghost v] effect to (0)\n\nset size to (1600) %\n\nwhen flag clicked\nset size to (1600) %\ngo to [front v] layer\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (25)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    go to x: (-35) y: (60)\n    set size to (150) %\n    switch costume to (mountain background v)\n    go [backward v] (9999) layers\n    set [brightness v] effect to (7)\n    set [ghost v] effect to (3)\nend\n\n@Sprite2\n\nwhen flag clicked\nset size to (600) %\ngo to x: (0) y: (0)\nforever\n    hide\nend\n\nwhen flag clicked\nhide\nwait (0.2) seconds\nwait until <(Level) = [2]>\ngo to x: (-138) y: (-126)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\ngo to x: (18) y: (-114)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nrepeat (5)\n    change x by (12)\n    create clone of (_myself_ v)\nend\nwait until <(Level) = [3]>\ngo to x: (233) y: (-184)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\ngo to x: (78) y: (90)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [4]>\ngo to x: (114) y: (-90)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (-90)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [6]>\ngo to x: (-156) y: (42)\ncreate clone of (_myself_ v)\nchange x by (-12)\ncreate clone of (_myself_ v)\nwait until <(Level) = [8]>\ngo to x: (18) y: (-126)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ncreate clone of (_myself_ v)\nchange x by (12)\ngo to x: (198) y: (-66)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\nchange y by (12)\ncreate clone of (_myself_ v)\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    if <(Level) = [1]> then\n        hide\n        delete this clone\n    else\n        if <(Level) = [2]> then\n            show\n            wait until <(Level) = [3]>\n            delete this clone\n        else\n            if <(Level) = [3]> then\n                show\n                wait until <(Level) = [4]>\n                delete this clone\n            else\n                if <(Level) = [4]> then\n                    show\n                    wait until <(Level) = [5]>\n                    delete this clone\n                else\n                    if <(Level) = [5]> then\n                        show\n                        wait until <(Level) = [6]>\n                        delete this clone\n                    else\n                        if <(Level) = [6]> then\n                            show\n                            wait until <(Level) = [7]>\n                            delete this clone\n                        else\n                            if <(Level) = [7]> then\n                                show\n                                wait until <(Level) = [8]>\n                                delete this clone\n                            else\n                                if <(Level) = [8]> then\n                                    show\n                                    wait until <(Level) = [9]>\n                                    delete this clone\n                                else\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nshow\n\nwhen I start as a clone\nforever\n    if <(distance to [player v]) < [15]> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (100)\n    end\nend\n\n@Troll Terrain\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nswitch costume to (costume2 v)\nset size to (600) %\ngo to x: (0) y: (0)\nset [clone v] to [1]\ncreate clone of (_myself_ v)\nset [clone v] to [2]\ncreate clone of (_myself_ v)\nset [clone v] to [3]\ncreate clone of (_myself_ v)\nforever\n    if <touching (player v)?> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\n    if <(Level) = [2]> then\n        switch costume to (costume2 v)\n    else\n        if <(Level) = [3]> then\n            switch costume to (costume3 v)\n        else\n            if <(Level) = [4]> then\n                switch costume to (costume5 v)\n            else\n                if <(Level) = [5]> then\n                    switch costume to (costume8 v)\n                else\n                    if <(Level) = [6]> then\n                        switch costume to (costume9 v)\n                    else\n                        if <(Level) = [7]> then\n                            switch costume to (costume12 v)\n                        else\n                            if <(Level) = [8]> then\n                                switch costume to (costume13 v)\n                            else\n                                set [ghost v] effect to (100)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Clone) = [1]> then\n        if <(Level) = [3]> then\n            switch costume to (costume4 v)\n            if <touching (player v)?> then\n                set [ghost v] effect to (100)\n            else\n                set [ghost v] effect to (0)\n            end\n        else\n            if <(Level) = [4]> then\n                switch costume to (costume6 v)\n                if <touching (player v)?> then\n                    set [ghost v] effect to (100)\n                else\n                    set [ghost v] effect to (0)\n                end\n            else\n                if <(Level) = [5]> then\n                    switch costume to (costume10 v)\n                    if <touching (player v)?> then\n                        set [ghost v] effect to (100)\n                    else\n                        set [ghost v] effect to (0)\n                    end\n                else\n                    if <(Level) = [8]> then\n                        switch costume to (costume14 v)\n                        if <touching (player v)?> then\n                            set [ghost v] effect to (100)\n                        else\n                            set [ghost v] effect to (0)\n                        end\n                    else\n                        set [ghost v] effect to (100)\n                    end\n                end\n            end\n        end\n    else\n        if <(Clone) = [2]> then\n            if <(Level) = [4]> then\n                switch costume to (costume7 v)\n                if <touching (player v)?> then\n                    set [ghost v] effect to (100)\n                else\n                    set [ghost v] effect to (0)\n                end\n            else\n                if <(Level) = [6]> then\n                    switch costume to (costume11 v)\n                    if <touching (player v)?> then\n                        set [ghost v] effect to (100)\n                    else\n                        set [ghost v] effect to (0)\n                    end\n                else\n                    if <(Level) = [8]> then\n                        switch costume to (costume15 v)\n                        if <touching (player v)?> then\n                            set [ghost v] effect to (100)\n                        else\n                            set [ghost v] effect to (0)\n                        end\n                    else\n                        set [ghost v] effect to (100)\n                    end\n                end\n            end\n        else\n            if <(Clone) = [3]> then\n                if <(Level) = [8]> then\n                    switch costume to (costume16 v)\n                    if <touching (player v)?> then\n                        set [ghost v] effect to (100)\n                    else\n                        set [ghost v] effect to (0)\n                    end\n                else\n                    set [ghost v] effect to (100)\n                end\n            else\n            end\n        end\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nclear graphic effects\n\nwhen I receive [change v]\nclear graphic effects\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (0) y: (0)\ngo to [front v] layer\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nbroadcast (Next Level v)\nchange [level v] by (1)\nwait (0.5) seconds\ngo to [front v] layer\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nhide\n\nwhen I receive [before start v]\nclear graphic effects\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (0) y: (0)\ngo to [front v] layer\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nbroadcast (Start v)\nwait (0.5) seconds\ngo to [front v] layer\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nhide\n\nwhen I receive [done v]\nclear graphic effects\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (0) y: (0)\ngo to [front v] layer\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\n\n@Sprite4\n\nwhen flag clicked\nset [clonetype v] to [0]\nset [wind v] to [0]\nhide\nwait (0.1) seconds\nwait until <(Level) = [5]>\nset [wind v] to [0.5]\nset [clonetype v] to [1]\nrepeat (20)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\nwait until <(Level) = [6]>\nset [wind v] to [-0.2]\nset [clonetype v] to [2]\nrepeat (12)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\nwait until <(Level) = [7]>\nset [wind v] to [1]\nset [clonetype v] to [1]\nrepeat (12)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\nwait until <(Level) = [8]>\nset [wind v] to [0]\n\nwhen flag clicked\nhide\nwait (0.1) seconds\nwait until <(Level) = [5]>\nrepeat (20)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\nwait until <(Level) = [6]>\nrepeat (12)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\nwait until <(Level) = [7]>\nrepeat (12)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    if <(CloneType) = [1]> then\n        wait until <<(Level) = [6]> or <<(Level) = [8]> or <(Level) = []>>>\n        delete this clone\n    else\n        if <(CloneType) = [2]> then\n            wait until <<(Level) = [5]> or <<(Level) = [7]> or <(Level) = []>>>\n            delete this clone\n        else\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    show\n    set [ghost v] effect to (70)\n    if <(Level) = [5]> then\n        repeat until <(x position) > [238]>\n            change x by (pick random (2) to (4))\n        end\n        hide\n        set x to (-240)\n    end\n    if <(Level) = [6]> then\n        repeat until <(x position) < [-238]>\n            change x by (pick random (-1) to (-2))\n        end\n        hide\n        set x to (240)\n    end\n    if <(Level) = [7]> then\n        repeat until <(x position) > [238]>\n            change x by (pick random (6) to (8))\n        end\n        hide\n        set x to (-240)\n    end\nend\n\nwhen flag clicked\nhide\nwait (0.1) seconds\nwait until <(Level) = [5]>\nrepeat (20)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\nwait until <(Level) = [6]>\nrepeat (12)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\nwait until <(Level) = [7]>\nrepeat (12)\n    go to x: (pick random (-240) to (240)) y: (pick random (-175) to (175))\n    create clone of (_myself_ v)\nend\n\n@Sprite5\n\nwhen I receive [done v]\nwait (1) seconds\nstop [other scripts in sprite v]\nswitch costume to (costume10 v)\ngo to [front v] layer\ngo to x: (-15) y: (-3)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to [front v] layer\nshow\ngo to x: (-18) y: (118)\nforever\n    switch costume to (Level)\nend\n\n@Sprite6\n\nwhen flag clicked\nset [level v] to [1]\nwait (1e-06) seconds\nhide\ngo to x: (156) y: (-120)\nwait until <(Level) = [9]>\nset [brightness v] effect to (-50)\nshow\nbroadcast (END v)\n\n@Sprite7\n\nwhen flag clicked\nshow\nswitch costume to (left v)\ngo to x: (-235) y: (-88)\nswitch costume to (costume2 v)\nglide (5) secs to x: (23) y: (-88)\nwait (1) seconds\nswitch costume to (left v)\nglide (1) secs to x: (-15) y: (-88)\nswitch costume to (costume1 v)\nwait (1) seconds\nswitch costume to (costume3 v)\nwait (0.5) seconds\nswitch costume to (costume4 v)\nwait (0.5) seconds\nswitch costume to (costume5 v)\nwait (1.5) seconds\nswitch costume to (costume6 v)\nwait (0.3) seconds\nswitch costume to (costume7 v)\nwait (0.3) seconds\nswitch costume to (costume8 v)\nwait (1.5) seconds\nswitch costume to (costume9 v)\nwait (0.6) seconds\nglide (7) secs to x: (235) y: (-88)\nhide\nbroadcast (Before Start v)\n\n@Sprite8\n\nwhen flag clicked\nshow\n\nwhen I receive [before start v]\nwait (0.5) seconds\nhide\n\n