blue. 2 - A Platformer v1.0.3

Instructions: English:\nPLAY PART 1 FIRST: https://scratch.mit.edu/projects/292349722\n---\nThis is the sequel to Part 1 of the "blue." series.\nControls:\nUse WAD or the arrow keys to control the Player (on mobile: tap on the screen ant the player will move in this direction).\nUse R to restart the level.\nUse M to mute/unmute the music.\nAll instructions are in game.\nAll levels are possible!\nHave fun!\n----------\nDeutsch/German:\nSPIELE TEIL 1 ZUERST: https://scratch.mit.edu/projects/292349722\n---\nBenutze WAD um den Spieler zu steuern(Auf mobilen Geräten: Tippe auf den Bildschirm und du bewegst dich in diese Richtung).\nBenutze M um die Musik an- und auszuschalten.\nBenutze R um das Level zurückzusetzen.\nJedes Level ist schaffbar.\nViel Spaß!\nDieses Spiel habe ich annlasslich des SDS "Monochromatic" entwickelt.

@Stage\n\nwhen flag clicked\nswitch backdrop to (blank v)\n\nwhen I receive [start v]\nswitch backdrop to (background v)\n\n@Player\n\nwhen I receive [next level v]\ngo to x: (-202) y: (-85)\nset [change in x v] to [0]\nset [change in y v] to [0]\n\ndefine Side Collsion\nif <touching color (#4a86e8)?> then\n    change y by (1)\n    if <touching color (#4a86e8)?> then\n        change y by (1)\n        if <touching color (#4a86e8)?> then\n            change y by (1)\n            if <touching color (#4a86e8)?> then\n                change y by (1)\n                if <touching color (#4a86e8)?> then\n                    change y by (1)\n                    if <touching color (#4a86e8)?> then\n                        change x by ((Change in x) * (-1))\n                        change y by (-5)\n                        if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n                            if <(Change in x) > [0]> then\n                                set [change in x v] to [-5]\n                            else\n                                set [change in x v] to [5]\n                            end\n                            set [change in y v] to [10]\n                        else\n                            set [change in x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Gravity\nchange [change in y v] by (-1)\nchange y by (change in y)\nif  then\n    change y by ((-1) * (change in y))\n    set [change in y v] to [0]\nend\nchange y by (-1)\nif <touching color (#4a86e8)?> then\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n        set [change in y v] to [15]\n    end\nend\nchange y by (1)\n\nwhen flag clicked\nhide\n\nhide\n\ndefine Death Check\nif <touching color (#345ea2)?> then\n    set size to (50) %\n    switch costume to (player v)\n    go to x: (-216) y: (-74)\n    set [change in x v] to [0]\n    set [change in y v] to [0]\n    play sound [Crunch v] until done\nend\n\nwhen [r v] key pressed\nset size to (65) %\ngo to x: (-216) y: (-74)\nset [change in x v] to [0]\nset [change in y v] to [0]\n\nwhen I receive [start v]\nshow\nforever\n    play sound [TheFatRat & Anna Yvette & Laura Brehm - Chosen v] until done\nend\n\nwhen I receive [start v]\nset size to (65) %\nswitch costume to (roundedright v)\nforever\n    if <(Mute?) = [1]> then\n        set volume to (0) %\n    else\n        set volume to (100) %\n    end\n    if <touching color (#00ff0c)?> then\n        set size to (25) %\n    end\nend\n\nwhen I receive [start v]\nforever\n    Death Check\n    if <key (m v) pressed?> then\n        change [mute? v] by (1)\n        if <(Mute?) = [2]> then\n            set [mute? v] to [0]\n        end\n        wait until <not <key (m v) pressed?>>\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching color (#80aaef)?> then\n        wait (0.01) seconds\n        change [change in y v] by (20)\n        play sound [Jump v] until done\n    end\nend\n\nwhen I receive [start v]\npoint in direction (90)\ngo to x: (-216) y: (-74)\nset [change in y v] to [0]\nset [change in x v] to [0]\nforever\n    Side Collsion\n    Gravity\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (player v)\n        change [change in x v] by (1)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (player v)\n        change [change in x v] by (-1)\n    end\n    set [change in x v] to ((Change in x) * (0.9))\n    change x by (Change in x)\n    if <[235] < (x position)> then\n        if <(Level) = [9]> then\n            if <(Colors collected?) = [True]> then\n                set size to (50) %\n                change [level v] by (1)\n                broadcast (next level v)\n            end\n        else\n            set size to (50) %\n            change [level v] by (1)\n            broadcast (next level v)\n        end\n    end\n    if <(y position) = [-179]> then\n        set size to (50) %\n        switch costume to (player v)\n        go to x: (-216) y: (-74)\n        set [change in x v] to [0]\n        set [change in y v] to [0]\n        play sound [Crunch v] until done\n    end\nend\n\n@Ground\n\nwhen flag clicked\nhide\nset [level v] to [1]\n\nwhen I receive [start v]\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [17]>> then\n    next costume\nend\n\nchange [level v] by (1)\n\n@Logo\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nplay sound [Connect v] until done\nwait (1.5) seconds\nhide\nbroadcast (Start v)\n\n@Tutorial\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [9]>> then\n    if <<not <(costume [number v]) = [7]>> and <not <(costume [number v]) = [8]>>> then\n        next costume\n    else\n        if <(Level) = [8]> then\n            hide\n        end\n        if <(Level) = [9]> then\n            switch costume to (8 v)\n            show\n        end\n        if <(Level) = [10]> then\n            hide\n        end\n        if <(Level) = [16]> then\n            switch costume to (9 v)\n            show\n        end\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Figur1\n\nwhen flag clicked\nhide\nset size to (30) %\n\nwhen I receive [start v]\nset [colors collected? v] to [False]\nwait until <(Level) = [9]>\nshow\nwait until <touching (player v)?>\nset [colors collected? v] to [True]\nhide\n\n