The troll platformer

Instructions: Arrow keys to move\nFirst 10 people to heart and like get shoutouts.\nIf something is to hard ask me in the comments.\nIf you got trolled comment #trolled\nin process of editing so you can play but...

@Stage\n\nwhen flag clicked\nrepeat (20)\n    switch backdrop to (intro2 v)\n    wait (0.05) seconds\n    switch backdrop to (intro v)\nend\n\nwhen flag clicked\nset volume to (100) %\nplay sound [Alan Walker - Spectre \[NCS Release\] v] until done\n\nwhen I receive [level 1 v]\nforever\n    play sound (pick random (2) to (4)) until done\nend\n\nwhen I receive [mute v]\nstop all sounds\n\n@platform\n\nwhen flag clicked\nhide\nforever\n    hide variable [lock v]\n    hide variable [speedy v]\n    hide variable [speedx v]\nend\n\nwhen I receive [level 1 v]\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [skip level v]\nnext costume\n\nwhen I receive [level 2 v]\nswitch costume to (level 2 v)\n\nwhen I receive [level 3 v]\nswitch costume to (level 3 v)\n\nwhen I receive [level 4 v]\nswitch costume to (level 4 v)\n\nwhen I receive [level 5 v]\nswitch costume to (level 5 v)\n\n@player\n\nwhen I receive [level 1 v]\nforever\n    if <key (right arrow v) pressed?> then\n        change [speedx v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [speedx v] by (-1)\n    end\n    change x by (SpeedX)\n    if <touching (platform v)?> then\n        change x by ((SpeedX) * (-1))\n        set [speedx v] to [0]\n    else\n        set [speedx v] to ((SpeedX) * (0.8))\n    end\n    change y by (SpeedY)\n    if <touching (platform v)?> then\n        change y by ((SpeedY) * (-1))\n        set [speedy v] to [0]\n        if <(lock) = [0]> then\n            if <key (up arrow v) pressed?> then\n                set [speedy v] to [10]\n                set [lock v] to [1]\n            end\n        end\n    else\n        change [speedy v] by (-1)\n        set [lock v] to [0]\n    end\nend\n\nwhen I receive [level 1 v]\nshow\ngo to x: (-178) y: (-103)\nset [speedy v] to [0]\nset [speedx v] to [0]\n\nwhen flag clicked\nhide\n\nwhen I receive [level 1 v]\nshow\nforever\n    if <touching (end 1 v)?> then\n        broadcast (level 2 v)\n        go to x: (-178) y: (-103)\n        set [speedy v] to [0]\n        set [speedx v] to [0]\n    end\nend\n\nwhen I receive [reset v]\ngo to x: (-178) y: (-103)\n\nwhen I receive [level 1 v]\nforever\n    if <touching (end 2 v)?> then\n        broadcast (level 3 v)\n        go to x: (-178) y: (-103)\n        set [speedy v] to [0]\n        set [speedx v] to [0]\n    end\nend\n\nwhen I receive [level 2 v]\nforever\n    if <touching (fake end v)?> then\n        broadcast (fake end troll v)\n    end\nend\n\nwhen I receive [level 3 v]\nforever\n    if <touching (kill part v)?> then\n        go to x: (-178) y: (-103)\n    end\nend\n\nwhen I receive [level 3 v]\nforever\n    if <touching (end 3 v)?> then\n        broadcast (level 4 v)\n        go to x: (-178) y: (-103)\n        set [speedy v] to [0]\n        set [speedx v] to [0]\n    end\nend\n\nwhen I receive [level 4 v]\nforever\n    if <touching (jump boost v)?> then\n        set [speedy v] to [15]\n    end\nend\n\nwhen I receive [level 4 v]\nforever\n    if <touching (troll face follow v)?> then\n        forever\n            if <touching (troll face follow v)?> then\n                go to x: (-178) y: (-103)\n                set [speedy v] to [0]\n                set [speedx v] to [0]\n                broadcast (troll face follow v) and wait\n            end\n        end\n    end\nend\n\nwhen I receive [level 3 v]\nforever\n    if <touching (end 4 v)?> then\n        broadcast (level 5 v)\n        go to x: (-178) y: (-103)\n        set [speedy v] to [0]\n        set [speedx v] to [0]\n    end\nend\n\n@Thumb nail\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@troll face\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [end of intro v]\nshow\nwait (2) seconds\nrepeat (36)\n    change size by (10)\n    turn right (10) degrees\nend\nhide\nbroadcast (level 1 v)\nswitch backdrop to (blank v)\n\n@fake platform\n\nwhen flag clicked\nhide\n\nwhen I receive [level 1 v]\nshow\n\nwhen I receive [level 2 v]\nhide\n\n@end 1\n\nwhen flag clicked\nhide\n\nwhen I receive [level 1 v]\ngo to x: (197) y: (85)\nshow\n\nwhen I receive [level 2 v]\nhide\n\n@end 2\n\nwhen flag clicked\nhide\n\nwhen I receive [level 2 v]\ngo to x: (214) y: (-148)\nshow\n\nwhen I receive [level 3 v]\nhide\n\n@end 3\n\nwhen flag clicked\nhide\n\nwhen I receive [level 3 v]\ngo to x: (311) y: (36)\nshow\n\nwhen I receive [level 4 v]\nhide\n\n@end 4\n\nwhen flag clicked\nhide\n\nwhen I receive [level 4 v]\ngo to x: (182) y: (0)\nshow\n\nwhen I receive [level 5 v]\nhide\n\n@setting\n\nwhen flag clicked\nhide\n\nwhen I receive [level 1 v]\ngo to x: (-181) y: (113)\nshow\n\nwhen this sprite clicked\nbroadcast (settings v)\n\n@ball1\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\n\nwhen I receive [end of intro v]\nhide\n\n@ball2\n\nwhen flag clicked\nshow\nrepeat (2)\n    go to x: (13) y: (54)\n    glide (0.05) secs to x: (13) y: (54)\n    glide (0.05) secs to x: (34) y: (54)\n    glide (0.05) secs to x: (56) y: (51)\n    glide (0.05) secs to x: (79) y: (53)\n    glide (0.05) secs to x: (108) y: (51)\n    glide (0.05) secs to x: (126) y: (52)\n    glide (0.05) secs to x: (145) y: (46)\n    glide (0.05) secs to x: (173) y: (43)\n    glide (0.05) secs to x: (205) y: (31)\n    glide (0.05) secs to x: (212) y: (3)\n    glide (0.05) secs to x: (212) y: (-28)\n    glide (0.05) secs to x: (166) y: (-45)\n    glide (0.05) secs to x: (137) y: (-45)\n    glide (0.05) secs to x: (110) y: (-50)\n    glide (0.05) secs to x: (77) y: (-48)\n    glide (0.05) secs to x: (53) y: (-50)\n    glide (0.05) secs to x: (27) y: (-48)\n    glide (0.05) secs to x: (-1) y: (-50)\n    glide (0.05) secs to x: (-33) y: (-39)\n    glide (0.05) secs to x: (-37) y: (-11)\n    glide (0.05) secs to x: (-35) y: (13)\n    glide (0.05) secs to x: (-31) y: (34)\n    glide (0.05) secs to x: (13) y: (54)\nend\n\nwhen flag clicked\nwait (3) seconds\nhide\n\nwhen I receive [end of intro v]\nhide\n\n@ball 3\n\nwhen flag clicked\nshow\ngo to x: (13) y: (54)\nwait (0.05) seconds\nrepeat (2)\n    glide (0.05) secs to x: (13) y: (54)\n    glide (0.05) secs to x: (34) y: (54)\n    glide (0.05) secs to x: (56) y: (51)\n    glide (0.05) secs to x: (79) y: (53)\n    glide (0.05) secs to x: (108) y: (51)\n    glide (0.05) secs to x: (126) y: (52)\n    glide (0.05) secs to x: (145) y: (46)\n    glide (0.05) secs to x: (173) y: (43)\n    glide (0.05) secs to x: (205) y: (31)\n    glide (0.05) secs to x: (212) y: (3)\n    glide (0.05) secs to x: (212) y: (-28)\n    glide (0.05) secs to x: (166) y: (-45)\n    glide (0.05) secs to x: (137) y: (-45)\n    glide (0.05) secs to x: (110) y: (-50)\n    glide (0.05) secs to x: (77) y: (-48)\n    glide (0.05) secs to x: (53) y: (-50)\n    glide (0.05) secs to x: (27) y: (-48)\n    glide (0.05) secs to x: (-1) y: (-50)\n    glide (0.05) secs to x: (-33) y: (-39)\n    glide (0.05) secs to x: (-37) y: (-11)\n    glide (0.05) secs to x: (-35) y: (13)\n    glide (0.05) secs to x: (-31) y: (34)\n    glide (0.05) secs to x: (13) y: (54)\nend\n\nwhen flag clicked\nwait (3) seconds\nhide\n\nwhen I receive [end of intro v]\nhide\n\n@ball 4\n\nwhen flag clicked\nshow\ngo to x: (13) y: (54)\nwait (0.1) seconds\nrepeat (2)\n    glide (0.05) secs to x: (13) y: (54)\n    glide (0.05) secs to x: (34) y: (54)\n    glide (0.05) secs to x: (56) y: (51)\n    glide (0.05) secs to x: (79) y: (53)\n    glide (0.05) secs to x: (108) y: (51)\n    glide (0.05) secs to x: (126) y: (52)\n    glide (0.05) secs to x: (145) y: (46)\n    glide (0.05) secs to x: (173) y: (43)\n    glide (0.05) secs to x: (205) y: (31)\n    glide (0.05) secs to x: (212) y: (3)\n    glide (0.05) secs to x: (212) y: (-28)\n    glide (0.05) secs to x: (166) y: (-45)\n    glide (0.05) secs to x: (137) y: (-45)\n    glide (0.05) secs to x: (110) y: (-50)\n    glide (0.05) secs to x: (77) y: (-48)\n    glide (0.05) secs to x: (53) y: (-50)\n    glide (0.05) secs to x: (27) y: (-48)\n    glide (0.05) secs to x: (-1) y: (-50)\n    glide (0.05) secs to x: (-33) y: (-39)\n    glide (0.05) secs to x: (-37) y: (-11)\n    glide (0.05) secs to x: (-35) y: (13)\n    glide (0.05) secs to x: (-31) y: (34)\n    glide (0.05) secs to x: (13) y: (54)\nend\n\nwhen flag clicked\nwait (3) seconds\nhide\n\nwhen I receive [end of intro v]\nhide\n\n@ball 5\n\nwhen flag clicked\nshow\ngo to x: (13) y: (54)\nwait (0.15) seconds\nrepeat (2)\n    glide (0.05) secs to x: (13) y: (54)\n    glide (0.05) secs to x: (34) y: (54)\n    glide (0.05) secs to x: (56) y: (51)\n    glide (0.05) secs to x: (79) y: (53)\n    glide (0.05) secs to x: (108) y: (51)\n    glide (0.05) secs to x: (126) y: (52)\n    glide (0.05) secs to x: (145) y: (46)\n    glide (0.05) secs to x: (173) y: (43)\n    glide (0.05) secs to x: (205) y: (31)\n    glide (0.05) secs to x: (212) y: (3)\n    glide (0.05) secs to x: (212) y: (-28)\n    glide (0.05) secs to x: (166) y: (-45)\n    glide (0.05) secs to x: (137) y: (-45)\n    glide (0.05) secs to x: (110) y: (-50)\n    glide (0.05) secs to x: (77) y: (-48)\n    glide (0.05) secs to x: (53) y: (-50)\n    glide (0.05) secs to x: (27) y: (-48)\n    glide (0.05) secs to x: (-1) y: (-50)\n    glide (0.05) secs to x: (-33) y: (-39)\n    glide (0.05) secs to x: (-37) y: (-11)\n    glide (0.05) secs to x: (-35) y: (13)\n    glide (0.05) secs to x: (-31) y: (34)\n    glide (0.05) secs to x: (13) y: (54)\nend\n\nwhen flag clicked\nwait (3) seconds\nhide\n\nwhen I receive [end of intro v]\nhide\n\n@ball 6\n\nwhen flag clicked\nshow\ngo to x: (13) y: (54)\nwait (0.2) seconds\nrepeat (2)\n    glide (0.05) secs to x: (13) y: (54)\n    glide (0.05) secs to x: (34) y: (54)\n    glide (0.05) secs to x: (56) y: (51)\n    glide (0.05) secs to x: (79) y: (53)\n    glide (0.05) secs to x: (108) y: (51)\n    glide (0.05) secs to x: (126) y: (52)\n    glide (0.05) secs to x: (145) y: (46)\n    glide (0.05) secs to x: (173) y: (43)\n    glide (0.05) secs to x: (205) y: (31)\n    glide (0.05) secs to x: (212) y: (3)\n    glide (0.05) secs to x: (212) y: (-28)\n    glide (0.05) secs to x: (166) y: (-45)\n    glide (0.05) secs to x: (137) y: (-45)\n    glide (0.05) secs to x: (110) y: (-50)\n    glide (0.05) secs to x: (77) y: (-48)\n    glide (0.05) secs to x: (53) y: (-50)\n    glide (0.05) secs to x: (27) y: (-48)\n    glide (0.05) secs to x: (-1) y: (-50)\n    glide (0.05) secs to x: (-33) y: (-39)\n    glide (0.05) secs to x: (-37) y: (-11)\n    glide (0.05) secs to x: (-35) y: (13)\n    glide (0.05) secs to x: (-31) y: (34)\n    glide (0.05) secs to x: (13) y: (54)\nend\n\nwhen flag clicked\nwait (3) seconds\nhide\n\nwhen I receive [end of intro v]\nhide\n\n@ball 7\n\nwhen flag clicked\nshow\ngo to x: (13) y: (54)\nwait (0.25) seconds\nrepeat (2)\n    glide (0.05) secs to x: (13) y: (54)\n    glide (0.05) secs to x: (34) y: (54)\n    glide (0.05) secs to x: (56) y: (51)\n    glide (0.05) secs to x: (79) y: (53)\n    glide (0.05) secs to x: (108) y: (51)\n    glide (0.05) secs to x: (126) y: (52)\n    glide (0.05) secs to x: (145) y: (46)\n    glide (0.05) secs to x: (173) y: (43)\n    glide (0.05) secs to x: (205) y: (31)\n    glide (0.05) secs to x: (212) y: (3)\n    glide (0.05) secs to x: (212) y: (-28)\n    glide (0.05) secs to x: (166) y: (-45)\n    glide (0.05) secs to x: (137) y: (-45)\n    glide (0.05) secs to x: (110) y: (-50)\n    glide (0.05) secs to x: (77) y: (-48)\n    glide (0.05) secs to x: (53) y: (-50)\n    glide (0.05) secs to x: (27) y: (-48)\n    glide (0.05) secs to x: (-1) y: (-50)\n    glide (0.05) secs to x: (-33) y: (-39)\n    glide (0.05) secs to x: (-37) y: (-11)\n    glide (0.05) secs to x: (-35) y: (13)\n    glide (0.05) secs to x: (-31) y: (34)\n    glide (0.05) secs to x: (13) y: (54)\nend\n\nwhen flag clicked\nwait (3) seconds\nhide\n\nwhen I receive [end of intro v]\nhide\n\n@ball 8\n\nwhen flag clicked\nshow\ngo to x: (13) y: (54)\nwait (0.3) seconds\nrepeat (2)\n    glide (0.05) secs to x: (13) y: (54)\n    glide (0.05) secs to x: (34) y: (54)\n    glide (0.05) secs to x: (56) y: (51)\n    glide (0.05) secs to x: (79) y: (53)\n    glide (0.05) secs to x: (108) y: (51)\n    glide (0.05) secs to x: (126) y: (52)\n    glide (0.05) secs to x: (145) y: (46)\n    glide (0.05) secs to x: (173) y: (43)\n    glide (0.05) secs to x: (205) y: (31)\n    glide (0.05) secs to x: (212) y: (3)\n    glide (0.05) secs to x: (212) y: (-28)\n    glide (0.05) secs to x: (166) y: (-45)\n    glide (0.05) secs to x: (137) y: (-45)\n    glide (0.05) secs to x: (110) y: (-50)\n    glide (0.05) secs to x: (77) y: (-48)\n    glide (0.05) secs to x: (53) y: (-50)\n    glide (0.05) secs to x: (27) y: (-48)\n    glide (0.05) secs to x: (-1) y: (-50)\n    glide (0.05) secs to x: (-33) y: (-39)\n    glide (0.05) secs to x: (-37) y: (-11)\n    glide (0.05) secs to x: (-35) y: (13)\n    glide (0.05) secs to x: (-31) y: (34)\n    glide (0.05) secs to x: (13) y: (54)\nend\n\nwhen flag clicked\nwait (3) seconds\nhide\n\nwhen I receive [end of intro v]\nhide\n\n@ball 9\n\nwhen flag clicked\nshow\ngo to x: (13) y: (54)\nwait (0.35) seconds\nrepeat (2)\n    glide (0.05) secs to x: (13) y: (54)\n    glide (0.05) secs to x: (34) y: (54)\n    glide (0.05) secs to x: (56) y: (51)\n    glide (0.05) secs to x: (79) y: (53)\n    glide (0.05) secs to x: (108) y: (51)\n    glide (0.05) secs to x: (126) y: (52)\n    glide (0.05) secs to x: (145) y: (46)\n    glide (0.05) secs to x: (173) y: (43)\n    glide (0.05) secs to x: (205) y: (31)\n    glide (0.05) secs to x: (212) y: (3)\n    glide (0.05) secs to x: (212) y: (-28)\n    glide (0.05) secs to x: (166) y: (-45)\n    glide (0.05) secs to x: (137) y: (-45)\n    glide (0.05) secs to x: (110) y: (-50)\n    glide (0.05) secs to x: (77) y: (-48)\n    glide (0.05) secs to x: (53) y: (-50)\n    glide (0.05) secs to x: (27) y: (-48)\n    glide (0.05) secs to x: (-1) y: (-50)\n    glide (0.05) secs to x: (-33) y: (-39)\n    glide (0.05) secs to x: (-37) y: (-11)\n    glide (0.05) secs to x: (-35) y: (13)\n    glide (0.05) secs to x: (-31) y: (34)\n    glide (0.05) secs to x: (13) y: (54)\nend\nbroadcast (End of intro v)\n\nwhen flag clicked\nwait (3) seconds\nhide\n\nwhen I receive [end of intro v]\nhide\n\n@mute sound\n\nwhen flag clicked\nswitch costume to (sound v)\nhide\n\nwhen I receive [settings v]\ngo to x: (-185) y: (156)\nshow\nwait (3) seconds\nhide\n\nwhen this sprite clicked\nnext costume\nbroadcast (mute v)\n\nswitch costume to (pick random (1) to (2))\n\n@reset\n\nwhen I receive [settings v]\ngo to x: (-148) y: (156)\nshow\nwait (3) seconds\nhide\n\nwhen this sprite clicked\nbroadcast (reset v)\n\n@fake ground\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [level 2 v]\nshow\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\n@fake end\n\nwhen flag clicked\nhide\n\nwhen I receive [level 2 v]\ngo to x: (211) y: (149)\nshow\n\nwhen I receive [level 3 v]\nhide\n\n@fake end troll\n\nwhen flag clicked\nhide\n\nwhen I receive [fake end troll v]\nshow\nrepeat (48)\n    turn right (15) degrees\n    change size by (10)\nend\nset size to (100) %\nhide\n\nwhen I receive [level 5 v]\nhide\n\n@fake ground 2\n\nwhen flag clicked\nhide\n\nwhen I receive [level 3 v]\ngo to x: (-143) y: (-147)\nshow\n\nwhen I receive [level 4 v]\nhide\n\n@kill part\n\nwhen flag clicked\nhide\n\nwhen I receive [level 3 v]\ngo to x: (31) y: (-97)\nshow\n\nwhen I receive [level 4 v]\nhide\n\n@troll face follow\n\nwhen flag clicked\nhide\n\nwhen I receive [level 4 v]\nshow\ngo to x: (191) y: (-140)\nforever\n    glide (1.5) secs to (player v)\nend\n\nwhen I receive [troll face follow v]\ngo to x: (191) y: (-140)\n\nwhen I receive [level 5 v]\nhide\n\n@jump boost\n\nwhen flag clicked\nhide\n\nwhen I receive [level 4 v]\ngo to x: (96) y: (-81)\nshow\n\nwhen I receive [level 5 v]\nhide\n\n