Mine it! (pen platformer)

Instructions: THIS GAME FEATURES PEN AND PLATFORMING MECHANICS! YAY!\n                     Make sure to like, star, and follow for more!\nThis game has (currently) 12 levels, all of which can be solved. Huzzah!\n                                               COMPLETED!\n                       

@Stage\n\nwhen I receive [endlevel v]\nnext backdrop\n\nwhen [r v] key pressed\nbroadcast (WHOAH! v)\n\nwhen I receive [whoah! v]\nrepeat (30)\n    change [color v] effect by (10)\nend\nclear graphic effects\n\n@Pick\n\nwhen flag clicked\nerase all\nset pen size to (25)\nforever\n    if <mouse down?> then\n        pen down\n        set pen color to (#995900)\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (-69) y: (-84)\nwait (10) seconds\nshow\n\nwhen flag clicked\npoint in direction (90)\nwait (7) seconds\nforever\n    if <key (w v) pressed?> then\n        point in direction (0)\n        move (5) steps\n    end\n    if <key (a v) pressed?> then\n        point in direction (-90)\n        move (5) steps\n    end\n    if <key (s v) pressed?> then\n        point in direction (180)\n        move (5) steps\n    end\n    if <key (d v) pressed?> then\n        point in direction (90)\n        move (5) steps\n    end\nend\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (-167) y: (94)\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (-151) y: (26)\n\nwhen backdrop switches to [backdrop1 v]\nerase all\nwait (1) seconds\nerase all\n\nwhen I receive [endlevel v]\nerase all\nwait (0.001) seconds\nerase all\n\nwhen backdrop switches to [backdrop3 v]\nforever\n    if <touching (sprite5 v)?> then\n        pen up\n        go to x: (205) y: (-92)\n        pen down\n    end\nend\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (213) y: (-156)\n\ngo to x: (213) y: (139)\n\nwhen backdrop switches to [backdrop3 v]\nforever\n    if <touching (sprite4 v)?> then\n        pen up\n        go to x: (-106) y: (26)\n        pen down\n    end\nend\n\ngo to x: (205) y: (-92)\n\nwhen backdrop switches to [backdrop3 v]\nforever\n    if <touching (sprite1 v)?> then\n        pen up\n        go to x: (205) y: (-92)\n        pen down\n    end\nend\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (179) y: (96)\n\nwhen backdrop switches to [backdrop6 v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (179) y: (96)\n    end\nend\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (-200) y: (150)\n\nwhen flag clicked\nforever\n    start sound [Interloper.mp3 v]\n    wait (263) seconds\nend\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (-8) y: (42)\n\nwhen backdrop switches to [backdrop4 v]\nforever\n    if <touching (sprite6 v)?> then\n        pen up\n        go to x: (213) y: (-156)\n        pen down\n    end\nend\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-1) y: (-101)\n\nwhen backdrop switches to [backdrop5 v]\nerase all\nhide\nwait (5) seconds\ngo to x: (210) y: (-92)\nerase all\nshow\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (-1) y: (-101)\n\nwhen backdrop switches to [backdrop12 v]\ngo to x: (4) y: (157)\nstop [other scripts in sprite v]\n\nwait (1) seconds\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (116) y: (167)\n\nwait (10) seconds\n\nwhen backdrop switches to [backdrop13 v]\nhide\n\nwhen backdrop switches to [backdrop13 v]\nhide\n\nwhen flag clicked\n\nset [time v] to [0]\n\nwhen backdrop switches to [backdrop12 v]\nforever\n    erase all\nend\n\ngo to x: (-1) y: (-130)\n\nwhen backdrop switches to [backdrop12 v]\nerase all\ngo to x: (13) y: (152)\nerase all\npen up\n\nstart sound [Interloper.mp3 v]\nstart sound [Interloper.mp3 v]\nstart sound [Interloper.mp3 v]\nstart sound [Interloper.mp3 v]\nstart sound [Interloper.mp3 v]\nstart sound [Interloper.mp3 v]\nstart sound [Interloper.mp3 v]\nstart sound [Interloper.mp3 v]\nstart sound [Interloper.mp3 v]\n\nwhen I receive [gover v]\nstop all sounds\nstart sound [Hyper Potions - Porta Vista.mp3 v]\n\n@MineMan\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (-175) y: (88)\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (-101) y: (-96)\n\nwhen backdrop switches to [backdrop3 v]\nforever\n    if <touching (sprite4 v)?> then\n        go to x: (-197) y: (9)\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (-197) y: (9)\n\nwhen backdrop switches to [backdrop5 v]\nhide\nwait (5) seconds\ngo to x: (-194) y: (-132)\nshow\n\nwhen backdrop switches to [backdrop3 v]\nforever\n    if <touching (sprite1 v)?> then\n        go to x: (-194) y: (-132)\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\nforever\n    if <touching (sprite5 v)?> then\n        go to x: (-194) y: (-132)\n    end\nend\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (-190) y: (-43)\n\nwhen [d v] key pressed\nwait until <key (o v) pressed?>\nif <key (o v) pressed?> then\n    wait until <key (g v) pressed?>\nend\nif <key (g v) pressed?> then\n    wait until <key (e v) pressed?>\nend\nif <key (e v) pressed?> then\n    broadcast (doge v)\nend\n\nif  then\nend\n\nwhen I receive [doge v]\nnext costume\n\nwhen flag clicked\nset [time v] to [0]\nswitch backdrop to (costume1 v)\nhide\ngo to x: (-101) y: (-96)\nwait (7) seconds\nshow\nset [yv v] to [0]\nset [xv v] to [0]\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\nforever\n    change [yv v] by (-1)\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume3 v)\n        change [xv v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n        change [xv v] by (1)\n    end\n    set [xv v] to ((XV) * (0.9))\n    change x by (XV)\n    if <touching color (#663b00)?> then\n        change y by (1)\n        if <touching color (#663b00)?> then\n            change y by (1)\n            if <touching color (#663b00)?> then\n                change y by (1)\n                if <touching color (#663b00)?> then\n                    change y by (1)\n                    if <touching color (#663b00)?> then\n                        change y by (-3.5)\n                        change x by ((XV) * (-1))\n                        if <key (up arrow v) pressed?> then\n                            set [yv v] to [13]\n                            if <([abs v] of (XV) ) = (XV)> then\n                                set [xv v] to [-7]\n                            else\n                                set [xv v] to [7]\n                            end\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (YV)\n    if <touching color (#663b00)?> then\n        change y by ((YV) - ((YV) * (2)))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#663b00)?>> then\n        set [yv v] to [13]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite6 v)?> then\n        go to x: (-190) y: (-43)\n    end\nend\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (-167) y: (90)\n\nwhen backdrop switches to [backdrop6 v]\nforever\n    if <touching color (#cc0000)?> then\n        go to x: (-167) y: (90)\n    end\nend\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (-203) y: (111)\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (-144) y: (144)\n\nwhen backdrop switches to [backdrop8 v]\nforever\n    if <touching color (#cc0000)?> then\n        go to x: (-137) y: (156)\n    end\nend\n\nwhen backdrop switches to [backdrop10 v]\nforever\n    if <touching color (#cc0000)?> then\n        go to x: (-206) y: (-10)\n    end\nend\n\nwhen backdrop switches to [backdrop8 v]\nforever\n    if <touching color (#cc0000)?> then\n        go to x: (-137) y: (156)\n    end\nend\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (-206) y: (-10)\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (endlevel v)\n    end\nend\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-17) y: (-151)\n\nwhen backdrop switches to [backdrop11 v]\nforever\n    if <touching color (#cc0000)?> then\n        go to x: (-1) y: (-151)\n    end\nend\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (-206) y: (-10)\n\nwhen backdrop switches to [backdrop12 v]\ngo to x: (-53) y: (-154)\n\ngo to x: (-198) y: (-78)\n\nwhen backdrop switches to [backdrop13 v]\nerase all\nhide\n\n@Sprite2\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (124) y: (56)\n\nwhen flag clicked\nhide\nwait (7) seconds\nshow\nforever\n    if <not <touching color (#663b00)?>> then\n        repeat until <touching color (#663b00)?>\n            change y by (-7)\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (194) y: (-164)\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (165) y: (-152)\n\nwhen backdrop switches to [backdrop5 v]\nhide\ngo to x: (213) y: (-144)\nwait (5) seconds\nshow\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (194) y: (-171)\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (221) y: (-174)\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (9) y: (-76)\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (204) y: (-16)\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (111) y: (-35)\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (2) y: (103)\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (2) y: (103)\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\nwhen I receive [cheat v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nshow\n\nwhen backdrop switches to [backdrop13 v]\nhide\n\nwhen backdrop switches to [backdrop13 v]\nhide\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (1)\nshow\nwait (1) seconds\nhide\n\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nmove (1) steps\nif <touching color (#663b00)?> then\n    turn left (15) degrees\nend\n\ngo to x: (37) y: (67)\n\nturn right (15) degrees\n\nforever\nend\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (46) y: (77)\nshow\nrepeat (100)\n    glide (1) secs to x: (45) y: (-80)\n    glide (1) secs to x: (-183) y: (-76)\n    glide (1) secs to x: (-60) y: (-46)\n    glide (1) secs to x: (99) y: (-47)\n    glide (1) secs to x: (97) y: (85)\n    glide (1) secs to x: (-8) y: (80)\nend\n\nglide (1) secs to x: (39) y: (70)\nwait (0.5) seconds\nglide (1) secs to x: (-14) y: (30)\nwait (0.5) seconds\nglide (1) secs to x: (30) y: (-9)\nwait (0.5) seconds\nglide (1) secs to x: (90) y: (32)\n\ngo to x: (29) y: (-61)\nshow\n\nwhen backdrop switches to [backdrop5 v]\nhide\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-147) y: (102)\nhide\n\nwhen backdrop switches to [backdrop5 v]\nhide\nwait (5) seconds\nshow\nforever\n    repeat (10000000000000000)\n        glide (3) secs to x: (-148) y: (102)\n        glide (3) secs to x: (-148) y: (-111)\n        glide (3) secs to x: (150) y: (-113)\n        glide (3) secs to x: (154) y: (102)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\n@Sprite5\n\nwhen flag clicked\ngo to x: (-147) y: (102)\nhide\n\nrepeat (10000000000000000)\nend\n\nwhen backdrop switches to [backdrop5 v]\nhide\nwait (5) seconds\nshow\nforever\n    repeat (10)\n        glide (2) secs to x: (-143) y: (-109)\n        glide (2) secs to x: (152) y: (102)\n        glide (1) secs to x: (151) y: (-110)\n        glide (2) secs to x: (-147) y: (104)\n        glide (2) secs to x: (-148) y: (-114)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\nglide (3) secs to x: (-148) y: (102)\nglide (3) secs to x: (-148) y: (-111)\nglide (3) secs to x: (150) y: (-113)\nglide (3) secs to x: (154) y: (102)\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop4 v]\nshow\ngo to x: (-94) y: (-141)\nforever\n    repeat (10)\n        glide (3) secs to x: (-94) y: (-141)\n        glide (1) secs to x: (-18) y: (-80)\n        glide (1) secs to x: (181) y: (-83)\n        glide (1) secs to x: (189) y: (65)\n        glide (3) secs to x: (-135) y: (71)\n        glide (1) secs to x: (-142) y: (153)\n    end\nend\n\nwait (3) seconds\n\nglide (1) secs to x: (-201) y: (-30)\n\nwhen backdrop switches to [backdrop6 v]\nhide\n\n@Sprite7\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (106) y: (121)\nshow\nswitch costume to (costume3 v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\ngo to x: (-103) y: (118)\nswitch costume to (costume1 v)\nhide\nwait (10) seconds\nshow\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (1) seconds\nswitch costume to (costume2 v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (-108) y: (125)\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (-28) y: (121)\nswitch costume to (costume5 v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [backdrop12 v]\ngo to x: (4) y: (11)\nswitch costume to (costume6 v)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (1) seconds\nswitch costume to (costume7 v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (4) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (boss on v)\n\nwait (1) seconds\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen I receive [whoah! v]\nshow\nrepeat (30)\n    turn right (15) degrees\n    change [color v] effect by (10)\nend\nclear graphic effects\nhide\n\n@Sprite9\n\nwhen backdrop switches to [backdrop5 v]\nswitch costume to (costume2 v)\nshow\nwait (5) seconds\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\nerase all\nhide\nwait (1) seconds\nshow\nwait (6) seconds\nhide\n\nwhen backdrop switches to [backdrop13 v]\nshow\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen backdrop switches to [backdrop13 v]\nforever\n    change [time v] by (0)\n    switch costume to (costume3 v)\nend\n\nwhen flag clicked\n\nwhen backdrop switches to [backdrop13 v]\nforever\n    if <(time) < (☁ time)> then\n        set [☁ time v] to (time)\n    end\nend\n\n@GhostMan\n\nwhen flag clicked\npoint in direction (90)\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [boss on v]\nrepeat (19)\n    wait (0.2) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop12 v]\nset size to (210) %\nshow\n\nwhen I receive [boss on v]\nforever\n    wait (1) seconds\n    change [boss timer v] by (-1)\nend\n\nwhen I receive [gover v]\nstop [other scripts in sprite v]\nswitch costume to (costume19 v)\nwait (0.2) seconds\nswitch costume to (costume18 v)\nwait (0.2) seconds\nswitch costume to (costume17 v)\nwait (0.2) seconds\nswitch costume to (costume16 v)\nwait (0.2) seconds\nswitch costume to (costume15 v)\nwait (0.2) seconds\nswitch costume to (costume14 v)\nwait (0.2) seconds\nswitch costume to (costume13 v)\nwait (0.2) seconds\nswitch costume to (costume12 v)\nwait (0.2) seconds\nswitch costume to (costume11 v)\nwait (0.2) seconds\nswitch costume to (costume10 v)\nwait (0.2) seconds\nswitch costume to (costume9 v)\nwait (0.2) seconds\nswitch costume to (costume8 v)\nwait (0.2) seconds\nswitch costume to (costume7 v)\nwait (0.2) seconds\nswitch costume to (costume6 v)\nwait (0.2) seconds\nswitch costume to (costume5 v)\nwait (0.2) seconds\nswitch costume to (costume4 v)\nwait (0.2) seconds\nswitch costume to (costume3 v)\nwait (0.2) seconds\nswitch costume to (costume2 v)\nwait (0.2) seconds\nswitch costume to (costume1 v)\nrepeat (20)\n    change size by (-10)\nend\nhide\nbroadcast (cheat v)\n\nwhen flag clicked\nset [boss timer v] to [60]\n\nwhen backdrop switches to [backdrop12 v]\nforever\n    if <(boss timer) = [0]> then\n        broadcast (gover v)\n    end\nend\n\n@Sprite10\n\nwhen I receive [boss on v]\nset [ghost v] effect to (100)\nshow\nwait (5) seconds\nrepeat (10)\n    change [ghost v] effect by (-9)\nend\nbroadcast (boss ready v)\n\nwhen flag clicked\nhide\n\nwhen I receive [gover v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Sprite11\n\nwhen flag clicked\nhide\n\nwhen I receive [boss ready v]\nshow\nrepeat until <(boss timer) = [0]>\n    go to x: (16) y: (23)\n    point towards (mineman v)\n    repeat until <touching color (#663b00)?>\n        move (10) steps\n    end\n    if <touching color (#663b00)?> then\n        go to x: (16) y: (23)\n    end\nend\n\nwhen I receive [gover v]\nhide\n\nwhen I receive [gover v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n