Mello // A Platformer #games

Instructions: Update 2: Hello, I think I have looked over the code and fixed the problem now. So in theory it should work. I have tested it and it does work. So if it continues to not work please don't hesitate to notify me. Thanks!\nUpdate : Hi I think scratch 3.0 broke the game..... I'll fix it soon Thanks @Solrocks and @Rainfall22 for pointing that out \nThis took me sooo long to make like a week nonstop of working on this well of course I did have time to rest but most of my spare time\nI worked on this.  OMG! Top loved ! Click the green flag to start the project up!\nMost instructions in the game but I will give u tips here:\n1. Every level is possible (  I know this is not a tip)\n2. To jump across the screen press left or right arrow with up arrow\n3. to fight press space\n4. You can only stand on the light green parts\nThat's about it.\n5. Do not touch water!!\nPlease love , favourite , remix ( But give credit) and follow

@Stage\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen backdrop switches to [3 v]\nbroadcast (red v)\n\nwhen backdrop switches to [5 v]\nbroadcast (key v)\n\nwhen backdrop switches to [7 v]\nbroadcast (orrange v)\n\nwhen I receive [start v]\nswitch backdrop to (begning, k? v)\n\nwhen flag clicked\nset [ghost v] effect to (0)\nswitch backdrop to (screen shot 2016-01-03 at 6.28.12 pm v)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.15) seconds\nend\nswitch backdrop to (intro v)\nclear graphic effects\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro2 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro3 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro4 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro5 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro6 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro7 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro8 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro9 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro10 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (intro11 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (beginning, k? v)\nbroadcast (start v)\n\nwhen flag clicked\nforever\n    play sound [Vexento - Tears of Love v] until done\nend\n\nwhen backdrop switches to [8 v]\nbroadcast (key2 v)\n\nwhen backdrop switches to [10 v]\nbroadcast (yellow v)\n\nwhen backdrop switches to [13 v]\nbroadcast (green v)\n\nwhen backdrop switches to [16 v]\nbroadcast (blue v)\n\nwhen backdrop switches to [20 v]\nbroadcast (purple v)\n\nwhen backdrop switches to [outro1 v]\nbroadcast (outro v)\n\nwhen I receive [outro v]\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (outro2 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (outro3 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (outro4 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (outro5 v)\nwait until <key (space v) pressed?>\nwait until <not <key (space v) pressed?>>\nswitch backdrop to (end! v)\n\nwhen backdrop switches to [end! v]\nstop [all v]\n\n@Sprite1\n\nwhen I receive [next level v]\ngo to x: (-196) y: (-100)\n\nwhen backdrop switches to [screen shot 2016-01-03 at 6.28.12 pm v]\nhide\n\nwhen [r v] key pressed\ngo to x: (-196) y: (-100)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\ngo to x: (-196) y: (-17)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000008)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#000008)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-196) y: (-100)\n    end\n    if <touching color (#99b2ff)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [10]\n        else\n            set [y v] to [-1]\n        end\n        if <key (down arrow v) pressed?> then\n            set [y v] to [-5]\n        end\n    end\n    if <touching color (#ff9400)?> then\n        set [y v] to [0]\n        set [x v] to [0]\n    end\n    if <touching color (#ffff00)?> then\n        set [y v] to [21]\n    end\nend\n\nwhen I receive [outro v]\nhide\n\nmove (10) steps\n\nif <touching color (#ff9400)?> then\n    set [y v] to [0]\n    set [x v] to [0]\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [screen shot 2016-01-03 at 6.28.12 pm v]\nhide\n\nwhen I receive [start v]\nshow\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (next level v)\n    end\n    if <(backdrop [name v]) = [beginning, k?]> then\n        go to x: (-128) y: (35)\n    end\n    if <(backdrop [name v]) = [2]> then\n        go to x: (51) y: (173)\n    end\n    if <(backdrop [name v]) = [3]> then\n        go to x: (-190) y: (152)\n    end\n    if <(backdrop [name v]) = [4]> then\n        go to x: (-198) y: (136)\n    end\n    if <(backdrop [name v]) = [5]> then\n        go to x: (195) y: (-114)\n    end\n    if <(backdrop [name v]) = [6]> then\n        go to x: (162) y: (149)\n    end\n    if <(backdrop [name v]) = [7]> then\n        go to x: (111) y: (82)\n    end\n    if <(backdrop [name v]) = [8]> then\n        go to x: (188) y: (110)\n    end\n    if <(backdrop [name v]) = [9]> then\n        go to x: (-129) y: (139)\n    end\n    if <(backdrop [name v]) = [10]> then\n        go to x: (180) y: (141)\n    end\n    if <(backdrop [name v]) = [11]> then\n        go to x: (200) y: (-108)\n    end\n    if <(backdrop [name v]) = [12]> then\n        go to x: (-165) y: (106)\n    end\n    if <(backdrop [name v]) = [13]> then\n        go to x: (-198) y: (125)\n    end\n    if <(backdrop [name v]) = [14]> then\n        go to x: (178) y: (-111)\n    end\n    if <(backdrop [name v]) = [15]> then\n        go to x: (0) y: (160)\n    end\n    if <(backdrop [name v]) = [16]> then\n        go to x: (192) y: (151)\n    end\n    if <(backdrop [name v]) = [17]> then\n        go to x: (190) y: (-111)\n    end\n    if <(backdrop [name v]) = [18]> then\n        go to x: (-56) y: (-114)\n    end\n    if <(backdrop [name v]) = [19]> then\n        go to x: (165) y: (-105)\n    end\n    if <(backdrop [name v]) = [20]> then\n        go to x: (222) y: (-115)\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\nbroadcast (yellow v)\n\nwhen I receive [outro v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\nforever\nend\n\nwhen I receive [red v]\nshow\ngo to x: (0) y: (-72)\nswitch costume to (red v)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.15) seconds\nend\nhide\nclear graphic effects\n\nwhen I receive [orrange v]\nshow\ngo to x: (0) y: (-72)\nswitch costume to (orange v)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.15) seconds\nend\nhide\nclear graphic effects\n\nwhen I receive [yellow v]\nshow\ngo to x: (0) y: (-72)\nswitch costume to (yellow v)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.15) seconds\nend\nhide\nclear graphic effects\n\nwhen I receive [green v]\nshow\ngo to x: (0) y: (-72)\nswitch costume to (green v)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.15) seconds\nend\nhide\nclear graphic effects\n\nwhen I receive [blue v]\nshow\ngo to x: (0) y: (-72)\nswitch costume to (blue v)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.15) seconds\nend\nhide\nclear graphic effects\n\nwhen I receive [purple v]\nshow\ngo to x: (0) y: (-72)\nswitch costume to (purple v)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.15) seconds\nend\nhide\nclear graphic effects\n\n@Sprite4\n\nwhen flag clicked\nhide\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (unlock v)\n        broadcast (unlock2 v)\n    end\nend\n\nwhen I receive [unlock v]\nhide\n\nwhen I receive [key v]\nshow\ngo to x: (176) y: (159)\n\nwhen I receive [key2 v]\nshow\ngo to x: (-186) y: (131)\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [unlock v]\nhide\n\nrepeat until \nend\n\nwhen I receive [key v]\nshow\ngo to x: (254) y: (-73)\n\nwhen I receive [key2 v]\nshow\ngo to x: (72) y: (88)\n\nwhen I receive [unlock2 v]\nhide\n\n@READD\n\nwhen flag clicked\nhide\n\n