Bouncy's Quest (OLD) - [Platformer]

Instructions: *This is an old project (Shared in 2014)*\n\n-- Controls --\n----------------\nArrow Keys to Move\n\n-- Story --\nBouncy must go through a lab and save his friend while scientists known as TKS plan to use his friend for a test subject in another dimension.

@Stage\n\nwhen I receive [go guy! v]\nswitch backdrop to (in the game v)\n\nwhen I receive [go guy! v]\nshow variable [level v]\nforever\n    if <(Level) = [15]> then\n        switch backdrop to (in the game2 v)\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [26]> then\n        switch backdrop to (boss v)\n        hide variable [level v]\n    end\nend\n\nwhen flag clicked\nstop all sounds\nstart sound [In Game v]\nrepeat until <(Level) = [26]>\n    play sound [In Game v] until done\nend\nstop all sounds\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [26]> then\n        stop all sounds\n        start sound [Boss v]\n        repeat until <(Level) = [27]>\n            play sound [Boss v] until done\n        end\n        stop all sounds\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [26]> then\n        show variable [boss heath v]\n    end\nend\n\nwhen flag clicked\nhide variable [level v]\nhide variable [boss heath v]\nswitch backdrop to (title v)\n\n@guy\n\nwhen I receive [go guy! v]\nwait (0.06) seconds\nshow\nforever\n    change y by (Y-Velocity)\n    if <<touching color (#666666)?> or <touching color (#802020)?>> then\n        set [y-velocity v] to [6]\n    else\n        change [y-velocity v] by (-0.4)\n    end\nend\n\nwhen I receive [go guy! v]\nwait (0.06) seconds\nshow\nforever\n    if <touching color (#7f00ff)?> then\n        set [y-velocity v] to [15]\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-209) y: (-119)\n\nwhen I receive [go guy! v]\nforever\n    if <touching (fall repelent v)?> then\n        go to x: (-209) y: (-119)\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <touching (boss v)?> then\n        go to x: (-209) y: (-119)\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <touching (enemy v)?> then\n        go to x: (-209) y: (-119)\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <touching color (#990000)?> then\n        go to x: (-209) y: (-119)\n    end\n    if <touching color (#c3c3c3)?> then\n        go to x: (-209) y: (-119)\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [5]> then\n        change [lives v] by (3)\n        broadcast (extra  v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [15]> then\n        change [lives v] by (3)\n        broadcast (extra  v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [10]> then\n        change [lives v] by (3)\n        broadcast (extra  v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [20]> then\n        change [lives v] by (3)\n        broadcast (extra  v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [25]> then\n        change [lives v] by (3)\n        broadcast (extra  v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [go guy! v]\nwait (0.06) seconds\nshow\nforever\n    if <touching color (#cc99ff)?> then\n        set [y-velocity v] to [-15]\n    end\nend\n\nwhen I receive [boss dead v]\nforever\n    if <(Level) = [27]> then\n        hide\n        stop [all v]\n    end\nend\n\nwhen I receive [go guy! v]\nwait (0.3) seconds\nshow\nforever\n    if <<key (right arrow v) pressed?> and <not <touching color (#b2bdb7)?>>> then\n        point in direction (90)\n        change x by (4)\n    end\n    if <<key (left arrow v) pressed?> and <not <touching color (#88918c)?>>> then\n        point in direction (-90)\n        change x by (-4)\n    end\nend\n\nwhen flag clicked\ngo to x: (-209) y: (-119)\nset [pause v] to [no]\nshow variable [level v]\nhide\n\n@Play\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change [color v] effect by (10)\n    else\n        clear graphic effects\n    end\nend\n\nwhen this sprite clicked\nbroadcast (go guy! v)\nhide\n\n@Map\n\nwhen I receive [go guy! v]\nshow variable [level v]\nset [level v] to [1]\nwait (0.02) seconds\nshow\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\nwhen flag clicked\nhide variable [level v]\nset [level v] to [0]\ngo to x: (0) y: (0)\nswitch costume to (lvl1 v)\nhide\n\n@Enemy\n\nwhen flag clicked\ngo to x: (138) y: (-106)\nhide\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [9]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    repeat (50)\n        change x by (-4)\n    end\n    repeat (50)\n        change x by (4)\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [12]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [13]> then\n        hide\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [17]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [18]> then\n        hide\n    end\nend\n\n@Next level\n\nwhen flag clicked\nset [ghost v] effect to (1e+49)\nhide\n\nwhen I receive [go guy! v]\nshow\nforever\n    if <touching (guy v)?> then\n        broadcast (next level v)\n    end\nend\n\n@Fall Repelent\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [ghost v] effect to (657587666666666600)\n\nwhen I receive [go guy! v]\nshow\n\n@crusher\n\nwhen flag clicked\nhide\ngo to x: (125) y: (5)\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [5]> then\n        hide\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    repeat (30)\n        change y by (-4)\n    end\n    repeat (30)\n        change y by (4)\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [7]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [4]> then\n        show\n    end\nend\n\n@crusher2\n\nwhen flag clicked\nhide\ngo to x: (62) y: (-90)\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [15]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [16]> then\n        hide\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    repeat (30)\n        change x by (-4)\n    end\n    repeat (30)\n        change x by (4)\n    end\nend\n\n@Gun\n\nwhen flag clicked\nhide\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [8]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [9]> then\n        hide\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [10]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [11]> then\n        hide\n    end\nend\n\n@Bolt\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [8]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [9]> then\n        hide\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    repeat (40)\n        change y by (-10)\n    end\n    go to x: (162) y: (86)\nend\n\nwhen flag clicked\ngo to x: (162) y: (86)\nhide\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [10]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [11]> then\n        hide\n    end\nend\n\n@bomb\n\nwhen flag clicked\ngo to x: (-173) y: (-123)\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [go guy! v]\nforever\n    if <touching (guy v)?> then\n        repeat (30)\n            go to (guy v)\n        end\n        switch costume to (costume2 v)\n        wait (3) seconds\n        switch costume to (costume1 v)\n        go to x: (-173) y: (-123)\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [18]> then\n        show\n    end\n    if <(Level) = [21]> then\n        hide\n    end\nend\n\n@light bomb\n\nwhen I receive [boss time v]\nshow\n\nwhen I receive [boss time v]\nforever\n    if <touching (guy v)?> then\n        repeat (40)\n            go to (guy v)\n        end\n        switch costume to (costume2 v)\n        wait (1) seconds\n        switch costume to (costume1 v)\n        go to x: (116) y: (-122)\n    end\nend\n\nwhen flag clicked\ngo to x: (116) y: (-122)\nswitch costume to (costume1 v)\nhide\n\n@Boss\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [26]> then\n        show\n    end\nend\n\nwhen I receive [go guy! v]\nforever\n    if <(Level) = [27]> then\n        hide\n    end\nend\n\nwhen I receive [boss time v]\nforever\n    point in direction (-90)\n    repeat (80)\n        change x by (-5)\n    end\n    wait (0.3) seconds\n    point in direction (90)\n    repeat (80)\n        change x by (5)\n    end\n    wait (0.3) seconds\nend\n\nwhen I receive [boss time v]\nforever\n    wait (pick random (1) to (2)) seconds\n    repeat (20)\n        change y by (5)\n    end\n    wait (0.002) seconds\n    repeat (20)\n        change y by (-5)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [boss heath v] to [10]\npoint in direction (-90)\ngo to x: (173) y: (-66)\nhide\n\nwhen I receive [boss time v]\nforever\n    if <touching color (#99ffff)?> then\n        change [boss heath v] by (-1)\n        switch costume to (costume2 v)\n        wait (0.3) seconds\n        switch costume to (costume1 v)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [boss time v]\nforever\n    if <(Boss Heath) = [0]> then\n        say [NOOOO!!!] for (2) seconds\n        broadcast (boss dead v)\n        switch costume to (costume3 v)\n        wait (0.2) seconds\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [go guy! v]\nwait until <(Level) = [26]>\nwait (1) seconds\nbroadcast (boss time v)\n\n@Boss Lock\n\nwhen flag clicked\nhide\n\nwhen I receive [boss dead v]\nhide\n\nwhen I receive [go guy! v]\nwait until <(Level) = [26]>\nshow\n\n