Minecraft: Platformer Edition 

Instructions: wasd or tap to move\nCollect all the coins to move onto the next level \nSpace or tap to jump

@Stage\n\nwhen I receive [changebackdrop v]\nif <(LEVEL) = [1]> then\n    switch backdrop to (newbackground2048x2 v)\nend\nif <(LEVEL) = [2]> then\n    switch backdrop to (newbackground2048x2 v)\n    broadcast (2 v)\nend\nif <(LEVEL) = [3]> then\n    switch backdrop to (backdrop1 v)\n    broadcast (4 v)\nend\nif <(LEVEL) = [4]> then\n    switch backdrop to (newbackground2048x2 v)\n    broadcast (5 v)\nend\nif <(LEVEL) = [5]> then\n    switch backdrop to (newbackground2048x2 v)\nend\nif <(LEVEL) = [6]> then\n    switch backdrop to (backdrop_2 v)\n    broadcast (3 v)\nend\n\nwhen [m v] key pressed\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [, ] ((mouse y) + (SCROLL Y))))\nshow variable [mouse v]\n\nwhen flag clicked\nset [level v] to [1]\nswitch backdrop to (newbackground2048x2 v)\nforever\n    set volume to (30) %\n    play sound [C418 - Wet Hands - Minecraft Volume Alpha v] until done\nend\n\n@You Win\n\nwhen I receive [start game v]\ngo to x: (-6) y: (120)\nwait (2) seconds\nwait until <(LEVEL) = [6]>\nwait (1) seconds\nshow\nhide variable [level v]\nbroadcast (Stop Timer v)\n\nwhen I receive [start game v]\nset [timer v] to [0]\nreset timer\nforever\n    set [timer v] to (timer)\nend\n\nwhen I receive [stop timer v]\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\nhide variable [timer v]\nhide variable [deaths v]\nhide variable [fps v]\n\n@Player\n\nwhen I receive [start game v]\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [activate rock trap v] to [N]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [Win]> then\n        Game-Win\n    else\n        Game-Die\n        set [activate rock trap v] to [N]\n        change [deaths v] by (1)\n    end\nend\n\ndefine Game On\nset [x v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [sx v] to [0]\nset [exit v] to []\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset size to (50) %\nset [ghost v] effect to (0)\nshow\n\ndefine Tick\nif <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    broadcast (Move v)\n    point in direction (-90)\n    change [sx v] by (-2)\nend\nif <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    broadcast (Move v)\n    point in direction (90)\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player X By (round (sx))\nend\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <(In Air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player Y By (sy)\nTrap-Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [Die]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [Die]\nend\nif <(ACTIVATE ROCK TRAP) = [N]> then\n    if <<(LEVEL) = [3]> and <(x) > [590]>> then\n        set [activate rock trap v] to [Y]\n    end\n    if <<(LEVEL) = [5]> and <(x) > [170]>> then\n        set [activate rock trap v] to [Y]\n    end\nend\n\ndefine Change Player Y By (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player X By (sx)\nchange [x v] by (sx)\nchange [in air v] by (1)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\n    repeat until <not <touching (platforms2 v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (0)\n        else\n            change [x v] by (0)\n        end\n        Position\n    end\nend\n\ndefine Game-Die\nset [exit v] to []\nswitch costume to (costume4 v)\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Trap-Die\nif <touching (danger v)?> then\n    set [exit v] to [Die]\n    start sound [crunch v]\nend\n\ndefine Game-Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nset [activate rock trap v] to [N]\nwait (1) seconds\nbroadcast (changeBackdrop v) and wait\n\nwhen I receive [player die v]\nset [exit v] to [Die]\n\nwhen [timer v] > (STOP TIMER)\nhide\n\nwhen I receive [start game v]\nswitch costume to (costume1 v)\nset [deaths v] to [0]\nbroadcast (changeBackdrop v) and wait\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [bounce v]\nset [sy v] to [30]\nChange Player Y By (sy)\n\nwhen I receive [3 v]\nswitch costume to (costume1 v)\n\nwhen I receive [move v]\nrepeat (3)\n    next costume\n    wait (0.8) seconds\nend\n\nwhen flag clicked\nforever\n    if <touching (saw v)?> then\n        start sound [crunch v]\n        wait (2) seconds\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if  then\n        if <key (w v) pressed?> then\n            next costume\n            wait (0.1) seconds\n        end\n        if <key (a v) pressed?> then\n            next costume\n            wait (0.1) seconds\n        end\n        if <key (d v) pressed?> then\n            next costume\n            wait (0.1) seconds\n        end\n        if <key (s v) pressed?> then\n            switch costume to (costume1 v)\n        end\n    end\nend\n\nwhen flag clicked\n\ndefine block name\n\n@text\n\nwait (1.5) seconds\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\nbroadcast (1 v)\n\nwhen I receive [tick v]\ngo to [front v] layer\n\nset [text speaking? v] to [n]\n\ndefine type (text) at x: (x) y: (y) size: (size) brightness: (brightness)\nset [text speaking? v] to [y]\nclear graphic effects\nswitch costume to (yellow paper \(guide\) v)\nset y to (-130)\nset x to (0)\nset size to (50) %\nshow\ngo to [front v] layer\nrepeat (20)\n    change size by (((225) - (size)) / (4))\nend\nset [# v] to [0]\nset [brightness v] to (brightness)\nset [x v] to (x)\nset [y v] to (y)\nset [spacingx v] to ((size) / (14))\nset [spacingy v] to ((size) / (11))\nrepeat (length of (text))\n    change [# v] by (1)\n    if <(letter (#) of (text)) > []> then\n        set [asset v] to (letter (#) of (text))\n    else\n        set [asset v] to []\n    end\n    create clone of (_myself_ v)\n    if <((#) mod (2)) = [0]> then\n        start sound [text2 v]\n    end\nend\nset [# v] to [0]\nrepeat until <<mouse down?> or <key (space v) pressed?>>\n    go to [front v] layer\n    if <not <(EXIT) = [wg]>> then\n        broadcast (tick v) and wait\n    else\n        broadcast (gf v)\n    end\nend\nwait until <not <<mouse down?> or <key (space v) pressed?>>>\nbroadcast (Clear v) and wait\nhide\n\nwhen I receive [clear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\ndelete this clone\n\nwhen I start as a clone\nset x to (x)\nset y to (y)\nswitch costume to (asset)\nif <(costume [number v]) = [56]> then\n    switch costume to ( v)\n    delete this clone\nend\nset [brightness v] effect to (brightness)\nchange x by (-42)\nchange y by (22)\nset [org. x v] to (x position)\nclone setup\nshow\ngo to [front v] layer\n\ndefine clone setup\nrepeat (#)\n    change x by (spacingX)\n    if <(x position) > [190]> then\n        set x to ((org. x) + (spacingX))\n        change y by ((0) - (spacingY))\n    end\nend\ngo to [front v] layer\n\ntype [asfasfsfs!] at x: [-170] y: [-155] size: [190] brightness: []\n\nwhen I receive [green flag v]\nhide\nbroadcast (1 v)\n\nwhen I receive [1 v]\ntype [hi,i am steve \(space or click\)] at x: [-170] y: [-152] size: [190] brightness: []\ntype [i need to find my house!] at x: [-170] y: [-145] size: [190] brightness: []\ntype [lets go!] at x: [-170] y: [-145] size: [190] brightness: []\nset [text speaking? v] to [n]\nbroadcast (moosic v)\n\nwhen I receive [2 v]\nwait (0.8) seconds\ntype [yikes,that saw is bad news!] at x: [-170] y: [-152] size: [190] brightness: []\nset [text speaking? v] to [n]\n\ndefine render (text) at x: (x) y: (y) brightness: (brightness) size: (size)\nclear graphic effects\nswitch costume to (text box v)\nset y to (x)\nset x to (y)\nset size to (50) %\nshow\ngo to [front v] layer\nset size to (300) %\nset [# v] to [0]\nset [brightness v] to (brightness)\nset [x v] to (x)\nset [y v] to (y)\nset [spacingx v] to ((size) / (17))\nset [spacingy v] to ((size) / (11))\nrepeat (length of (text))\n    change [# v] by (1)\n    if <(letter (#) of (text)) > []> then\n        set [asset v] to (letter (#) of (text))\n    else\n        set [asset v] to []\n    end\n    create clone of (_myself_ v)\nend\nset [# v] to [0]\n\nwhen I receive [level compete! v]\nwait (0.8) seconds\nrender (join [score:] (SCORE)) at x: [-55] y: [30] brightness: [0] size: [285]\n\nwhen I receive [3 v]\ntype [yay were home!] at x: [-170] y: [-152] size: [190] brightness: []\ntype [thank you] at x: [-170] y: [-145] size: [190] brightness: []\nset [text speaking? v] to [n]\n\nwhen I receive [4 v]\nwait (1.5) seconds\ntype [wow, very cool] at x: [-170] y: [-152] size: [190] brightness: []\nset [text speaking? v] to [n]\n\ntype [_2_wer] at x: [-170] y: [-152] size: [190] brightness: []\nset [text speaking? v] to [n]\n\nwhen I receive [5 v]\ntype [well looks at that, its bob!] at x: [-170] y: [-145] size: [190] brightness: []\ntype [don’t touch him, he does not like people touching him!] at x: [-170] y: [-152] size: [190] brightness: []\nset [text speaking? v] to [n]\n\nwhen I receive [gf v]\ngo to [front v] layer\n\nwhen I receive [7 v]\n\nwait (2) seconds\ntype [\(captain clown nose!\)] at x: [-170] y: [-152] size: [190] brightness: []\ntype [\(if you can defeat me,\)] at x: [-170] y: [-152] size: [190] brightness: []\ntype [\(you can have my boat.\)] at x: [-170] y: [-152] size: [190] brightness: []\ntype [\(sincerely, mr. crab\)] at x: [-170] y: [-152] size: [190] brightness: []\nset [text speaking? v] to [n]\n\n@Trampoline\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [360] y: [-35]\nend\nif <(LEVEL) = [3]> then\n    Clone at x: [539] y: [-75]\nend\nif <(LEVEL) = [4]> then\n    Clone at x: [300] y: [-40]\nend\nif <(LEVEL) = [5]> then\n    Clone at x: [250] y: [-50]\n    Clone at x: [890] y: [74]\n    Clone at x: [1075] y: [220]\nend\nset [x v] to [-999999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (springboardup v)\ncreate clone of (_myself_ v)\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        broadcast (Bounce v)\n        start sound [boing v]\n        repeat (2)\n            next costume\n            wait (0.1) seconds\n        end\n        switch costume to (springboarddown2 v)\n        wait (0.1) seconds\n        next costume\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [forward v] (99) layers\nhide\nset [stop timer v] to [0.1]\nforever\n    set [stop timer v] to ((timer) + (0.1))\nend\n\nwhen [timer v] > (STOP TIMER)\nhide variable [level v]\nhide variable [timer v]\nhide variable [deaths v]\ngo to [front v] layer\ngo to x: (0) y: (300)\nshow\nglide (0.5) secs to x: (0) y: (0)\n\nwhen I receive [start game v]\nshow variable [level v]\nshow variable [deaths v]\nshow variable [timer v]\n\n@Words\n\nwhen flag clicked\nset size to (0) %\ngo to x: (-6) y: (70)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (30)\n    else\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen I receive [start game v]\nhide\n\n@Play\n\nwhen flag clicked\nset size to (0) %\ngo to x: (0) y: (-90)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (30)\n    else\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (-10)\n    end\nend\n\nwhen flag clicked\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nstart sound [pop v]\nhide\nbroadcast (Start Game v)\nstop [this script v]\n\n@Exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(costume [name v]) = [Open Portal]> and <touching (player v)?>> then\n    start sound [portal v]\n    set [exit v] to [Win]\nend\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) < [6]> then\n    if <(LEVEL) = [1]> then\n        switch costume to (close portal v)\n        Clone at x: [1110] y: [-5]\n    end\n    if <(LEVEL) = [2]> then\n        switch costume to (close portal v)\n        Clone at x: [709] y: [541]\n    end\n    if <(LEVEL) = [3]> then\n        switch costume to (close portal v)\n        Clone at x: [1235] y: [150]\n    end\n    if <(LEVEL) = [4]> then\n        switch costume to (close portal v)\n        Clone at x: [990] y: [50]\n    end\n    if <(LEVEL) = [5]> then\n        switch costume to (close portal v)\n        Clone at x: [2480] y: [360]\n    end\nelse\n    set [x v] to [-9999999999]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [open portal v]\nswitch costume to (open portal v)\n\n@Colectables\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    change [collected v] by (1)\n    start sound [collect v]\n    if <(COLLECTED) = (COINS)> then\n        broadcast (Open Portal v)\n    end\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [coins v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [-170] y: [10]\n    Clone at x: [100] y: [40]\n    Clone at x: [311] y: [60]\n    Clone at x: [611] y: [20]\n    Clone at x: [611] y: [104]\n    Clone at x: [730] y: [50]\n    Clone at x: [1025] y: [-20]\nend\nif <(LEVEL) = [2]> then\n    Clone at x: [-79] y: [-76]\n    Clone at x: [166] y: [232]\n    Clone at x: [226] y: [232]\n    Clone at x: [191] y: [270]\n    Clone at x: [428] y: [339]\n    Clone at x: [543] y: [396]\n    Clone at x: [635] y: [481]\nend\nif <(LEVEL) = [3]> then\n    Clone at x: [-75] y: [0]\n    Clone at x: [56] y: [-65]\n    Clone at x: [250] y: [-10]\n    Clone at x: [685] y: [20]\n    Clone at x: [910] y: [-60]\n    Clone at x: [988] y: [60]\n    Clone at x: [1120] y: [168]\nend\nif <(LEVEL) = [4]> then\n    Clone at x: [-175] y: [5]\n    Clone at x: [80] y: [40]\n    Clone at x: [550] y: [75]\n    Clone at x: [715] y: [195]\n    Clone at x: [815] y: [90]\n    Clone at x: [910] y: [90]\nend\nif <(LEVEL) = [5]> then\n    Clone at x: [-90] y: [0]\n    Clone at x: [370] y: [220]\n    Clone at x: [340] y: [-35]\n    Clone at x: [810] y: [130]\n    Clone at x: [1470] y: [460]\n    Clone at x: [1920] y: [530]\n    Clone at x: [2295] y: [480]\nend\nset [x v] to [-999999999]\n\nClone at x: [370] y: [60]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    next costume\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [coins v] by (1)\nset size to (20) %\ncreate clone of (_myself_ v)\n\nwhen flag clicked\n\nforever\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (level 6 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (level 2 1 v)\n    Clone at x: [150] y: [200]\n    Clone at x: [360] y: [100]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (level 3 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (level 4 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (level 5 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [145]\n    Clone at x: [360] y: [200]\n    Clone at x: [360] y: [100]\n    Clone at x: [360] y: [50]\nend\nif <(LEVEL) = [6]> then\n    switch costume to (level 6 2 v)\n    hide variable [deaths v]\n    hide variable [timer v]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nset [level v] to [6]\n\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (level 2 1 v)\n    Clone at x: [150] y: [200]\n    Clone at x: [360] y: [100]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (level 3 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (level 4 1 v)\n    Clone at x: [360] y: [0]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (level 5 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [145]\n    Clone at x: [360] y: [200]\n    Clone at x: [360] y: [100]\n    Clone at x: [360] y: [50]\nend\nif <(LEVEL) = [6]> then\n    switch costume to (level 6 1 v)\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nset [level v] to [6]\n\nset [level v] to [5]\n\nClone at x: [360] y: [0]\n\n@Saw\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set size to (50) %\n    go to [back v] layer\n    turn right (12) degrees\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<touching (player v)?> and <(PLAYER DYING) = [N]>> then\n    set [player dying v] to [Y]\n    broadcast (Player Die v) and wait\n    set [player dying v] to [N]\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (saw1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [player dying v] to [N]\nif <(LEVEL) = [2]> then\n    switch costume to (saw v)\n    Clone at x: [65] y: [130]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (saw v)\nend\nif <(LEVEL) = [4]> then\n    switch costume to (saw v)\n    Clone at x: [915] y: [-20]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (saw v)\n    Clone at x: [800] y: [70]\nend\nset [x v] to [-999999999]\n\nClone at x: [830] y: [70]\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nClone at x: [-63] y: [-85]\nClone at x: [1128] y: [85]\n\n@villager\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set size to (20) %\n    go to [back v] layer\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<touching (player v)?> and <(PLAYER DYING) = [N]>> then\n    start sound [No! v]\n    next costume\n    wait (1) seconds\n    next costume\n    set [player dying v] to [Y]\n    broadcast (Player Die v) and wait\n    set [player dying v] to [N]\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (saw1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [player dying v] to [N]\nif <(LEVEL) = [4]> then\n    switch costume to (picture1 v)\n    point in direction (90)\n    Clone at x: [360] y: [-33]\nend\nset [x v] to [-999999999]\n\npoint towards (player v)\n\nClone at x: [830] y: [70]\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nClone at x: [-63] y: [-85]\nClone at x: [1128] y: [85]\n\n@tree\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set size to (50) %\n    go to [back v] layer\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (saw1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [player dying v] to [N]\nif <(LEVEL) = [1]> then\n    switch costume to (picture1 v)\n    Clone at x: [92] y: [-33]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (picture1 v)\n    Clone at x: [-151] y: [74]\nend\nset [x v] to [-999999999]\nset [x v] to [-999999999]\n\nClone at x: [830] y: [70]\n\nwhen I start as a clone\nforever\n    wait (1) seconds\n    next costume\nend\n\nClone at x: [-63] y: [-85]\nClone at x: [1128] y: [85]\n\nset [level v] to [4]\n\nnext costume\nwait (1) seconds\nnext costume\nset [player dying v] to [Y]\nbroadcast (Player Die v) and wait\nset [player dying v] to [N]\n\nstart sound [No! v]\n\n@villager2\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set size to (20) %\n    go to [back v] layer\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<touching (player v)?> and <(PLAYER DYING) = [N]>> then\n    start sound [No! v]\n    next costume\n    wait (1) seconds\n    next costume\n    set [player dying v] to [Y]\n    broadcast (Player Die v) and wait\n    set [player dying v] to [N]\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (saw1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [player dying v] to [N]\nif <(LEVEL) = [5]> then\n    switch costume to (picture1 v)\n    point in direction (90)\n    Clone at x: [-189] y: [-43]\nend\nset [x v] to [-999999999]\n\nClone at x: [830] y: [70]\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nClone at x: [-63] y: [-85]\nClone at x: [1128] y: [85]\n\n@house\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set size to (100) %\n    go to [back v] layer\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (saw1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [player dying v] to [N]\nif <(LEVEL) = [6]> then\n    switch costume to (tree3 v)\n    Clone at x: [0] y: [-45]\nend\nset [x v] to [-999999999]\nset [x v] to [-999999999]\n\nClone at x: [830] y: [70]\n\nwhen I start as a clone\nforever\n    wait (1) seconds\n    next costume\nend\n\nClone at x: [-63] y: [-85]\nClone at x: [1128] y: [85]\n\nset [level v] to [4]\n\nnext costume\nwait (1) seconds\nnext costume\nset [player dying v] to [Y]\nbroadcast (Player Die v) and wait\nset [player dying v] to [N]\n\nstart sound [No! v]\n\n@Platforms2\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (level 6 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (level 2 1 v)\n    Clone at x: [150] y: [200]\n    Clone at x: [360] y: [100]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nset [level v] to [6]\n\n