☃️❄️Winter Platformer❄️☃️

Instructions: Double click the green flag !!!Use up key to go up, right key to go right, left key to go left!!!!\nBeware  of = spikes and ice ❗️❗️❗️❗️\nThis game is quite easy!!!\nNote: every level is possible\nenjoy!!!!!!!!

@Stage\n\nwhen flag clicked\nforever\n    play sound [songgggggggggg!!! v] until done\nend\n\n@Player\n\nwhen flag clicked\nhide\nshow\nstart \n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (restart v)\n\nwhen I receive [restart v]\nset [x_velocity v] to [0]\nset [y_velocity v] to [0]\ngo to x: (-213) y: (-59)\n\ndefine Respawn\nbroadcast (restart v)\n\nwhen [timer v] > (0.1)\nhide\nhide variable [deaths v]\n\nwhen flag clicked\nif <(L_eve_l) = [11]> then\n    show variable [deaths v]\nend\n\ndefine start \nshow variable [deaths v]\nset [deaths v] to [0]\nset [l_eve_l v] to [1]\nbroadcast (restart v)\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (left costume v)\n        change [x_velocity v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x_velocity v] by (1)\n        switch costume to (right costume v)\n    end\n    set [x_velocity v] to ((X_VELOCITY) * (0.9))\n    change x by (X_VELOCITY)\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (-4)\n        change x by ((X_VELOCITY) * (-1))\n        if <key (up arrow v) pressed?> then\n            if <(X_VELOCITY) > [0]> then\n                set [x_velocity v] to [-10]\n            else\n                set [x_velocity v] to [10]\n            end\n            set [y_velocity v] to [15]\n        else\n            set [x_velocity v] to [0]\n        end\n    end\n    change [y_velocity v] by (-1)\n    change y by (Y_VELOCITY)\n    if <touching (platform v)?> then\n        change y by ((Y_VELOCITY) - ((Y_VELOCITY) * (2)))\n        set [y_velocity v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching (platform v)?>> then\n        set [y_velocity v] to [15]\n        switch costume to (up costume v)\n    end\n    change y by (1)\n    create clone of (_myself_ v)\n    if <(x position) > [239]> then\n        change [l_eve_l v] by (1)\n        broadcast (next level v) and wait\n    end\n    if <touching ( spiky spike v)?> then\n        Respawn\n        change [deaths v] by (1)\n    end\nend\n\n@platform\n\nwhen flag clicked\ngo to x: (6) y: (-65)\nhide\nshow\nforever\n    switch costume to (L_eve_l)\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nif <(L_eve_l) = [11]> then\n    go to [front v] layer\nend\n\n@ spiky spike\n\nwhen flag clicked\ngo to x: (42) y: (28)\nshow\nforever\n    switch costume to (L_eve_l)\nend\n\nwhen [timer v] > (0.1)\nhide\n\n@clouds\n\nwhen flag clicked\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nforever\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (20) to (180))\n        repeat (220)\n            change x by (2)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (110)\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\nend\n\nwhen [timer v] > (Time_TESTER)\nhide\n\n@Thumbnail \n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (14) y: (13)\nforever\n    go to [front v] layer\n    reset timer\nend\n\nwhen [timer v] > (0.04)\ngo to x: (14) y: (13)\nTHUMB_ACT\n\ndefine STEP#1\ngo to x: (21) y: (333)\nrepeat (10)\n    change y by (-4)\n    change x by (1)\n    wait (0.0000000001) seconds\n    change x by (-1)\nend\nwait (0.0001) seconds\n\ndefine STEP#2\nrepeat (4)\n    change y by (-10)\nend\nrepeat (10)\n    change y by (-10)\n    change x by (4)\n    wait (0.0000000001) seconds\n    change x by (-4)\nend\nwait (0.0001) seconds\n\ngo to x: (21) y: (333)\ngo to x: (14) y: (13)\n\ndefine STEP#3\nrepeat (4)\n    change y by (-5)\nend\nrepeat (10)\n    change y by (-15)\n    change x by (8)\n    wait (0.0000000001) seconds\n    change x by (-8)\nend\nwait (0.0001) seconds\n\ndefine FINISH\nrepeat (10)\n    change y by (5)\nend\nwait (0.01) seconds\nrepeat (4)\n    change y by (-14)\nend\n\ndefine THUMB_ACT\nSTEP#1\nSTEP#2\nSTEP#3\nFINISH\n\n@snow flakes \n\nwhen I start as a clone\ngo to x: (pick random (215) to (-215)) y: (155)\nset size to (pick random (30) to (10)) %\nswitch costume to (costume1 v)\nshow\nrepeat until <<touching (_edge_ v)?> or <touching (ground v)?>>\n    change y by (-4)\nend\nif <touching (_edge_ v)?> then\n    delete this clone\nelse\n    wait (1) seconds\n    repeat (20)\n        change y by (-0.5)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [end time v]\nshow\ngo to [front v] layer\n\nwhen flag clicked\n\n