Puzzle Platformer

Instructions: Use arrow keys to move\nIf this gets 20 views I will add more levels 14/04/16\nNew levels added 25/04/16\nNew levels added 01/06/16\nIf you have any ideas for more levels, please comment down below and tell me. Thanks :D\nThank you so much for getting up to 12 loves, 8 favorite and 68 VIEWS!!!! Thank you guys so much!\nI am going to add more levels soon\nBtw, if you press m to stop the music, the music buttons will stop working for some reason? If you really want music just click the green flag again and click on the music you want :)\nBtw the answer to level 11 is t

@Stage\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        switch backdrop to (1 v)\n    end\n    if <(Level) = [2]> then\n        switch backdrop to (2 v)\n    end\n    if <(Level) = [3]> then\n        switch backdrop to (3 v)\n    end\n    if <(Level) = [4]> then\n        switch backdrop to (4 v)\n    end\n    if <(Level) = [5]> then\n        switch backdrop to (5 v)\n    end\n    if <(Level) = [6]> then\n        switch backdrop to (6 v)\n    end\n    if <(Level) = [7]> then\n        switch backdrop to (7 v)\n    end\n    if <(Level) = [8]> then\n        switch backdrop to (8 v)\n    end\n    if <(Level) = [9]> then\n        switch backdrop to (9 v)\n    end\n    if <(Level) = [10]> then\n        switch backdrop to (10 v)\n    end\n    if <(Level) = [11]> then\n        switch backdrop to (11 v)\n    end\n    if <(Level) = [12]> then\n        switch backdrop to (12 v)\n    end\n    if <(Level) = [13]> then\n        switch backdrop to (13 v)\n    end\n    if <(Level) = [14]> then\n        switch backdrop to (14 v)\n    end\n    if <(Level) = [15]> then\n        switch backdrop to (15 v)\n    end\n    if <(Level) = [16]> then\n        switch backdrop to (16 v)\n    end\n    if <(Level) = [17]> then\n        switch backdrop to (17 v)\n    end\n    if <(Level) = [18]> then\n        switch backdrop to (18 v)\n    end\n    if <(Level) = [19]> then\n        switch backdrop to (19 v)\n    end\n    if <(Level) = [20]> then\n        switch backdrop to (20 v)\n    end\n    if <(Level) = [21]> then\n        switch backdrop to (21 v)\n    end\n    if <(Level) = [22]> then\n        switch backdrop to (22 v)\n    end\n    if <(Level) = [23]> then\n        switch backdrop to (23 v)\n    end\n    if <(Level) = [24]> then\n        switch backdrop to (24 v)\n    end\n    if <(Level) = [25]> then\n        switch backdrop to (25 v)\n    end\n    if <(Level) = [26]> then\n        switch backdrop to (26 v)\n    end\n    if <(Level) = [27]> then\n        switch backdrop to (27 v)\n    end\n    if <(Level) = [28]> then\n        switch backdrop to (28 v)\n    end\nend\n\nwhen [p v] key pressed\nchange [level v] by (1)\n\nwhen flag clicked\nforever\n    if <(Level) = [1000]> then\n        set [level v] to [19]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [29]> then\n        set [level v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [18]> then\n        set [level v] to [999]\n    end\nend\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    if <touching (portal 1 v)?> then\n        go to (portal 2 v)\n    end\n    if <touching (portal 6 v)?> then\n        go to (portal 9 v)\n    end\n    if <touching (portal 3 v)?> then\n        go to (portal 7 v)\n    end\n    if <touching (portal 4 v)?> then\n        go to (portal 8 v)\n    end\n    if <touching (portal 5 v)?> then\n        go to (portal 10 v)\n    end\nend\n\nwhen flag clicked\nshow\ngo to x: (-207) y: (-133)\nset rotation style [left-right v]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <not <touching color (#00ffff)?>> then\n        change [yv v] by (-1)\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            change [xv v] by (1)\n        end\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            change [xv v] by (-1)\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <key (up arrow v) pressed?> then\n        if <not <touching color (#99ffff)?>> then\n            if <touching color (#000000)?> then\n                set [yv v] to [15]\n            end\n        else\n            change [yv v] by (1)\n        end\n    end\n    if <touching color (#99ffff)?> then\n        change [yv v] by (-0.1)\n    else\n        if <touching color (#ff0000)?> then\n            go to x: (-207) y: (-133)\n        end\n        if <touching color (#eefffd)?> then\n            go to x: (-207) y: (-133)\n        end\n        if <touching color (#0a0a0a)?> then\n            go to x: (-207) y: (-133)\n        end\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        go to x: (-207) y: (-133)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ffff)?> then\n        if <key (up arrow v) pressed?> then\n            change y by (3)\n        end\n        if <key (down arrow v) pressed?> then\n            change y by (-3)\n        end\n        if <key (right arrow v) pressed?> then\n            change x by (3)\n        end\n        if <key (left arrow v) pressed?> then\n            change x by (-3)\n        end\n    end\nend\n\n@Portal\n\nwhen flag clicked\nshow\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\ngo to x: (224) y: (-127)\n\n@Sprite1\n\nwhen flag clicked\ngo [backward v] (10000) layers\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [5]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite2\n\nwhen [t v] key pressed\ngo to x: (10000000) y: (1000000000)\n\nwhen flag clicked\ngo to x: (39) y: (5)\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 1\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 2\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 3\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 4\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 5\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen [m v] key pressed\n\n@Portal 6\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 7\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 8\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 9\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n@Portal 10\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (39) y: (5)\n\nwhen flag clicked\nforever\n    if <<(Level) = [18]> or <(Level) = [999]>> then\n        show\n    else\n        hide\n    end\n    if <<(Level) = [18]> or <(Level) = [999]>> then\n        ask [What level is this?] and wait\n        if <(answer) = [18]> then\n            forever\n                hide\n            end\n        else\n            show\n        end\n    end\nend\n\n@Sprite4\n\nwhen this sprite clicked\nchange size by (-5)\nwait (0.1) seconds\nchange size by (5)\nforever\n    play sound [Alan Walker - Fade \[NCS Release\].mp3 v] until done\nend\n\nwhen [m v] key pressed\nforever\n    stop all sounds\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (-131) y: (8)\n\n@Sprite5\n\nwhen this sprite clicked\nchange size by (-5)\nwait (0.1) seconds\nchange size by (5)\nforever\n    play sound [Tobu - Candyland.mp3 v] until done\nend\n\nwhen [m v] key pressed\nforever\n    stop all sounds\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (108) y: (8)\n\n@Moving Object\n\nwhen flag clicked\ngo to x: (106) y: (-138)\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n    end\nend\n\n@Moving Object 2\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (-86) y: (-138)\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (-10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n        move (10) steps\n        wait (0.5) seconds\n    end\nend\n\n