A Trolled Platformer

Instructions: It's a platformer... trolled!!! \nCan you get to the end? Probs not...\n=========================================\nTry my work in progress (NOT ACTIVE): https://scratch.mit.edu/projects/435019172/\n=========================================\nTry InsaneScratches inspired edition of A Trolled Platformer: \nhttps://scratch.mit.edu/projects/355756893/

@Stage\n\nwhen flag clicked\nforever\n    play sound [Happy Troll.mp3 v] until done\nend\n\n@You\n\nwhen flag clicked\ngo to x: (-187) y: (-94)\ngo to x: (-220) y: (-100)\nset size to (20) %\nshow\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#000000)?> or > then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or > then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or < or >> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or > then\n        change y by (1)\n    end\n    if <touching (falling block v)?> then\n        change y by (-4)\n    end\n    if <<touching color (#000000)?> or < or <touching color (#663b00)?>>> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y v] to [10]\n            if <(x) > [0]> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <<touching color (#000000)?> or > then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching color (#000000)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nshow\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n    end\nend\n\nwhen I receive [start game v]\ngo to x: (-207) y: (-121)\n\nwhen I receive [lvl2 v]\ngo to x: (-207) y: (-121)\n\nwhen flag clicked\nforever\n    set [x pos v] to (x position)\nend\n\nwhen flag clicked\nforever\n    if <touching (death pit v)?> then\n        broadcast (Game over v)\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [lvl3 v]\ngo to x: (-207) y: (-121)\n\nwhen I receive [lvl4 v]\ngo to x: (-207) y: (-100)\nstart sound [falling.mp3 v]\n\nwhen I receive [lvl5 v]\ngo to x: (-220) y: (148)\n\nwhen I receive [lvl6 v]\ngo to x: (-220) y: (-100)\n\nwhen I receive [lvl7 v]\ngo to x: (-145) y: (-123)\n\nwhen I receive [lvl8 v]\nwait (0.1) seconds\ngo to x: (-220) y: (-123)\n\nwhen I receive [lvl9 v]\ngo to x: (-240) y: (-123)\n\nwhen I receive [lvl10 v]\ngo to x: (-240) y: (-123)\n\nwhen I receive [win! v]\nhide\n\n@Floor\n\nwhen flag clicked\ngo to x: (0) y: (-168)\nshow\nswitch costume to (floor v)\n\nwhen I receive [lvl2 v]\ngo to x: (0) y: (-186)\nswitch costume to (lvl2 v)\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [lvl3 v]\nswitch costume to (floor v)\ngo to x: (0) y: (-168)\n\nwhen I receive [lvl4 v]\nswitch costume to (lvl4 v)\ngo to x: (0) y: (-168)\n\nwhen I receive [lvl5 v]\nswitch costume to (lvl5 v)\ngo to x: (0) y: (-50)\nwait (1) seconds\nforever\n    if <not <touching (you v)?>> then\n        switch costume to (lvl5 \(2\) v)\n        start sound [troll-laugh.mp3 v]\n        broadcast (Flag Move LVL5 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl6 v]\nswitch costume to (floor v)\ngo to x: (0) y: (-168)\n\nwhen I receive [win! v]\nhide\n\n@Title\n\nwhen flag clicked\nshow\ngo to x: (0) y: (999)\nglide (5) secs to x: (0) y: (90)\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [win! v]\nhide\n\n@Flag\n\nwhen flag clicked\ngo to x: (204) y: (-119)\nshow\nforever\n    if <touching (you v)?> then\n        broadcast (Start Game v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [start game v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [lvl2 v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL3 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl3 v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL4 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl4 v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL5 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl5 v]\ngo to x: (204) y: (-53)\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL6 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [flag move lvl5 v]\ngo to x: (204) y: (132)\n\nwhen I receive [lvl6 v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL7 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl7 v]\nstop [other scripts in sprite v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL8 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl8 v]\nstop [other scripts in sprite v]\ngo to x: (204) y: (-119)\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL9 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl9 v]\nstop [other scripts in sprite v]\ngo to x: (204) y: (-119)\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (LVL10 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (costume1 v)\n\nwhen I receive [lvl10 v]\nstop [other scripts in sprite v]\ngo to x: (204) y: (-119)\nset size to (20) %\nswitch costume to (trophy-pixelated-game-award-winner-vector-19568644 v)\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (Win! v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [win! v]\nhide\n\n@Troll\n\nwhen flag clicked\nhide\npoint in direction (-90)\ngo to x: (198) y: (-125)\n\nwhen I receive [start game v]\ngo to x: (198) y: (-125)\nshow\nglide (0.6) secs to x: (-205) y: (-125)\nhide\n\nwhen I receive [start game v]\nswitch costume to (meme-s-excited-troll-face-meme-decal v)\nwait (0.1) seconds\ngo to [front v] layer\nstart sound [SCREAM_4.mp3 v]\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [lvl2 v]\nstop [other scripts in sprite v]\n\nwhen I receive [lvl3 v]\nswitch costume to (1duf5k v)\ngo to [front v] layer\ngo to x: (202) y: (-118)\nset [ghost v] effect to (99)\nwait (1) seconds\nshow\nforever\n    if <[140] < (X Pos)> then\n        set [ghost v] effect to (0)\n        start sound [Annoying+Yell.mp3 v]\n        wait (1.09) seconds\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl3 v]\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl3 v]\nwait (1) seconds\nforever\n    if <[140] < (X Pos)> then\n        repeat (10)\n            change x by (-1)\n            wait (0) seconds\n            change x by (1)\n            wait (0) seconds\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [troll lvl 6 v]\nswitch costume to (meme-s-excited-troll-face-meme-decal v)\nwait (0.1) seconds\ngo to [front v] layer\nstart sound [SCREAM_4.mp3 v]\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl7 v]\nhide\n\nwhen I receive [lvl7 v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [troll lvl 7 v]\nstart sound [SCREAM_4.mp3 v]\nswitch costume to (meme-s-excited-troll-face-meme-decal v)\ngo to x: (198) y: (-125)\nshow\nglide (0.6) secs to x: (-240) y: (-125)\nhide\n\nwhen I receive [lvl10 v]\nwait (1) seconds\nforever\n    if <[140] < (X Pos)> then\n        repeat (10)\n            change x by (-1)\n            wait (0) seconds\n            change x by (1)\n            wait (0) seconds\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl10 v]\nswitch costume to (1duf5k v)\ngo to [front v] layer\ngo to x: (202) y: (-118)\nset [ghost v] effect to (99)\nwait (1) seconds\nshow\nforever\n    if <[140] < (X Pos)> then\n        set [ghost v] effect to (0)\n        start sound [Annoying+Yell.mp3 v]\n        wait (1.09) seconds\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [win! v]\nhide\n\n@Win or lose?\n\nwhen flag clicked\nhide\n\nwhen I receive [game over v]\ngo to x: (-12) y: (26)\nshow\nswitch costume to (images v)\nforever\n    change x by (10)\n    wait (0) seconds\n    change x by (-10)\n    wait (0) seconds\nend\n\nwhen I receive [win! v]\nshow\nswitch costume to (maxresdefault v)\nforever\n    show\n    set size to (0) %\n    go to x: (0) y: (30)\n    point in direction (90)\n    set [turn v] to [0]\n    forever\n        change size by (((100) - (size)) / (4))\n        change [turn v] by (4)\n        point in direction ((90) + (([sin v] of (turn) ) * (3)))\n        change y by (([sin v] of (turn) ) / (4))\n    end\nend\n\n@Level \n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\ngo to x: (0) y: (156)\nswitch costume to (costume1 v)\n\nwhen I receive [lvl2 v]\nswitch costume to (costume2 v)\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [lvl3 v]\nswitch costume to (costume3 v)\n\nwhen I receive [lvl4 v]\nswitch costume to (costume4 v)\n\nwhen I receive [lvl5 v]\nswitch costume to (costume5 v)\n\nwhen I receive [lvl6 v]\nswitch costume to (costume6 v)\n\nwhen I receive [lvl7 v]\nswitch costume to (costume7 v)\ngo to [front v] layer\n\nwhen I receive [lvl8 v]\nswitch costume to (costume8 v)\ngo to [front v] layer\n\nwhen I receive [lvl9 v]\nswitch costume to (costume9 v)\ngo to [front v] layer\n\nwhen I receive [lvl10 v]\nswitch costume to (costume10 v)\ngo to [front v] layer\n\nwhen I receive [win! v]\nhide\n\n@Troll Block\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl2 v]\nshow\ngo to x: (-125) y: (-47)\nset [ghost v] effect to (99)\ngo [backward v] (999) layers\nforever\n    if <touching (you v)?> then\n        set [ghost v] effect to (0)\n        start sound [troll-laugh.mp3 v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [lvl3 v]\nhide\n\nwhen I receive [lvl6 v]\nshow\nset [ghost v] effect to (99)\ngo [backward v] (999) layers\nforever\n    if <touching (you v)?> then\n        set [ghost v] effect to (0)\n        start sound [Hello Baby Girl-SoundBible.com-879828213.mp3 v]\n        go to x: (-231) y: (-18)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl7 v]\nhide\n\nwhen I receive [win! v]\nhide\n\n@Death Pit\n\nwhen flag clicked\ngo to x: (0) y: (-174)\nset [ghost v] effect to (99)\nshow\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [win! v]\nhide\n\n@Troll2\n\nwhen flag clicked\nhide\n\nwhen I receive [game over v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [lvl3 v]\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.5) to (2)) seconds\nend\n\nwhen I start as a clone\ngo to x: (pick random (-60) to (200)) y: (999)\nshow\npoint in direction (-90)\nforever\n    change y by (-5)\n    if <(y position) < [-130]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl4 v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win! v]\nhide\n\n@Troll3\n\nwhen flag clicked\nhide\nset size to (100) %\n\nwhen I receive [game over v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [lvl4 v]\ngo to x: (271) y: (-46)\nset [fall v] to [0]\nwait (1) seconds\nforever\n    if <[85] < (X Pos)> then\n        show\n        start sound [690.mp3 v]\n        repeat until <(y position) < [-195]>\n            change x by (-5)\n            change [fall v] by (-0.4)\n            change y by (Fall)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl4 v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl5 v]\nstop [other scripts in sprite v]\n\nwhen I receive [troll2 lvl 7 v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [troll2 lvl 7 v]\nshow\nstart sound [690.mp3 v]\ngo to x: (114) y: (197)\nforever\n    change y by (-15)\n    if <touching (floor v)?> then\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [button pressed v]\ngo to x: (-128) y: (999)\nset size to (300) %\nset [fall v] to [0]\nwait (1) seconds\nshow\nstart sound [690.mp3 v]\nrepeat until <(y position) < [-195]>\n    change [fall v] by (-0.4)\n    change y by (Fall)\nend\nhide\nstop [this script v]\n\nwhen I receive [button pressed v]\nwait (1) seconds\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl10 v]\ngo to x: (-128) y: (999)\nset size to (300) %\nset [fall v] to [0]\nshow\nstart sound [690.mp3 v]\nrepeat until <(y position) < [-195]>\n    change [fall v] by (-0.4)\n    change y by (Fall)\nend\nhide\nstop [this script v]\n\nwhen I receive [lvl10 v]\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [win! v]\nhide\n\nwhen I receive [lvl5 v]\nhide\n\n@Stage\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl6 v]\nshow\nswitch costume to (lvl6 v)\ngo to x: (-29) y: (86)\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [lvl7 v]\nshow\nswitch costume to (lvl7 v)\ngo to x: (1) y: (33)\n\nwhen I receive [lvl8 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win! v]\nhide\n\n@Falling Block\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl6 v]\nshow\ngo to x: (11) y: (85)\nforever\n    if <touching (you v)?> then\n        go [backward v] (999999) layers\n        start sound [Bye Bye -SoundBible.com-1483442951.mp3 v]\n        glide (2) secs to x: (11) y: (-170)\n        broadcast (Troll LVL 6 v)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [lvl8 v]\nshow\ngo to x: (5) y: (-168)\ngo [backward v] (99999) layers\nforever\n    if <touching (you v)?> then\n        go [backward v] (999999) layers\n        start sound [Bye Bye -SoundBible.com-1483442951.mp3 v]\n        broadcast (LVL9 BYE BYE v)\n        glide (0) secs to x: (5) y: (-999)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl9 bye bye v]\nstart sound [Bye Bye -SoundBible.com-1483442951.mp3 v]\n\nwhen I receive [lvl9 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win! v]\nhide\n\n@Giant Troll\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl7 v]\nshow\ngo to x: (-415) y: (16)\nforever\n    play sound [Annoying+Yell.mp3 v] until done\nend\n\nwhen I receive [lvl7 v]\ngo [backward v] (9999999) layers\ngo to x: (-415) y: (16)\nwait (0.1) seconds\nglide (15) secs to x: (38) y: (16)\nstop [other scripts in sprite v]\n\nwhen I receive [lvl7 v]\nforever\n    if <touching (you v)?> then\n        broadcast (Game over v)\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [lvl8 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win! v]\nhide\n\n@Trigger Line LVL 7\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl7 v]\nshow\nset [ghost v] effect to (99)\nforever\n    if <touching (you v)?> then\n        broadcast (Troll LVL 7 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl8 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win! v]\nhide\n\n@Trigger Line 2 LVL 7\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl7 v]\nshow\nset [ghost v] effect to (99)\nforever\n    if <touching (you v)?> then\n        broadcast (Troll2 LVL 7 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [lvl8 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win! v]\nhide\n\n@Button\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl9 v]\nshow\nset size to (500) %\nswitch costume to (off v)\nforever\n    if <touching (you v)?> then\n        broadcast (Button Pressed v)\n        switch costume to (on v)\n        start sound [troll-laugh.mp3 v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [lvl10 v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [win! v]\nhide\n\n@LVL9 Wall\n\nwhen flag clicked\nhide\n\nwhen I receive [button pressed v]\nshow\ngo to x: (8) y: (-1)\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [win! v]\nhide\n\n@Press This Button\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl9 v]\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [button pressed v]\nswitch costume to (costume2 v)\n\nwhen I receive [lvl10 v]\nhide\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [lvl10 v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [win! v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\n\n