GLACIER - a platformer

Instructions: Glacier 2: https://scratch.mit.edu/projects/578451560/\n\nEntered in @htmlrocks1's awesome contest\n\nArrow keys to move\nAvoid spikes and holes. \nSpace to change colour.\nTo wall jump press up and right at the same time

@Stage\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (1 v)\nshow\ngo to x: (-208) y: (-70)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    if <key (left arrow 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 (#ffffff)?> then\n        change y by (1)\n        if <touching color (#ffffff)?> then\n            change y by (1)\n            if <touching color (#ffffff)?> then\n                change y by (1)\n                if <touching color (#ffffff)?> then\n                    change y by (1)\n                    if <touching color (#ffffff)?> then\n                        change x by ((X) * (-1))\n                        change y by (-4)\n                    end\n                    if <key (up arrow v) pressed?> then\n                        if <(X) > [0]> then\n                            set [x v] to [-5]\n                        else\n                            set [x v] to [5]\n                        end\n                        set [y v] to [10]\n                    else\n                        set [y v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching color (#ffffff)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#ffffff)?> then\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [238]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-208) y: (-70)\n        change [level v] by (1)\n    end\n    if <(y position) < [-178]> then\n        go to x: (-208) y: (-70)\n        hide\n        wait (0.3) seconds\n        show\n        wait (0.3) seconds\n        hide\n        wait (0.3) seconds\n        show\n    end\n    if <touching color (#818181)?> then\n        go to x: (-208) y: (-70)\n        hide\n        wait (0.3) seconds\n        show\n        wait (0.3) seconds\n        hide\n        wait (0.3) seconds\n        show\n    end\nend\n\nwhen [t v] key pressed\ngo to (mouse-pointer v)\n\nwhen [space v] key pressed\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen [b v] key pressed\nforever\n    wait (0.5) seconds\n    next costume\nend\n\nwhen I receive [die v]\n\nwhen I start as a clone\n\nwhen I receive [skip v]\ngo to x: (-208) y: (-70)\n\n@Screen_Shot_2021-07-24_at_10\n\nwhen I start as a clone\ngo to [back v] layer\ngo to x: (pick random (-250) to (250)) y: (190)\nset size to (pick random (25) to (60)) %\nset [brightness v] effect to (size)\nset [ghost v] effect to (pick random (50) to (160))\nshow\nglide (((100) - (size)) / (10)) secs to x: (pick random (-240) to (240)) y: (-180)\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nforever\n    play sound [Sunshine v] until done\nend\n\n@Heart\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [end v]\nshow\n\n@Heart2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [end v]\nshow\n\n@Detector\n\nwhen flag clicked\nhide\nset [favourite___ v] to [0]\nset [love__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(Love__) = [1]> and <(Favourite___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nplay sound [Tada v] until done\nswitch costume to (1 v)\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [love__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [love__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [favourite___ v] to [0]\n    forever\n        set [favourite v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [favourite___ v] to [1]\n        end\n    end\nend\n\n@Button2\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [end v]\nhide\n\nwhen this sprite clicked\nnext backdrop\nchange [level v] by (1)\nbroadcast (SKIP v)\n\n@Screen Shot 2021-08-20 at 3\n\nhide\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n