Trolled 2 (A Mobile Friendly Platformer)

Instructions: Part 1: https://scratch.mit.edu/projects/361781343/\nPart 3: https://scratch.mit.edu/projects/378456484\n**************************************************************\nArrow keys, WASD or tap to move.\nBeat all 10 levels to win.\n**************************************************************\nPlay my other games here.\nhttps://scratch.mit.edu/studios/4685976/

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nforever\n    play sound [TheFatRat - Unity \(Instrumental\) v] until done\nend\n\nwhen I receive [end v]\nswitch backdrop to (backdrop1 v)\nstop [other scripts in sprite v]\nforever\n    play sound [End v] until done\nend\n\n@Player\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (-5)\nend\ndelete this clone\n\nwhen flag clicked\ngo to x: (-200) y: (-100)\nset size to (80) %\nswitch costume to (costume1 v)\nshow\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [12]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (platform v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            set [yv v] to [12]\n        end\n    end\n    if <touching (bounce pad v)?> then\n        set [yv v] to [20]\n    end\n    change y by (1)\n    if <not <(Level) = [4]>> then\n        if <(x position) > [238]> then\n            broadcast (message1 v)\n            reset\n        end\n    else\n        if <[-238] > (x position)> then\n            broadcast (message1 v)\n            reset\n        end\n    end\n    if <key (r v) pressed?> then\n        set [xv v] to [0]\n        reset\n    end\n    if <<(y position) < [-177]> or <touching (spikes v)?>> then\n        set [xv v] to [0]\n        reset\n    end\n    if <touching (zoom v)?> then\n        set [xv v] to [25]\n    end\n    if <touching (zoom2 v)?> then\n        set [xv v] to [-25]\n    end\nend\n\ndefine reset\ngo to x: (-200) y: (-100)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [message1 v]\nreset\n\nwhen I receive [retry v]\nreset\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Platform\n\nwhen I receive [message1 v]\nnext costume\nforever\n    set [level v] to (costume [number v])\n    if <(Level) = [11]> then\n        broadcast (END v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nclear graphic effects\nshow\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [light v]\nset [brightness v] effect to (10)\nwait (2) seconds\nclear graphic effects\n\nwhen I receive [message1 v]\nforever\n    if <(Level) = [10]> then\n        ask [What was the only missing number in blue text?] and wait\n        forever\n            if <<<<<(answer) = [6]> or <(answer) = [six]>> or <(answer) = [Six]>> or <(answer) = [SIX]>> or <(answer) = [XI]>> then\n                broadcast (yes v)\n                stop [this script v]\n            end\n        end\n    end\nend\n\n@Spikes\n\nwhen I receive [message1 v]\nshow\nnext costume\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nclear graphic effects\nshow\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [yes v]\nhide\n\n@Bounce Pad\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nclear graphic effects\nshow\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite2\n\nwhen flag clicked\nclear graphic effects\ngo to x: (-210) y: (162)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            broadcast (retry v)\n        else\n            set [brightness v] effect to (10)\n        end\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite3\n\nwhen flag clicked\nclear graphic effects\ngo to x: (-150) y: (162)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            broadcast (hint v)\n        else\n            set [brightness v] effect to (10)\n        end\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Sprite4\n\nwhen I receive [message1 v]\nhide\nnext costume\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nclear graphic effects\nhide\n\nwhen I receive [hint v]\ngo to [front v] layer\nif <<(Level) = [7]> or <(Level) = [9]>> then\n    broadcast (light v)\nelse\n    if <(Level) = [8]> then\n        broadcast (bright v)\n    else\n        if <(Level) = [10]> then\n            show\n            wait (5) seconds\n            hide\n        else\n            show\n            wait (2) seconds\n            hide\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Fake\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nclear graphic effects\nshow\n\nwhen I receive [bright v]\nset [brightness v] effect to (50)\nwait (2) seconds\nclear graphic effects\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Zoom\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nclear graphic effects\nshow\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Zoom2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nclear graphic effects\nshow\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n