Minecraft -A Platformer- End

Instructions: \n                                THIS IS JUST A REMIX\n\nPlease heart and star! This took a lot of time to make.

@Stage\n\nwhen flag clicked\nforever\n    play sound [C418 - Aria Math \(Minecraft Volume Beta\)3 v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nwait until <(level) = [10]>\nswitch backdrop to (backdrop6 v)\nwait until <(level) > [10]>\nswitch backdrop to (backdrop3 v)\nwait until <(level) > [17]>\nswitch backdrop to (backdrop4 v)\nwait until <(level) > [18]>\nswitch backdrop to (backdrop2 v)\n\nwait until <(level) = [16]>\nswitch backdrop to (backdrop5 v)\nwait until <(level) > [16]>\nswitch backdrop to (backdrop3 v)\n\n@player2\n\nwhen flag clicked\nshow\ngo to x: (-193) y: (-10)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.7)\n        point in direction (90)\n        next costume\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.7)\n        point in direction (-90)\n        next costume\n    end\n    change x by (Xv)\n    set [xv v] to ((Xv) * (0.9))\n    if <touching (earth v)?> then\n        change y by (0.5)\n        if <touching (earth v)?> then\n            change y by (0.5)\n            if <touching (earth v)?> then\n                change y by (0.5)\n                if <touching (earth v)?> then\n                    change y by (0.5)\n                    if <touching (earth v)?> then\n                        change y by (0.5)\n                        if <touching (earth v)?> then\n                            change y by (0.5)\n                            if <touching (earth v)?> then\n                                change y by (0.5)\n                                if <touching (earth v)?> then\n                                    change y by (0.5)\n                                    if <key (up arrow v) pressed?> then\n                                        switch costume to (idle/jump v)\n                                        if <[0] < (Xv)> then\n                                            set [xv v] to [-7]\n                                        else\n                                            set [xv v] to [7]\n                                        end\n                                        set [yv v] to [10]\n                                    else\n                                        set [xv v] to ((Xv) * (-1.3))\n                                        change x by (Xv)\n                                        set [xv v] to [0]\n                                        change x by ((Xv) / (5))\n                                    end\n                                    change y by (-4)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.5)\n    change y by (Yv)\n    if <touching (earth v)?> then\n        set [yv v] to ((Yv) * (-0.25))\n        change y by (Yv)\n        if <touching (earth v)?> then\n            change y by (Yv)\n            if <touching (earth v)?> then\n                change y by (Yv)\n                if <touching (earth v)?> then\n                    change y by (Yv)\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching (earth v)?>> then\n        switch costume to (idle/jump v)\n        set [yv v] to [7]\n    end\n    change y by (1)\n    if <touching (danger v)?> then\n        set [ghost v] effect to (34)\n        start sound (pick random (1) to (3))\n        broadcast (oof v)\n        wait (0.1) seconds\n        go to x: (-193) y: (-10)\n        set [ghost v] effect to (100)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <touching (wtr v)?> then\n        set [touching ground? v] to [1]\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [4]\n        else\n            set [yv v] to [-2.5]\n        end\n    else\n        set [touching ground? v] to [0]\n    end\nend\n\nchange [x v] by (0.5)\n\nchange [x v] by (-0.5)\n\nif <(Xv) > [0]> then\n    set [xv v] to [-5]\nelse\n    set [xv v] to [5]\nend\nset [yv v] to [12]\n\nwhen flag clicked\nset [ghost v] effect to (100)\nset [xv v] to [0]\nset [yv v] to [0]\nshow\n\nshow\n\nwhen I receive [next v]\ngo to x: (-193) y: (-10)\n\nwhen I receive [restart v]\ngo to x: (-193) y: (-10)\n\nwhen I receive [end end v]\nstop [other scripts in sprite v]\n\nturn right (15) degrees\n\n@clouds\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to [back v] layer\nset [ghost v] effect to (25)\nshow\ngo to x: (232) y: (140)\ncreate clone of (_myself_ v)\nforever\n    forever\n        change x by (-0.6)\n        if <(x position) < [-250]> then\n            go to x: (180) y: (120)\n        end\n    end\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (25)\ngo to x: (232) y: (140)\nforever\n    change x by (-0.5)\n    if <(backdrop [number v]) = [3]> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\n    if <(x position) < [-250]> then\n        go to x: (180) y: (120)\n    end\n    if <<(backdrop [number v]) = [3]> or <(backdrop [number v]) = [4]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\nswitch costume to (2 v)\nshow\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\nwhen backdrop switches to [backdrop2 v]\nswitch costume to (1 v)\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [2]> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (25)\n    end\nend\n\n@earth\n\nwhen flag clicked\nset [level v] to [18]\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(level) > [19]> then\n        broadcast (end v)\n        stop [this script v]\n    end\nend\n\n@end\n\nwhen flag clicked\nset [level v] to [1]\nset [ghost v] effect to (100)\nforever\n    if <touching (player2 v)?> then\n        change [level v] by (1)\n        broadcast (next v)\n    end\nend\n\n@danger\n\nwhen flag clicked\nswitch costume to (costume3 v)\n\nwhen I receive [next v]\nnext costume\n\n@player1\n\ndefine Movement\n\nwhen flag clicked\nset size to (300) %\npoint in direction (90)\nswitch costume to (arm4 v)\nforever\n    go to (player2 v)\n    if <not <key (any v) pressed?>> then\n        switch costume to (arm4 v)\n    end\n    if <<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        switch costume to (costume4 v)\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (costume4 v)\n    end\n    if <(costume [name v]) = [extra]> then\n        switch costume to (arm4 v)\n    end\n    if <<key (down arrow v) pressed?> and <not <<key (up arrow v) pressed?> or <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>>>>> then\n        switch costume to (costume16 v)\n    end\nend\n\nsay [Hello!] for (2) seconds\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\n\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\n\nwhen flag clicked\nshow\nforever\n    if  then\n        point in direction (-90)\n        next costume\n    end\n    if  then\n        point in direction (90)\n        next costume\n    end\n    if <touching (earth v)?> then\n        set [touching ground? v] to [1]\n    else\n        set [touching ground? v] to [0]\n    end\nend\n\nchange [xv v] by (-1)\n\nchange [xv v] by (1)\n\n\n\nstart sound (pick random (1) to (3))\n\nhide\nwait (0.1) seconds\nshow\n\nwhen I receive [oof v]\nswitch costume to (costume8 v)\nhide\nwait (0.2) seconds\nshow\n\n@sign\n\nwhen flag clicked\nshow\nforever\n    if <touching (player2 v)?> then\n        say [Welcome! Arrow keys to move, try not to touch lava, cacti ,hostile mobs or falling out of the world in the end! Good luck!]\n    else\n        say []\n    end\nend\n\nwhen I receive [next v]\nhide\n\n@restart\n\nwhen flag clicked\nshow\ngo to [back v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (105) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (restart v)\n\nwhen I receive [end end v]\nhide\n\n@wtr\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (25)\nswitch costume to (costume8 v)\n\nwhen I receive [next v]\nnext costume\n\n@untouchable\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\n@villager\n\nwhen flag clicked\nhide\nset rotation style [left-right v]\nforever\n    point towards (player2 v)\n    if <touching (player2 v)?> then\n        say [Good job! The chest behind me contains your prize! You deserve it for traveling this far!]\n    else\n        say []\n    end\nend\n\nwhen I receive [end v]\nshow\n\nwhen I receive [end end v]\nsay []\nstop [other scripts in sprite v]\n\n@chest\n\nwhen flag clicked\nhide\nforever\n    if <touching (player2 v)?> then\n        broadcast (end end v)\n    end\nend\n\nwhen I receive [end v]\nshow\n\n@ending\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\n\nwhen I receive [end end v]\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n@Warning\n\nwhen flag clicked\nset [ghost v] effect to (100000)\ngo to [back v] layer\nrepeat (40)\n    change [ghost v] effect by (-3)\nend\nwait (3) seconds\nrepeat (40)\n    change [ghost v] effect by (3)\nend\n\n@music\n\nwhen flag clicked\nforever\n    play sound [C418 - Sweden \(Caution & Crisis Remix\) v] until done\nend\n\n