Winter - Platformer

Instructions: ┌────────  {⋅. ✯ .⋅}  ───────┐ \n\n　  　　[ ⌨ iris is typing . . .  ]\n\n »»————-　⋅. ◈ .⋅　————-««\n\n❝ [ i n f o ] ❞ \n✎ welcome to my first platformer! °·․\n✎ this platformer was supposed to be shared on christmas but i couldn't wait anymore longer, sorry guys ;w; °·․\n✎ please lave a heart and star for this project, i worked really hard on it °·․\n✎ get the little white guy back to his igloo! sorry i had nothing else to name him.... :P °·․ \n✎ more levels coming! °·․ \n\n ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯\n\n❝ [ ｎａ ｖ ｉ ｇ ａ ｔ ｉ ｏ ｎ ] ❞ \n✃ arrow keys // right arrow key - move right // left arrow key - move left // up arrow key - jump °·․\n\n ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯\n\n❝ [ ｒｕｌｅｓ ] ❞   °·․ \n➴ steal art/code = ☓ °·․\n➴ remix = ✓ °·․ \n➴ hate comments = ☓ °·․ \n➴ backpacking sprites = ☓ °·․ \n➴ f4f = ☓ °·․ \n➴ feedback = ✓ °·․ \n➴ nice comments = ✓ °·․ \n➴ advertising = ☓ °·․ \n➴ hearts, stars, and follows (greatly appreciated) = ✓ °·․ \n\n ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯\n\n❝ [ c r e d i t s ] ❞ \n♪ music : calm piano °·․ \n✯ thumb : @plantiique °·․ \n⚝ background : @YtSunsetSafari °·․ \n? art : @YtSunsetSafari °·․ 

@Stage\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nplay sound [Calm-Piano-Music-with-Beautiful v] until done\n\n@Levels\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (The End v)\n    end\nend\n\n@White Guy\n\nwhen flag clicked\ngo to x: (-200) y: (0)\npoint in direction (90)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a 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 (levels v)?> then\n        fast\n        if <touching (levels v)?> then\n            change y by (-6)\n            xcoll\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                set [y v] to [12]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-8]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching (levels v)?> then\n        ycoll\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(y) < [0]>> then\n            set [y v] to [14]\n        else\n            set [y v] to [0]\n        end\n    end\nend\n\ndefine fast\nrepeat (6)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\nend\n\ndefine ycoll\nrepeat until <not <touching (levels v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\ndefine xcoll\nrepeat until <not <touching (levels v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-200) y: (-93)\n\nwhen I receive [death v]\ngo to x: (-200) y: (-93)\n\n@Snow Effect\n\nwhen I start as a clone\ngo to x: (pick random (-230) to (230)) y: (180)\nset [ghost v] effect to (pick random (50) to (5))\nset size to (pick random (30) to (70)) %\nset [spin speed v] to (pick random (-3) to (3))\ncheck spin\nset [fall speed v] to (pick random (-1) to (-3.5))\nchange [snowflakes v] by (1)\nshow\nrepeat until <(y position) < [-175]>\n    change y by (fall speed)\n    turn right (spin speed) degrees\nend\nchange [snowflakes v] by (-1)\ndelete this clone\n\nwhen I receive [snowflakes v]\nshow\nset [snowflakes v] to [0]\nbroadcast (start v)\n\nwhen I receive [start v]\nset [ghost v] effect to (100)\nset [snowflakes v] to [0]\nforever\n    if <(pick random (1) to (11)) = [1]> then\n        if <(snowflakes) < [45]> then\n            wait (0.5) seconds\n            switch costume to (pick random (1) to (2))\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen I receive [nosnowflakes v]\nhide\nset [snowflakes v] to [0]\nstop [other scripts in sprite v]\ndelete this clone\n\ndefine check spin\nif <(spin speed) = [0]> then\n    set [spin speed v] to (pick random (-3) to (3))\n    check spin\nend\n\nwhen flag clicked\nset [snowflakes v] to [0]\ngo to [front v] layer\nbroadcast (start v)\n\n@Lava\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <touching (white guy v)?> then\n        broadcast (Death v)\n    end\nend\n\n@Transportation ;)\n\nwhen flag clicked\nshow\nforever\n    if <touching (white guy v)?> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [the end v]\nhide\n\n@Click to play again\n\nwhen I receive [the end v]\nshow\n\nwhen flag clicked\nhide\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (0)\nshow\nwait (5) seconds\nrepeat (20)\n    go to [front v] layer\n    wait (0.02) seconds\n    change [ghost v] effect by (5)\nend\nhide\n\n