Bloop

Instructions: You play as a little blue specimen named Bloop who is traveling through a dangerous world with lava, cliche bouncy mushrooms, disappearing blocks and more..... Can you make it to the end?\n\nFRONT PAGED! 8/5/14 Thanks so much :D\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (intro v)\nset [level v] to [0]\n\nwhen I receive [message1 v]\nswitch backdrop to (level 1 v)\nset [level v] to [1]\nforever\n    play sound [Still Alive - 8Bit\(1\) v] until done\nend\n\nwhen I receive [next level v]\nswitch backdrop to (level)\n\nwhen flag clicked\nbroadcast (message1 v)\n\n@Screens\n\nwhen flag clicked\nhide\n\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\nbroadcast (next level v)\n\n@ground\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [next level v]\nswitch costume to (level)\n\n@tileset\n\nwhen flag clicked\nhide\n\n@bloop\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\npoint in direction (90)\ngo to x: (-215) y: (-122)\nset [gravity v] to [0]\nforever\n    if <<touching (ground v)?> or <touching (magic v)?>> then\n        if <[0] < (gravity)> then\n            change y by ((0) - (gravity))\n        end\n        if <<touching (ground v)?> or <touching (magic v)?>> then\n            set [gravity v] to [0]\n            up\n            if <key (up arrow v) pressed?> then\n                set [gravity v] to [11]\n                start sound [jump v]\n            end\n        else\n            set [gravity v] to [-1]\n        end\n    else\n        change [gravity v] by (-1)\n    end\n    change y by (gravity)\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change x by (4)\n        change y by (10)\n        if <<touching (ground v)?> or <touching (magic v)?>> then\n            change x by (-4)\n        end\n        if <<touching (blue lock v)?> and <(blue key?) = [false]>> then\n            change x by (-4)\n        end\n        if <<touching (orange lock v)?> and <(orange key?) = [false]>> then\n            change x by (-4)\n        end\n        change y by (-10)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change x by (-4)\n        change y by (10)\n        if <<touching (ground v)?> or <touching (magic v)?>> then\n            change x by (4)\n        end\n        if <<touching (blue lock v)?> and <(blue key?) = [false]>> then\n            change x by (4)\n        end\n        if <<touching (orange lock v)?> and <(orange key?) = [false]>> then\n            change x by (4)\n        end\n        change y by (-10)\n    end\nend\n\ndefine up\nrepeat until <not <<touching (ground v)?> or <touching (magic v)?>>>\n    change y by (1)\nend\nchange y by (-1)\n\nwhen I receive [next level v]\nif <(level) = [2]> then\n    point in direction (90)\n    go to x: (-210) y: (-122)\nend\nif <(level) = [3]> then\n    point in direction (90)\n    go to x: (-209) y: (38)\nend\nif <(level) = [4]> then\n    point in direction (90)\n    go to x: (-208) y: (-123)\nend\nif <(level) = [5]> then\n    point in direction (90)\n    go to x: (-210) y: (121)\nend\nif <(level) = [6]> then\n    point in direction (90)\n    go to x: (-131) y: (-121)\nend\nif <(level) = [7]> then\n    point in direction (90)\n    go to x: (-173) y: (-122)\nend\nif <(level) = [8]> then\n    point in direction (90)\n    go to x: (-195) y: (-40)\nend\nif <(level) = [9]> then\n    point in direction (90)\n    go to x: (-202) y: (119)\nend\nif <(level) = [10]> then\n    point in direction (90)\n    go to x: (-215) y: (-122)\nend\nif <(level) = [11]> then\n    point in direction (90)\n    go to x: (-215) y: (-122)\nend\n\nwhen I receive [respawn v]\nif <(level) = [1]> then\n    point in direction (90)\n    go to x: (-215) y: (-122)\nend\nif <(level) = [2]> then\n    point in direction (90)\n    go to x: (-210) y: (-122)\nend\nif <(level) = [3]> then\n    point in direction (90)\n    go to x: (-209) y: (38)\nend\nif <(level) = [4]> then\n    point in direction (90)\n    go to x: (-208) y: (-123)\nend\nif <(level) = [5]> then\n    point in direction (90)\n    go to x: (-210) y: (121)\nend\nif <(level) = [6]> then\n    point in direction (90)\n    go to x: (-131) y: (-121)\nend\nif <(level) = [7]> then\n    point in direction (90)\n    go to x: (-173) y: (-122)\nend\nif <(level) = [8]> then\n    point in direction (90)\n    go to x: (-195) y: (-40)\nend\nif <(level) = [9]> then\n    point in direction (90)\n    go to x: (-202) y: (119)\nend\nif <(level) = [10]> then\n    point in direction (90)\n    go to x: (-215) y: (-122)\nend\nif <(level) = [11]> then\n    point in direction (90)\n    go to x: (-215) y: (-122)\nend\n\nwhen I receive [message1 v]\ngo to [front v] layer\nshow\nforever\n    if <touching (door v)?> then\n        broadcast (next level v)\n        change [level v] by (1)\n    end\n    if <<not <touching (portal 1 v)?>> and <not <touching (portal 2 v)?>>> then\n        set [portal? v] to [false]\n    end\n    if <<touching (portal 1 v)?> and <(portal?) = [false]>> then\n        set [portal? v] to [true]\n        go to (portal 2 v)\n    end\n    if <<touching (portal 2 v)?> and <(portal?) = [false]>> then\n        set [portal? v] to [true]\n        go to (portal 1 v)\n    end\nend\n\nwhen I receive [message1 v]\nforever\n    if <key (right arrow v) pressed?> then\n        next costume\n        wait (0.1) seconds\n        next costume\n        wait (0.1) seconds\n    end\n    if <key (left arrow v) pressed?> then\n        next costume\n        wait (0.1) seconds\n        next costume\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [message1 v]\nforever\n    if <<touching (hazards v)?> or <touching (hazard 2 v)?>> then\n        broadcast (respawn v)\n        start sound [hurt v]\n    end\nend\n\n@hazards\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nswitch costume to (level 1 v)\ngo to (ground v)\nshow\n\nwhen I receive [next level v]\nswitch costume to (level)\n\n@hazard 2\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(level) = [6]> then\n    show\n    go to x: (144) y: (44)\n    forever\n        glide (1) secs to x: (257) y: (44)\n        glide (1) secs to x: (144) y: (44)\n    end\nend\nif <(level) = [7]> then\n    hide\nend\nif <(level) = [10]> then\n    go to (ground v)\n    show\n    forever\n        glide (1) secs to x: (110) y: (0)\n        glide (1) secs to x: (0) y: (0)\n    end\nend\nif <(level) = [11]> then\n    hide\nend\n\n@bounce\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nswitch costume to (level 1 v)\ngo to (ground v)\nshow\nforever\n    if <touching (bloop v)?> then\n        set [gravity v] to [14]\n        start sound [jump v]\n    end\nend\n\nwhen I receive [next level v]\nswitch costume to (level)\n\n@magic\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(level) = [5]> then\n    switch costume to (level 5 v)\n    forever\n        show\n        wait (2) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        wait (2) seconds\n        set [ghost v] effect to (0)\n    end\nend\nif <(level) = [6]> then\n    hide\nend\nif <(level) = [7]> then\n    switch costume to (level 7 v)\n    forever\n        show\n        wait (2) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        wait (2) seconds\n        set [ghost v] effect to (0)\n    end\nend\nif <(level) = [8]> then\n    hide\nend\nif <(level) = [9]> then\n    switch costume to (level 9 v)\n    forever\n        show\n        wait (2) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        wait (2) seconds\n        set [ghost v] effect to (0)\n    end\nend\nif <(level) = [10]> then\n    hide\nend\n\n@door\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\ngo to x: (-15) y: (-118)\npoint in direction (90)\nshow\nforever\n    turn right (1) degrees\nend\n\nwhen I receive [next level v]\nif <(level) = [2]> then\n    show\n    go to x: (-220) y: (124)\nend\nif <(level) = [3]> then\n    show\n    go to x: (-169) y: (-119)\nend\nif <(level) = [4]> then\n    show\n    go to x: (-114) y: (156)\nend\nif <(level) = [5]> then\n    show\n    go to x: (219) y: (-120)\nend\nif <(level) = [6]> then\n    show\n    go to x: (148) y: (-119)\nend\nif <(level) = [7]> then\n    show\n    go to x: (-110) y: (0)\nend\nif <(level) = [8]> then\n    show\n    go to x: (-222) y: (-119)\nend\nif <(level) = [9]> then\n    show\n    go to x: (184) y: (-122)\nend\nif <(level) = [10]> then\n    show\n    go to x: (185) y: (83)\nend\nif <(level) = [11]> then\n    hide\nend\n\n@portal 1\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nset [portal? v] to [false]\nif <(level) = [3]> then\n    show\n    go to x: (220) y: (83)\nend\nif <(level) = [4]> then\n    show\n    go to x: (221) y: (-121)\nend\nif <(level) = [5]> then\n    hide\nend\nif <(level) = [6]> then\n    show\n    go to x: (74) y: (-118)\nend\nif <(level) = [7]> then\n    hide\nend\nif <(level) = [8]> then\n    show\n    go to x: (221) y: (-120)\nend\nif <(level) = [9]> then\n    hide\nend\nif <(level) = [10]> then\n    show\n    go to x: (221) y: (-120)\nend\nif <(level) = [11]> then\n    hide\nend\n\n@portal 2\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nset [portal? v] to [false]\nif <(level) = [3]> then\n    show\n    go to x: (-41) y: (-119)\nend\nif <(level) = [4]> then\n    show\n    go to x: (-219) y: (157)\nend\nif <(level) = [5]> then\n    hide\nend\nif <(level) = [6]> then\n    show\n    go to x: (-222) y: (164)\n    forever\n        glide (4) secs to x: (-222) y: (-158)\n        glide (4) secs to x: (-222) y: (164)\n    end\nend\nif <(level) = [7]> then\n    hide\nend\nif <(level) = [8]> then\n    show\n    go to x: (-37) y: (-76)\nend\nif <(level) = [9]> then\n    hide\nend\nif <(level) = [10]> then\n    show\n    go to x: (-220) y: (161)\nend\nif <(level) = [11]> then\n    hide\nend\n\n@blue lock\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\ngo to x: (110) y: (-119)\nshow\nforever\n    if <<touching (bloop v)?> and <(blue key?) = [true]>> then\n        start sound [door v]\n        hide\n    end\nend\n\nwhen I receive [next level v]\nif <(level) = [2]> then\n    show\n    go to x: (-40) y: (125)\nend\nif <(level) = [3]> then\n    hide\nend\nif <(level) = [4]> then\n    hide\nend\nif <(level) = [5]> then\n    show\n    go to x: (148) y: (-120)\nend\nif <(level) = [6]> then\n    show\n    go to x: (186) y: (-118)\nend\nif <(level) = [7]> then\n    show\n    go to x: (-184) y: (0)\nend\nif <(level) = [8]> then\n    show\n    go to x: (-110) y: (-118)\nend\nif <(level) = [9]> then\n    show\n    go to x: (112) y: (-122)\nend\nif <(level) = [10]> then\n    show\n    go to x: (149) y: (83)\nend\nif <(level) = [11]> then\n    hide\nend\n\nwhen I receive [respawn v]\nif <(level) = [1]> then\n    show\n    go to x: (110) y: (-119)\nend\nif <(level) = [2]> then\n    show\n    go to x: (-40) y: (125)\nend\nif <(level) = [3]> then\n    hide\nend\nif <(level) = [4]> then\n    hide\nend\nif <(level) = [5]> then\n    show\n    go to x: (148) y: (-120)\nend\nif <(level) = [6]> then\n    show\n    go to x: (186) y: (-118)\nend\nif <(level) = [7]> then\n    show\n    go to x: (-184) y: (0)\nend\nif <(level) = [8]> then\n    show\n    go to x: (-110) y: (-118)\nend\nif <(level) = [9]> then\n    show\n    go to x: (112) y: (-122)\nend\nif <(level) = [10]> then\n    show\n    go to x: (149) y: (83)\nend\nif <(level) = [11]> then\n    hide\nend\n\n@blue key\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nset [blue key? v] to [false]\ngo to x: (-187) y: (123)\npoint in direction (90)\nshow\nforever\n    if <touching (bloop v)?> then\n        start sound [ObtainKey v]\n        set [blue key? v] to [true]\n        hide\n    end\nend\n\nwhen I receive [next level v]\nset [blue key? v] to [false]\nif <(level) = [2]> then\n    show\n    go to x: (71) y: (-84)\nend\nif <(level) = [3]> then\n    hide\nend\nif <(level) = [4]> then\n    hide\nend\nif <(level) = [5]> then\n    show\n    go to x: (220) y: (80)\nend\nif <(level) = [6]> then\n    show\n    go to x: (71) y: (41)\nend\nif <(level) = [7]> then\n    show\n    go to x: (-226) y: (119)\nend\nif <(level) = [8]> then\n    show\n    go to x: (-146) y: (43)\nend\nif <(level) = [9]> then\n    show\n    go to x: (-115) y: (-40)\nend\nif <(level) = [10]> then\n    show\n    go to x: (-76) y: (-43)\nend\nif <(level) = [11]> then\n    hide\nend\n\nwhen I receive [respawn v]\nset [blue key? v] to [false]\nif <(level) = [1]> then\n    show\n    go to x: (-187) y: (123)\nend\nif <(level) = [2]> then\n    show\n    go to x: (71) y: (-84)\nend\nif <(level) = [3]> then\n    hide\nend\nif <(level) = [4]> then\n    hide\nend\nif <(level) = [5]> then\n    show\n    go to x: (220) y: (80)\nend\nif <(level) = [6]> then\n    show\n    go to x: (71) y: (41)\nend\nif <(level) = [7]> then\n    show\n    go to x: (-226) y: (119)\nend\nif <(level) = [8]> then\n    show\n    go to x: (-146) y: (43)\nend\nif <(level) = [9]> then\n    show\n    go to x: (-115) y: (-40)\nend\nif <(level) = [10]> then\n    show\n    go to x: (-76) y: (-43)\nend\nif <(level) = [11]> then\n    hide\nend\n\n@orange lock\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nforever\n    if <<touching (bloop v)?> and <(orange key?) = [true]>> then\n        start sound [door v]\n        hide\n    end\nend\n\nwhen I receive [next level v]\nif <(level) = [7]> then\n    show\n    go to x: (-183) y: (122)\nend\nif <(level) = [8]> then\n    show\n    go to x: (184) y: (-118)\nend\nif <(level) = [9]> then\n    hide\nend\n\nwhen I receive [respawn v]\nif <(level) = [7]> then\n    show\n    go to x: (-183) y: (122)\nend\nif <(level) = [8]> then\n    show\n    go to x: (184) y: (-118)\nend\nif <(level) = [9]> then\n    hide\nend\n\n@orange key\n\nwhen flag clicked\nset [orange key? v] to [false]\npoint in direction (90)\nhide\n\nwhen I receive [next level v]\nset [orange key? v] to [false]\nforever\n    if <touching (bloop v)?> then\n        start sound [ObtainKey v]\n        set [orange key? v] to [true]\n        hide\n    end\nend\n\nwhen I receive [respawn v]\nset [orange key? v] to [false]\nif <(level) = [7]> then\n    forever\n        if <touching (bloop v)?> then\n            start sound [ObtainKey v]\n            set [orange key? v] to [true]\n            hide\n        end\n    end\nend\n\nwhen I receive [respawn v]\nset [orange key? v] to [false]\nif <(level) = [7]> then\n    show\n    go to x: (36) y: (-6)\nend\nif <(level) = [8]> then\n    show\n    go to x: (-223) y: (123)\nend\nif <(level) = [9]> then\n    hide\nend\n\nwhen I receive [next level v]\nset [orange key? v] to [false]\nif <(level) = [7]> then\n    show\n    go to x: (36) y: (-6)\nend\nif <(level) = [8]> then\n    show\n    go to x: (-223) y: (123)\nend\nif <(level) = [9]> then\n    hide\nend\n\n@redo\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\ngo to x: (208) y: (150)\nshow\nwait (1) seconds\ngo to [front v] layer\n\nwhen this sprite clicked\nbroadcast (respawn v)\nwait (1) seconds\ngo to [front v] layer\n\nwhen I receive [next level v]\nwait (1) seconds\ngo to [front v] layer\nif <(level) = [11]> then\n    hide\nend\n\n