-Freeze-  (A Platformer) remix

Instructions: Click the green flag.\nYellow stuff is bouncy\nRed spikes: you will die from\nYellow spikes: They are bouncy\nUp arrow: Jump\nRight arrow: Move right\nLeft arrow: Move left

@Stage\n\nwhen flag clicked\nforever\n    play sound [Vexento - Devotion v] until done\nend\n\n@TB\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nshow\n\n@player\n\nwhen flag clicked\ngo to x: (-200) y: (-75)\nclear graphic effects\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching color (#cccccc)?> then\n        change y by (1)\n        if <touching color (#cccccc)?> then\n            change y by (1)\n            if <touching color (#cccccc)?> then\n                change y by (1)\n                if <touching color (#cccccc)?> then\n                    change y by (1)\n                    if <touching color (#cccccc)?> then\n                        change y by (1)\n                        if <touching color (#cccccc)?> then\n                            change y by (1)\n                            if <touching color (#cccccc)?> then\n                                change y by (-6)\n                                change x by ((x) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#cccccc)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#cccccc)?> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [y v] to [13]\n    end\n    change y by (1)\n    if <<<touching color (#ff6666)?> and <not <touching (lf v)?>>> or <(y position) < [-175]>> then\n        death animation\n        go to x: (-200) y: (-115)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(x position) > [240]> then\n        change [level v] by (1)\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-210) y: (-115)\n    end\n    if <touching color (#ffc366)?> then\n        set [y v] to [17]\n    end\n    if <<touching color (#b2dcff)?> and <not <touching (shadows v)?>>> then\n        set [y v] to ((y) / (2))\n        if <key (up arrow v) pressed?> then\n            change [y v] by (5)\n        end\n    end\nend\n\ndefine death animation\nrepeat (15)\n    change [ghost v] effect by (6.7)\nend\nwait (0.35) seconds\nset [ghost v] effect to (0)\n\nwhen [space v] key pressed\nif <[] = [xamuil2]> then\n    change [level v] by (1)\n    set [x v] to [0]\n    set [y v] to [0]\n    go to x: (-210) y: (-115)\nend\n\n@LEVEL\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (LEVEL)\nend\n\n@LF\n\nwhen flag clicked\nset [thing v] to [0]\nforever\n    if <(LEVEL) = [25]> then\n        show\n    else\n        hide\n    end\n    set y to (([sin v] of (thing) ) * (3))\n    change [thing v] by (10)\nend\n\n@Cloud\n\nwhen flag clicked\nhide\nclear graphic effects\ngo to [back v] layer\nforever\n    create clone of (_myself_ v)\n    wait (pick random (7) to (10)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-5)\nend\nswitch costume to (pick random (1) to (6))\nset size to (pick random (100) to (120)) %\ngo to x: (300) y: (pick random (160) to (70))\nshow\nforever\n    change x by (-0.5)\n    if <(x position) < [-260]> then\n        repeat (10)\n            change [ghost v] effect by (5)\n        end\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nwait (.1) seconds\nforever\n    set size to ((size) + (10)) %\n    repeat (15)\n        change size by (-0.67)\n    end\nend\n\n@SHADOWS\n\nwhen flag clicked\nshow\nset [ghost v] effect to (25)\ngo to x: (0) y: (0)\nforever\n    switch costume to (LEVEL)\nend\n\nhide\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-155) y: (-169)\n\nwhen this sprite clicked\nbroadcast (next level v)\nchange [level v] by (1)\n\n