Corruption [Platformer]

Instructions:     -Can you undo the corruption and save the world?-\n\n       -In Corruption, your job is to find the corrupter-\n\n                        Click the flag two times\n\n              -Controls are (ASWD) or arrow keys-\n\nThis took forever plz can we get front page??

@Stage\n\nwhen I receive [message1 v]\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\n\nwhen I receive [message1 v]\nif <(booper) = [1]> then\n    switch backdrop to (blue sky 2  v)\nend\nstop [this script v]\n\nwhen I receive [outro v]\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [intro is done v]\nswitch backdrop to (blue sky 2  v)\n\n@Bob the Blob\n\nwhen I receive [die v]\ncreate clone of (_myself_ v)\ngo to x: (-206) y: (-128)\nplay sound [Crunch v] until done\n\nwhen flag clicked\nforever\n    if <touching (danger v)?> then\n        broadcast (die v)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <touching (goal v)?> then\n        broadcast (message1 v)\n    end\nend\n\nwhen I receive [start 2 v]\nshow\nif <<(Title) > [0]> and <(Full) < [12]>> then\n    hide\n    stop [this script v]\nend\nReset Level\nforever\n    switch costume to (hitbox v)\n    Controls - Jump, Crouch\n    Gravity\n    Check Hit Ceiling / Floor <(speed y) > [0]>\n    if <(y position) < [-189]> then\n        Reset Level\n    end\n    if <(Improved2: wall jump) > [0]> then\n        change [improved2: wall jump v] by (-1)\n    else\n        Controls - Left and Right\n    end\n    if <(speed x) < [-0.5]> then\n        Walk (-90) (speed x) max step (([ceiling v] of ([abs v] of ((speed x) * (1.3)) ) ) + (1))\n    else\n        if <(speed x) > [0.5]> then\n            Walk (90) (speed x) max step (([ceiling v] of ([abs v] of ((speed x) * (1.3)) ) ) + (1))\n        else\n            set [frame v] to [0]\n        end\n    end\n    Set Costume\n    broadcast (tick v) and wait\nend\n\ndefine Controls - Left and Right\nset [speed x v] to ((speed x) * (0.7))\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [speed x v] by (-1.5)\nend\nif <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n    change [speed x v] by (1.5)\nend\n\ndefine Walk (direction) (speed) max step (step)\npoint in direction (direction)\nchange x by (speed)\nchange [frame v] by (([abs v] of (speed) ) / (8))\nset [slope v] to [0]\nGet Touching <(in platforrm) = [1]>\nrepeat until <<(slope) = (step)> or <(touch) = [0]>>\n    change y by (1)\n    change [slope v] by (1)\n    Get Touching <(in platforrm) = [1]>\nend\nif <(slope) = (step)> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\n    if <<(touch) = [1]> and <(in platforrm) = [1]>> then\n        set [in platforrm v] to [2]\n        Walk (direction) (speed) max step (step)\n        if <(speed x) = [0]> then\n            set [in platforrm v] to [1]\n        end\n    else\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <([abs v] of (speed) ) > [3.5]>> and <(touch) > [1]>> then\n            set [speed x v] to ((-1.2) * (speed))\n            set [speed y v] to [11]\n            set [falling? v] to [6]\n            set [improved2: wall jump v] to [15]\n        else\n            set [speed x v] to [0]\n        end\n    end\nend\n\ndefine Controls - Jump, Crouch\nif <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n    if <<(jump key) = [0]> and <(falling?) < [3]>> then\n        set [speed y v] to [14]\n        set [falling? v] to [6]\n        set [jump key v] to [1]\n    end\nelse\n    set [jump key v] to [0]\nend\nif <<key (s v) pressed?> or <key (down arrow v) pressed?>> then\n    set [in platforrm v] to [2]\nend\n\ndefine Gravity\nif <<(speed y) < [4]> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    change [speed y v] by (-1)\nelse\n    change [speed y v] by (-2)\nend\nchange y by (speed y)\nchange [falling? v] by (1)\n\ndefine Check Hit Ceiling / Floor <up?>\nGet Touching \nif <(touch) = [0]> then\n    set [in platforrm v] to [1]\nelse\n    if <<up?> and <(touch) = [1]>> then\n        set [in platforrm v] to [2]\n    end\nend\nrepeat until <(touch) < (in platforrm)>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    Get Touching <not <up?>>\n    set [speed y v] to [0]\nend\n\ndefine Get Touching <check platform?>\nif <touching (ground v)?> then\n    set [touch v] to [9]\nelse\n    if <<check platform?> and <touching (ground v)?>> then\n        set [touch v] to [1]\n    else\n        set [touch v] to [0]\n    end\nend\n\ndefine Reset Level\nset size to (25) %\nset rotation style [left-right v]\ngo to x: (-206) y: (-128)\nreset timer\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [falling? v] to [10]\nset [in platforrm v] to [1]\nset [frame v] to [0]\nset [improved2: wall jump v] to [0]\n\ndefine Set Costume\nif <(falling?) < [6]> then\n    if <(frame) = [0]> then\n        switch costume to (stand_1 v)\n    else\n        switch costume to ([floor v] of ((4) + ((frame) mod (8))) )\n    end\nelse\n    if <(speed y) > [0]> then\n        switch costume to (jump_1 v)\n    else\n        switch costume to (fall_1 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(booper) = [1]> then\n        stop all sounds\n        play sound [Shingeki no Kyojin - attack音D \(OST\) \(1\) v] until done\n    end\nend\n\nwhen I start as a clone\nrepeat (50)\n    change [ghost v] effect by (2)\nend\ndelete this clone\n\nwhen I receive [message1 v]\ngo to x: (-206) y: (-128)\nplay sound [Crash Beatbox v] until done\n\nwhen I receive [message1 v]\nhide\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nnext costume\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\nshow\n\nwhen flag clicked\nforever\n    if <(booper) = [3]> then\n        stop all sounds\n        play sound [tobuuu v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <(booper) = [2]> then\n        stop all sounds\n        play sound [--__----__- v] until done\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [not too late v]\n\n@ground\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [h-i-a-t-i-h v]\nshow\n\nwhen I receive [start 2 v]\nswitch costume to (costume1 v)\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen flag clicked\nforever\n    if <(booper) = [2]> then\n        set [ghost v] effect to (pick random (1) to (50))\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [message1 v]\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nnext costume\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\n\nwhen flag clicked\nforever\n    if <<(Level) > [10]> and <(Level) < [20]>> then\n        set [booper v] to [2]\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@goal\n\nwhen flag clicked\nset [booper v] to [1]\nhide\nset size to (60) %\ngo to x: (205) y: (-73)\npoint in direction (90)\n\nwhen I receive [start 2 v]\nshow\n\nwhen I receive [m2 v]\nshow\nset [ghost v] effect to (100)\nset [brightness v] effect to (0)\nrepeat (100)\n    change [ghost v] effect by (-1)\n    wait (0.01) seconds\nend\n\nwhen I receive [message1 v]\n\nbroadcast (m2 v)\n\nwhen flag clicked\nforever\n    if <(booper) = [2]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(booper) = [2]> then\n        repeat (10)\n            change [pixelate v] effect by (5)\n        end\n        repeat (10)\n            change [pixelate v] effect by (-5)\n        end\n    else\n        change [color v] effect by (1)\n    end\nend\n\nwhen I receive [message1 v]\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nhide\nset [ghost v] effect to (100)\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\nset [ghost v] effect to (100)\nhide\n\n\n\nwhen I receive [end 1 v]\nhide\nstop [other scripts in sprite v]\n\n@Danger\n\nwhen I receive [start 2 v]\nshow\n\nwhen flag clicked\nset size to (100) %\nset [level v] to [1]\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [start 2 v]\nshow\ngo to x: (0) y: (-106)\nset [booper v] to [1]\nforever\n    if <(Level) = [1]> then\n        set [booper v] to [1]\n    end\n    if <(Level) = [2]> then\n        show\n        repeat (10)\n            change x by (5)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            change x by (-5)\n            wait (0.01) seconds\n        end\n    end\n    if <(Level) = [3]> then\n        repeat (10)\n            change x by (5)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            change x by (-5)\n            wait (0.01) seconds\n        end\n    end\n    if <(Level) = [4]> then\n        repeat (10)\n            change x by (5)\n            change y by (-5)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            change x by (-5)\n            change y by (-5)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            change x by (5)\n            change y by (5)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            change x by (-5)\n            change y by (5)\n            wait (0.01) seconds\n        end\n    end\nend\n\nwhen I receive [start 2 v]\nforever\n    if <(Level) = [5]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (x4 v)\n        repeat (10)\n            change x by (5)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            change x by (-5)\n            wait (0.01) seconds\n        end\n    end\n    if <(Level) = [9]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (x5 v)\n        go to x: (35) y: (-106)\n        repeat (10)\n            change x by (5)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            change x by (-5)\n            wait (0.01) seconds\n        end\n        if <(Level) = [13]> then\n            switch costume to (x6 v)\n            repeat (10)\n                change y by (5)\n                wait (0.01) seconds\n            end\n            repeat (10)\n                change y by (-5)\n                wait (0.01) seconds\n            end\n        end\n    end\nend\n\nwhen I receive [message1 v]\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nnext costume\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\n\nwhen I receive [start 2 v]\nforever\n    if <(Level) = [14]> then\n        switch costume to (x7 v)\n    end\n    if <(Level) = [15]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [16]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [17]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [18]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [19]> then\n        switch costume to (x8 v)\n        repeat (10)\n            change x by (5)\n            wait (0.01) seconds\n        end\n        repeat (10)\n            change x by (-5)\n            wait (0.01) seconds\n        end\n    end\n    if <(Level) = [20]> then\n        switch costume to (costume1 v)\n        set [booper v] to [3]\n    end\n    if <(Level) = [21]> then\n        switch costume to (x9 v)\n        repeat (10)\n            change x by (1)\n            wait (0.01) seconds\n            change size by (10)\n        end\n        repeat (10)\n            change x by (-1)\n            wait (0.01) seconds\n            change size by (-10)\n        end\n    end\n    if <(Level) = [22]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [23]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [24]> then\n        set [booper v] to [4]\n        switch costume to (x10 v)\n    end\n    if <(Level) = [25]> then\n        broadcast (end 1 v)\n        switch costume to (costume4 v)\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nbroadcast (outro v)\n\nwhen I receive [not too late v]\nsay [Do you think I can change?] for (4) seconds\nsay [Ok then.] for (3) seconds\nsay (join [Thank you ] (join (username) [ for making me a good person again.])) for (6) seconds\nbroadcast (end v)\nbroadcast (outro v)\n\n@Intro 2\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [intro is done v]\nshow\nforever\n    clear graphic effects\n    switch costume to (costume3 v)\n    start sound [Crunch v]\n    repeat (3)\n        start sound [Crunch v]\n        next costume\n        wait (3) seconds\n    end\n    broadcast (start v)\n    hide\n    stop [this script v]\nend\n\n@Start\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\nset [open? v] to [no]\nset [size velocity v] to [0]\nset size to (100) %\nrepeat until <(Open?) = [yes]>\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            set [ghost v] effect to (0)\n            set [open? v] to [yes]\n            repeat (2)\n                change [ghost v] effect by (12)\n                set [size velocity v] to (((size velocity) * (0.8)) + (((250) - (size)) * (0.2)))\n                change size by (size velocity)\n            end\n            broadcast (start 2 v)\n            repeat (25)\n                change [ghost v] effect by (12)\n                set [size velocity v] to (((size velocity) * (0.8)) + (((250) - (size)) * (0.2)))\n                change size by (size velocity)\n            end\n        else\n            set [size velocity v] to (((size velocity) * (0.8)) + (((130) - (size)) * (0.2)))\n            change size by (size velocity)\n            set [ghost v] effect to (0)\n        end\n    else\n        set [brightness v] effect to (0)\n        set [size velocity v] to (((size velocity) * (0.8)) + (((100) - (size)) * (0.2)))\n        change size by (size velocity)\n        set [ghost v] effect to (0)\n    end\nend\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Logo\n\nwhen flag clicked\nhide\nset size to (0) %\nchange [size change v] by (4)\nrepeat until <[100] = ([floor v] of (size) )>\n    go to [front v] layer\n    change size by (((100) - (size)) / (4))\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (19)\n    point in direction (((5) * ([cos v] of ((timer) * (80)) )) + (90))\nend\n\nwhen I receive [start v]\nshow\nforever\n    point in direction (((5) * ([cos v] of ((timer) * (80)) )) + (90))\nend\n\nwhen I receive [start v]\nset size to (0) %\nchange [size change v] by (4)\nrepeat until <[1000] = ([floor v] of (size) )>\n    go to [front v] layer\n    change size by (((1000) - (size)) / (4))\nend\n\nwhen I receive [start 2 v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite1\n\nwhen I receive [start 2 v]\nshow\ngo to x: (0) y: (0)\nset [booper v] to [1]\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [message1 v]\nwait (6) seconds\nbroadcast (m2 v)\n\nwhen flag clicked\nforever\n    if <(booper) = [2]> then\n        repeat (10)\n            change [pixelate v] effect by (5)\n        end\n        repeat (10)\n            change [pixelate v] effect by (-5)\n        end\n    else\n        repeat (10)\n            change [pixelate v] effect by (0.5)\n        end\n        repeat (10)\n            change [pixelate v] effect by (-0.5)\n        end\n    end\nend\n\nwhen I receive [message1 v]\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nnext costume\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <<<(booper) = [2]> or <(booper) = [3]>> or <(booper) = [4]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [message1 v]\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\n\nwhen flag clicked\nforever\n    if <(booper) = [3]> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nset [mosaic v] effect to (50)\nforever\n    if <(booper) = [3]> then\n        change [color v] effect by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(booper) = [2]> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(booper) = [4]> then\n        switch costume to (costume3 v)\n        set [color v] effect to (0)\n        set [mosaic v] effect to (0)\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite3\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    set [ghost v] effect to (999)\n    go to [front v] layer\nend\n\n@Evil + good bob\n\nwhen flag clicked\nhide\nhide\nhide\nforever\n    if <(Level) = [25]> then\n        show\n        say [YOU!!] for (3) seconds\n        say [LISTEN!!] for (3) seconds\n        say [YOU CAN CHANGE!!] for (3) seconds\n        say [UNDO THIS CORRUPTION!! YOU CAN BE GOOD AGAIN!!] for (5) seconds\n        broadcast (not too late v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [outro v]\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\nset size to (40) %\npoint in direction (90)\ngo to x: (0) y: (0)\nclear graphic effects\nswitch costume to (costume1 v)\nshow\ngo to [front v] layer\nrepeat (4)\n    set [ghost v] effect to (100)\n    set size to (10) %\n    repeat (20)\n        change size by (5)\n        change [ghost v] effect by (-10)\n    end\n    next costume\nend\nswitch costume to (costume5 v)\nbroadcast (outro 2 v)\n\nwhen I receive [outro v]\nforever\n    play sound [kira-new-world-ncs-release v] until done\nend\n\nwhen I receive [outro 2 v]\nshow\nforever\n    point in direction (((5) * ([cos v] of ((timer) * (80)) )) + (90))\nend\n\nwhen I receive [outro 2 v]\nshow\nset size to (0) %\nchange [size change v] by (4)\nrepeat until <[100] = ([floor v] of (size) )>\n    go to [front v] layer\n    change size by (((100) - (size)) / (4))\nend\n\n@Screen Shot 2019-10-09 at 6\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (2) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nbroadcast (Intro is done v)\n\n