MINECRAFT | a platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [TheFatRat - Infinite Power! v] until done\nend\n\n@Player\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\npoint in direction (90)\ngo to x: (-200) y: (-45)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <[0] < (mouse x)>>> then\n        change [xv v] by (0.85)\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [0]>>> then\n        change [xv v] by (-0.85)\n        point in direction (-90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <[0] < (mouse y)>>> then\n                                if <(Xv) > [0]> then\n                                    start sound [kick v]\n                                    set [xv v] to [-5]\n                                else\n                                    start sound [kick v]\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [yv v] to [-10]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <[0] < (mouse y)>>> then\n            start sound [jump v]\n            set [yv v] to [11.5]\n        end\n    end\n    change y by (1)\n    hide variable [yv v]\n    hide variable [xv v]\n    hide variable [stage v]\n    if <[220] < (x position)> then\n        broadcast (next v)\n        go to x: (-200) y: (-45)\n    end\n    if <<touching (zombie v)?> or <(y position) < [-170]>> then\n        start sound [damage v]\n        broadcast (damage v)\n        go to x: (-200) y: (-45)\n    end\nend\n\n@ground\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nset [stage v] to [1]\n\nwhen I receive [next v]\nnext costume\nchange [stage v] by (1)\n\n@zombie\n\nwhen flag clicked\nhide\ngo to [back v] layer\nforever\n    if <(stage) = [3]> then\n        show\n        switch costume to (1 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [4]> then\n        show\n        switch costume to (2 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [5]> then\n        hide\n    end\n    if <(stage) = [6]> then\n        show\n        switch costume to (3 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [7]> then\n        hide\n    end\n    if <(stage) = [8]> then\n        show\n        switch costume to (4 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [9]> then\n        show\n        switch costume to (5 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [10]> then\n        show\n        switch costume to (6 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [11]> then\n        show\n        switch costume to (7 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [12]> then\n        hide\n    end\n    if <(stage) = [13]> then\n        show\n        switch costume to (8 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [14]> then\n        show\n        switch costume to (9 v)\n        go to x: (0) y: (0)\n    end\n    if <(stage) = [15]> then\n        hide\n    end\nend\n\n@title\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\n\n@circle\n\nwhen flag clicked\nhide\ngo to x: (-255) y: (125)\nset [ghost v] effect to (100)\nforever\n    create clone of (_myself_ v)\n    wait (0.09) seconds\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\ngo to x: (pick random (-208) to (208)) y: (-208)\nset [ghost v] effect to (pick random (50) to (95))\nset size to (pick random (50) to (150)) %\nrepeat (100)\n    change y by (5)\nend\n\nwhen I start as a clone\nif <(size) > [100]> then\n    wait (1) seconds\nelse\n    wait (1.5) seconds\nend\nrepeat (500)\n    change [ghost v] effect by (0.5)\nend\ndelete this clone\n\n@follow\n\nwhen flag clicked\nhide\nwait (7) seconds\nforever\n    show\n    go to [front v] layer\n    go to x: (306) y: (149)\n    glide (1.5) secs to x: (139) y: (149)\n    wait (1) seconds\n    glide (1.5) secs to x: (306) y: (149)\n    hide\n    wait (15) seconds\nend\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n