Ice-ling ll Platformer

Instructions: This is a ice-ling, he wants adventure, so you help him.\nCredit to @SUNBITES10 for the amazing intro!\nThanks for all the support and enjoy!\nCredits to\nAvicii for- Waiting for love\nto: @BVND1T for the idea

@Stage\n\n@Intro\n\nwhen flag clicked\nstart sound [1 v]\nswitch backdrop to (white v)\nset size to (100) %\nset [part v] to [Started]\nhide\nclear graphic effects\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <(Part) = [Finished]>\nbroadcast (Delete Clone v)\nwait (0.01) seconds\nset [clone id v] to [2]\nset [part v] to [Started]\ncreate clone of (_myself_ v)\nwait until <(Part) = [Finish]>\nbroadcast (Delete Clone v)\nwait (0.01) seconds\nset [clone id v] to [3]\ncreate clone of (_myself_ v)\nwait (0.001) seconds\nset [clone id v] to [4]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [5]\nrepeat (2)\n    Particle [17]\n    wait (1.5) seconds\nend\nwait until <(Part) = [Finished]>\nwait (0.01) seconds\nset [clone id v] to [6]\ncreate clone of (_myself_ v)\nwait until <(Part) = [Finished]>\nwait (2) seconds\nbroadcast (Delete Clone v)\nwait (0.01) seconds\nset [clone id v] to [7]\ncreate clone of (_myself_ v)\nwait until <(Part) = [Finished]>\nwait (1) seconds\nbroadcast (Delete Clone v)\nwait (0.01) seconds\nset [clone id v] to [8]\nParticle [8]\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    switch costume to (moving screen v)\n    go to [back v] layer\n    repeat (17)\n        set [clone id v] to [Moving Screen]\n        change [color v] effect by (5)\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n    end\n    set [part v] to [Finished]\nend\nif <(Clone ID) = [Moving Screen]> then\n    show\n    go to x: (-470) y: (0)\n    repeat until <(x position) = [0]>\n        change x by (((0) - (x position)) / (10))\n    end\n    delete this clone\nend\nif <(Clone ID) = [2]> then\n    show\n    switch costume to (green line v)\n    set [ghost v] effect to (100)\n    go to x: (-100000) y: (0)\n    repeat (10)\n        set [clone id v] to [Green Lines]\n        create clone of (_myself_ v)\n        change y by (-50)\n    end\n    wait (0.5) seconds\n    set [part v] to [Finish]\nend\nif <(Clone ID) = [Green Lines]> then\n    go to [back v] layer\n    repeat until <(x position) = [0]>\n        change x by (((0) - (x position)) / (7))\n        change [ghost v] effect by (-10)\n    end\nend\nif <(Clone ID) = [Wheel 2]> then\n    switch costume to (wheel 2 v)\nend\nif <(Clone ID) = [4]> then\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\n    switch costume to (logo v)\n    set [size - direction v] to [35]\n    set [part v] to [Started]\n    repeat (2)\n        repeat (50)\n            set [size - direction v] to (((size - direction) * (0.8)) + (((100) - (size)) / (5)))\n            change size by (size - direction)\n        end\n        set [size - direction v] to [35]\n    end\n    wait (0.1) seconds\n    set [size - direction v] to [50]\n    clear graphic effects\n    repeat (64)\n        point in direction ((90) + (([tan v] of (size - direction) ) * (6)))\n        change [size - direction v] by (5)\n    end\n    set [part v] to [Finished]\nend\nif <(Clone ID) = [6]> then\n    set [part v] to [Started]\n    clear graphic effects\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\n    switch costume to (username v)\n    set [pixelate v] effect to (100)\n    repeat (30)\n        change [pixelate v] effect by (-3)\n    end\n    set [pixelate v] effect to (0)\n    wait (0.01) seconds\n    set [part v] to [Finished]\nend\nif <(Clone ID) = [7]> then\n    set [part v] to [Started]\n    repeat (6)\n        create clone of (_myself_ v)\n        set [clone id v] to [Square]\n    end\nend\nif <(Clone ID) = [Square]> then\n    switch costume to (square v)\n    set size to (796) %\n    clear graphic effects\n    show\n    go to x: (0) y: (0)\n    go to [front v] layer\n    repeat (300)\n        change size by ((size) / (-7))\n    end\n    set [part v] to [Finished]\nend\nif <(Clone ID) = [8]> then\n    set size to (100) %\n    switch costume to (yellow particle v)\n    show\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (0)\n    repeat (30)\n        change x by (xvel)\n        change y by (yvel)\n        change [yvel v] by (-3)\n        change [ghost v] effect by (5)\n    end\n    broadcast (Start v)\n    delete this clone\nend\nbroadcast (Hi v)\n\nwhen I receive [delete clone v]\ndelete this clone\n\nwhen I start as a clone\nif <(Clone ID) = [3]> then\n    show\n    go to x: (0) y: (0)\n    switch costume to (wheel 1 v)\n    set [clone id v] to [Wheel 2]\n    create clone of (_myself_ v)\n    point in direction (90)\n    forever\n        turn right (3) degrees\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [5]> then\n    switch costume to (blue particle v)\n    show\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (0)\n    repeat (30)\n        change x by (xvel)\n        change y by (yvel)\n        change [yvel v] by (-3)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\ndefine Particle (times)\nrepeat (times)\n    create clone of (_myself_ v)\n    set [xvel v] to (pick random (-25) to (25))\n    set [yvel v] to (pick random (10) to (25))\nend\n\n@Clouds\n\nwhen I start as a clone\ngo to [back v] layer\ngo to x: (200) y: (pick random (50) to (180))\nshow\nrepeat until <(x position) < [-200]>\n    change x by (-3)\n    if <<([costume name v] of [platform v]) > [6]> and <([costume name v] of [platform v]) < [11]>> then\n        hide\n        delete this clone\n    end\nend\nrepeat (10)\n    hide\n    delete this clone\nend\nif <(Level) = [8]> then\n    forever\n        hide\n    end\nend\n\nwhen I receive [hi v]\nwait (4) seconds\nset [ghost v] effect to (50)\nshow\n\nwhen I receive [start v]\nforever\n    wait (2) seconds\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\n\n@platform\n\nwhen I receive [hi v]\ngo to x: (0) y: (0)\nwait (4) seconds\nshow\n\nwhen I receive [naxt level v]\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\nbroadcast (Start v) and wait\n\nwhen I receive [hi v]\nwait (4) seconds\nshow\n\n@Lava\n\nwhen I receive [hi v]\nwait (4) seconds\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\nforever\n    glide (1.5) secs to x: (0) y: (25)\n    glide (1.5) secs to x: (0) y: (-10)\nend\n\nwhen flag clicked\nhide\nforever\n    if <not <(Level) = [50]>> then\n        go to [back v] layer\n    else\n        go to [front v] layer\n        stop [this script v]\n    end\nend\n\nwhen [space v] key pressed\nhide\nbroadcast (outro v) and wait\n\nwhen I receive [im here v]\nhide\n\nwhen I receive [done v]\nshow\n\n@player\n\nwhen I receive [start v]\nforever\n    if <<[240] < (x position)> and <(Dead) = [0]>> then\n        broadcast (NAXT LEVEL v)\n        change [level v] by (1)\n        reset\n    end\nend\n\nwhen flag clicked\nhide\nhide variable [xv v]\nhide variable [dead v]\nhide variable [level v]\nhide variable [yv v]\nhide\n\ndefine reset\nclear graphic effects\npoint in direction (90)\ngo to x: (-220) y: (-16)\nswitch costume to (1 v)\nset [dead v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nset size to (20) %\nshow\n\ndefine Dead\nset [dead v] to [1]\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nreset\n\nwhen I start as a clone\nswitch costume to (3 v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change [color v] effect by (20)\n    change size by (-1.5)\nend\ndelete this clone\n\ndefine Tick\nshow\nset [dead v] to [0]\nset [level v] to [1]\nset size to (20) %\nreset\nforever\n    create clone of (_myself_ v)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (1 v)\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)>>> and <(Dead) = [0]>> then\n        switch costume to (2 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (.9))\n    change x by (Xv)\n    if <touching (platform v)?> then\n        change y by (2)\n        if <touching (platform v)?> then\n            change y by (2)\n            if <touching (platform v)?> then\n                change y by (2)\n                if <touching (platform v)?> then\n                    change y by (2)\n                    if <touching (platform v)?> then\n                        change y by (2)\n                        if <touching (platform v)?> then\n                            change x by ((Xv) * (-2))\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) + (10))>>>> 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 [13]\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 (-0.8)\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    change y by (1)\n    if <<touching (spike v)?> or <touching (lava v)?>> then\n        Dead\n    end\n    if <(y position) < [-180]> then\n        Dead\n    end\nend\n\nwhen I receive [hi v]\nwait (4) seconds\nshow\nTick\n\nwhen I receive [1 v]\nreset\n\nwhen I receive [hi v]\nwait (4.5) seconds\nshow\nforever\n    play sound [Waiting For Love v] until done\nend\n\n@spike\n\nwhen I receive [start v]\ngo to [back v] layer\nshow\nswitch costume to (1 v)\n\nwhen I receive [start v]\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to x: (35) y: (20)\nhide\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [13]> then\n        go to [back v] layer\n    end\nend\n\nwhen flag clicked\nhide\nset size to (100) %\n\nwhen I receive [hi v]\nwait (4) seconds\nshow\n\n@Sprite2\n\nwhen flag clicked\nbroadcast (im here v) and wait\nshow\nwait (3.5) seconds\nhide\nbroadcast (done v) and wait\n\nwhen flag clicked\nswitch costume to (hide v)\n\n